/* OBIC lead forms + homepage product pathways (preview / production). */

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.pathways {
  padding: 2.25rem 0 0.5rem;
}

.pathways-head {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.pathways-head h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  letter-spacing: -0.02em;
  color: var(--navy);
}

.pathways-head p {
  margin: 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.pathways-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .pathways-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .pathways-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pathways-item {
  display: grid;
  gap: 0.65rem;
  align-content: start;
  padding: 1.35rem 1.35rem 1.25rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 255, 0.92));
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.pathways-item:hover {
  border-color: rgba(26, 109, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(11, 31, 58, 0.08);
}

.pathways-item .eyebrow {
  margin: 0;
}

.pathways-item strong {
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.pathways-item span {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.pathways-item em {
  font-style: normal;
  font-weight: 700;
  color: var(--blue-deep);
  font-size: 0.88rem;
}

.lead-hero {
  position: relative;
  isolation: isolate;
  padding: 3.5rem 0 2.5rem;
  overflow: hidden;
  background:
    radial-gradient(1200px 480px at 10% -10%, rgba(26, 109, 255, 0.18), transparent 55%),
    radial-gradient(900px 420px at 95% 0%, rgba(11, 31, 58, 0.12), transparent 50%),
    linear-gradient(180deg, #eef3fb 0%, var(--bg) 100%);
}

.lead-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.lead-hero .eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
}

.lead-hero h1 {
  max-width: 18ch;
  margin: 0 0 0.85rem;
  font-size: clamp(2rem, 4vw, 2.85rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.lead-hero .lead-sub {
  max-width: 42rem;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.lead-layout {
  display: grid;
  gap: 1.75rem;
  padding: 1.5rem 0 4rem;
}

@media (min-width: 900px) {
  .lead-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.7fr);
    align-items: start;
    gap: 2rem;
  }
}

.lead-card {
  background:
    linear-gradient(180deg, #fff 0%, #fbfcfe 100%);
  border: 1px solid rgba(11, 31, 58, 0.08);
  border-radius: 22px;
  padding: 1.55rem 1.45rem 1.65rem;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 22px 55px rgba(11, 31, 58, 0.07);
}

.lead-card h2 {
  margin: 0 0 0.4rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.lead-card .lead-hint {
  margin: 0 0 1.45rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid rgba(11, 31, 58, 0.07);
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.lead-form {
  display: grid;
  gap: 0.95rem;
}

.lead-form .field[hidden],
.lead-form .lead-flow-note[hidden] {
  display: none !important;
}

.lead-flow-note {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: #fff;
  color: #0b1f3a;
  font-size: 0.92rem;
  font-weight: 650;
}

@media (min-width: 640px) {
  .lead-form {
    grid-template-columns: 1fr 1fr;
  }

  .lead-form .field-span,
  .lead-form .field-actions,
  .lead-form .lead-docs,
  .lead-form .lead-pay {
    grid-column: 1 / -1;
  }
}

.lead-majors-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.65rem;
}

.lead-majors-head > label {
  margin: 0 !important;
  font-size: 0.84rem;
  font-weight: 650;
  color: var(--navy);
}

.lead-majors-head .req {
  margin: 0 !important;
  font-size: 0.74rem;
  font-weight: 700;
  color: #b45309;
  letter-spacing: 0.01em;
}

.lead-majors-depend {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.lead-majors-panel {
  border: 1px solid rgba(11, 31, 58, 0.12);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.lead-majors-panel.is-locked {
  opacity: 0.55;
  pointer-events: none;
}

.lead-majors-toolbar {
  padding: 0.65rem 0.7rem 0.55rem;
  border-bottom: 1px solid rgba(11, 31, 58, 0.08);
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.lead-majors-toolbar input[type="search"] {
  width: 100%;
  margin: 0;
  padding: 0.62rem 0.8rem 0.62rem 2.15rem;
  border: 1px solid rgba(11, 31, 58, 0.14);
  border-radius: 10px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='M14 14l-3.2-3.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0.7rem 50%;
  background-size: 0.95rem;
  font: inherit;
  font-size: 0.86rem;
  color: var(--navy);
  box-shadow: 0 1px 0 rgba(11, 31, 58, 0.03);
}

html[dir="rtl"] .lead-majors-toolbar input[type="search"] {
  padding: 0.62rem 2.15rem 0.62rem 0.8rem;
  background-position: calc(100% - 0.7rem) 50%;
}

.lead-majors-toolbar input[type="search"]::placeholder {
  color: #94a3b8;
}

.lead-majors-toolbar input[type="search"]:focus {
  outline: none;
  border-color: rgba(26, 109, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(26, 109, 255, 0.12);
}

.lead-majors-toolbar input[type="search"]:disabled {
  background-color: #f1f5f9;
  cursor: not-allowed;
}

.lead-majors-picked {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.55rem 0.7rem 0.15rem;
}

.lead-majors-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
  margin: 0;
  padding: 0.28rem 0.55rem;
  border: 1px solid rgba(26, 109, 255, 0.28);
  border-radius: 999px;
  background: rgba(26, 109, 255, 0.08);
  color: var(--navy);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.2;
  cursor: pointer;
}

.lead-majors-chip span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lead-majors-chip:hover {
  background: rgba(26, 109, 255, 0.14);
}

.lead-majors-empty {
  margin: 0;
  padding: 0.85rem 0.9rem 1rem;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

.lead-majors {
  display: block;
  max-height: min(18rem, 48vh);
  overflow-y: auto;
  /* Native scroll chaining at edges — do not use JS wheel breakout (laggy). */
  overscroll-behavior: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.35rem 0.4rem 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(11, 31, 58, 0.28) transparent;
}

/* Study + Company overflow lists: chain to page (no JS). Touch: contain to avoid page bounce. */
body.page-study .nation-list,
body.page-study-portal .nation-list,
body.page-study-portal .study-ac-list,
body.page-study-portal .study-uni-catalog-grid,
body.page-study .obic-terms-body,
body.page-study-portal .obic-terms-body,
body.page-study-portal .study-promo-dialog-body,
body.page-study-portal .study-reg-dialog,
body.page-company .lead-majors,
body.page-company .nation-list,
body.page-company .act-list,
body.page-company .study-ac-list,
body.page-company .obic-terms-body,
body.page-study .obic-sa-log,
body.page-study .obic-sa-history,
body.page-study-portal .obic-sa-log,
body.page-study-portal .obic-sa-history,
body.page-company .obic-sa-log,
body.page-company .obic-sa-history,
body.page-company-portal .obic-sa-log,
body.page-company-portal .obic-sa-history {
  overscroll-behavior: auto;
}

@media (hover: none), (pointer: coarse) {
  body.page-study .lead-majors,
  body.page-study-portal .lead-majors,
  body.page-study .nation-list,
  body.page-study-portal .nation-list,
  body.page-study-portal .study-ac-list,
  body.page-company .lead-majors,
  body.page-company .nation-list,
  body.page-company .act-list {
    overscroll-behavior: contain;
  }
}

.lead-majors-cat {
  margin: 0 0 0.35rem;
  padding: 0.15rem 0.15rem 0.35rem;
  border-bottom: 1px solid rgba(11, 31, 58, 0.06);
}

.lead-majors-cat[hidden] {
  display: none !important;
}

.lead-majors-cat:last-child {
  margin-bottom: 0;
  border-bottom: 0;
  padding-bottom: 0.1rem;
}

.lead-majors-cat h4 {
  position: sticky;
  top: 0;
  z-index: 1;
  margin: 0 0 0.25rem;
  padding: 0.28rem 0.4rem;
  border-radius: 6px;
  background: #eef3fb;
  color: var(--navy);
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.lead-majors-cat .lead-major + .lead-major {
  margin-top: 0.18rem;
}

/* Do not inherit .field label rules */
.lead-form .field .lead-major {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  margin-bottom: 0;
  padding: 0.42rem 0.5rem;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #f8fafc;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.lead-form .field .lead-major[hidden] {
  display: none !important;
}

.lead-form .field .lead-major:hover {
  background: #f1f5f9;
  border-color: rgba(26, 109, 255, 0.18);
}

.lead-form .field .lead-major:has(input:checked) {
  border-color: rgba(26, 109, 255, 0.4);
  background: rgba(26, 109, 255, 0.08);
}

.lead-form .field .lead-major input[type="checkbox"] {
  width: 0.95rem;
  height: 0.95rem;
  margin: 0;
  flex: none;
  accent-color: var(--blue, #1a6dff);
}

.lead-form .field .lead-major span {
  flex: 1;
  min-width: 0;
  line-height: 1.3;
  text-align: start;
}

.lead-form .field .lead-major .lead-major-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
}

.lead-form .field .lead-major .lead-major-name {
  flex: none;
}

.lead-form .field .lead-major .lead-major-note {
  flex: none;
  font-size: 0.68rem;
  font-weight: 650;
  color: #64748b;
  line-height: 1.25;
}

.lead-form .field .lead-major.is-unavailable {
  opacity: 0.55;
  cursor: not-allowed;
  background: #f1f5f9;
}

.lead-form .field .lead-major.is-unavailable:hover {
  background: #f1f5f9;
  border-color: transparent;
}

.lead-form .field .lead-major.is-unavailable input[type="checkbox"] {
  opacity: 0.55;
  pointer-events: none;
}

.lead-majors-count {
  margin: 0.65rem 0 0;
  font-size: 0.8rem;
  font-weight: 550;
  color: var(--muted);
}

.lead-majors-count.is-ok {
  color: #047857;
  font-weight: 700;
}

.lead-majors-count.is-full {
  color: #0369a1;
  font-weight: 700;
}

.lead-provinces {
  display: grid;
  grid-template-columns: 1fr;
  max-height: min(14rem, 40vh);
}

.lead-provinces .lead-majors-cat {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.18rem;
}

.lead-provinces .lead-provinces-any-cat,
.lead-majors .lead-majors-any-cat {
  display: block;
  margin: 0 0 0.4rem;
  padding: 0 0 0.4rem;
  border-bottom: 1px solid rgba(11, 31, 58, 0.1);
}

.lead-form .field .lead-major.lead-province-any,
.lead-form .field .lead-major.lead-major-any {
  font-weight: 700;
  background: rgba(26, 109, 255, 0.06);
  border-color: rgba(26, 109, 255, 0.14);
}

.lead-form .field .lead-major.lead-province-any:hover,
.lead-form .field .lead-major.lead-major-any:hover {
  background: rgba(26, 109, 255, 0.1);
  border-color: rgba(26, 109, 255, 0.28);
}

.lead-form .field .lead-major.lead-province-any:has(input:checked),
.lead-form .field .lead-major.lead-major-any:has(input:checked) {
  border-color: rgba(26, 109, 255, 0.45);
  background: rgba(26, 109, 255, 0.12);
}

@media (min-width: 640px) {
  .lead-provinces .lead-majors-cat {
    grid-template-columns: 1fr 1fr;
  }

  .lead-provinces .lead-majors-cat h4 {
    grid-column: 1 / -1;
  }

  .lead-provinces .lead-provinces-any-cat {
    grid-column: 1 / -1;
  }
}

.lead-form .field .lead-major.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.lead-form .field .lead-major.is-disabled:hover {
  background: #f8fafc;
  border-color: transparent;
}

.lead-terms {
  margin-top: 0.25rem;
  padding: 1rem 1.05rem 1.1rem;
  border: 1px solid rgba(11, 31, 58, 0.12);
  border-radius: 14px;
  background: #f8fafc;
}

.lead-terms-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  margin-bottom: 0.7rem;
}

.lead-terms-head strong {
  font-size: 0.95rem;
  font-weight: 750;
  color: var(--navy);
}

.lead-terms-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(26, 109, 255, 0.35);
  background: rgba(26, 109, 255, 0.1);
  color: var(--blue-deep, #1a6dff);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.lead-terms-open:hover {
  background: rgba(26, 109, 255, 0.16);
}

.lead-terms-open.is-done {
  border-color: rgba(4, 120, 87, 0.35);
  background: rgba(4, 120, 87, 0.1);
  color: #047857;
}

.lead-terms-points {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.85rem 0.65rem 1.25rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(11, 31, 58, 0.08);
  color: var(--navy);
  font-size: 0.8rem;
  line-height: 1.45;
}

.lead-terms-points li + li {
  margin-top: 0.35rem;
}

.lead-terms-check {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--navy);
  cursor: pointer;
  unicode-bidi: isolate;
}

.lead-terms-check input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
  flex: none;
  accent-color: var(--blue, #1a6dff);
}

.lead-terms-check input:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.lead-terms-check:has(input:disabled) {
  cursor: not-allowed;
  opacity: 0.85;
}

.lead-terms-accept-text {
  flex: 1;
  min-width: 0;
  text-align: start;
}

.lead-terms-check a,
.lead-terms-accept-text a,
.lead-terms-accept-text .terms-inline-link {
  color: var(--blue-deep, #1a6dff);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.lead-terms-hint {
  margin: 0.55rem 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: #b45309;
}

.lead-terms-hint.is-done {
  display: none;
}

.obic-terms-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
  background: rgba(11, 31, 58, 0.55);
  backdrop-filter: blur(4px);
}

.obic-terms-modal[hidden] {
  display: none !important;
}

.obic-terms-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(720px, 100%);
  max-height: 100%;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 24px 60px rgba(11, 31, 58, 0.28);
  overflow: hidden;
}

.obic-terms-dialog-head {
  flex: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.4rem;
  padding: 0.85rem 3.4rem 0.85rem 1.05rem;
  border-bottom: 1px solid rgba(11, 31, 58, 0.1);
  background: #0b1f3a;
  color: #fff;
}

html[dir="rtl"] .obic-terms-dialog-head {
  padding: 0.85rem 1.05rem 0.85rem 3.4rem;
}

.obic-terms-dialog-head strong {
  font-size: 1rem;
  line-height: 1.3;
}

.obic-terms-dialog-head span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.45;
  opacity: 0.88;
}

.obic-terms-dialog-head span + span {
  margin-top: 0.45rem;
  opacity: 0.72;
  font-size: 0.74rem;
}

.obic-terms-close {
  position: absolute;
  top: 0.55rem;
  inset-inline-end: 0.55rem;
  z-index: 2;
  width: 2.35rem;
  height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
}

.obic-terms-close:hover,
.obic-terms-close:focus-visible {
  background: rgba(255, 255, 255, 0.28);
  outline: none;
}

.obic-terms-body {
  flex: 1;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1.15rem 1.1rem 1.4rem;
  color: #1e293b;
  font-size: 0.95rem;
  line-height: 1.7;
}

.obic-terms-body .legal {
  max-width: none;
  margin: 0;
}

.obic-terms-body h2,
.obic-terms-body h3 {
  color: #0b1f3a;
  margin: 1.15rem 0 0.45rem;
}

.obic-terms-body h2:first-child,
.obic-terms-body > p:first-child {
  margin-top: 0;
}

.obic-terms-body p {
  margin: 0 0 0.75rem;
}

.obic-terms-foot {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.05rem;
  border-top: 1px solid rgba(11, 31, 58, 0.1);
  background: #f8fafc;
}

.obic-terms-foot a {
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--blue-deep, #1a6dff);
}

.obic-terms-loading,
.obic-terms-error {
  margin: 0;
  color: #64748b;
}

@media (min-width: 720px) {
  .obic-terms-modal {
    align-items: center;
    padding: 1.25rem;
  }

  .obic-terms-dialog {
    max-height: min(88vh, 820px);
    border-radius: 18px;
  }
}

/* Study inquiry → register / SMS OTP */
.study-reg-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
  background: rgba(11, 31, 58, 0.58);
  backdrop-filter: blur(5px);
}

.study-reg-modal[hidden] {
  display: none !important;
}

.study-reg-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(440px, 100%);
  max-height: 100%;
  margin: 0 auto;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(26, 109, 255, 0.14), transparent 55%),
    linear-gradient(180deg, #f7fafc 0%, #fff 42%);
  box-shadow: 0 28px 70px rgba(11, 31, 58, 0.32);
}

.study-reg-close {
  position: absolute;
  top: 0.65rem;
  inset-inline-end: 0.65rem;
  z-index: 2;
  width: 2.35rem;
  height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: rgba(11, 31, 58, 0.08);
  color: #0b1f3a;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
}

.study-reg-close:hover,
.study-reg-close:focus-visible {
  background: rgba(11, 31, 58, 0.14);
  outline: none;
}

.study-reg-hero {
  padding: 1.35rem 1.25rem 0.85rem;
  padding-inline-end: 3.2rem;
}

.study-reg-badge {
  display: inline-block;
  margin-bottom: 0.55rem;
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.study-reg-hero h2 {
  margin: 0 0 0.4rem;
  color: #0b1f3a;
  font-size: 1.35rem;
  line-height: 1.25;
}

.study-reg-hero p {
  margin: 0;
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.5;
}

.study-reg-steps {
  margin: 0.75rem 0 0;
  padding: 0.65rem 0.75rem 0.65rem 1.35rem;
  border-radius: 12px;
  background: rgba(26, 109, 255, 0.06);
  border: 1px solid rgba(26, 109, 255, 0.14);
  color: #0b1f3a;
  font-size: 0.84rem;
  line-height: 1.45;
}

html[dir="rtl"] .study-reg-steps {
  padding: 0.65rem 1.35rem 0.65rem 0.75rem;
}

.study-reg-steps li + li {
  margin-top: 0.35rem;
}

.study-reg-skip-hint {
  margin-top: 0.65rem !important;
  color: #64748b !important;
  font-size: 0.82rem !important;
}

.study-reg-error {
  margin: 0 1.25rem 0.35rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 0.85rem;
}

.study-reg-error.is-ok {
  background: #ecfdf5;
  color: #047857;
}

.study-reg-error[hidden] {
  display: none !important;
}

.study-reg-form,
.study-reg-verify {
  padding: 0.5rem 1.25rem 1.35rem;
}

.study-reg-form[hidden],
.study-reg-verify[hidden],
.study-reg-steps[hidden],
.study-reg-skip-hint[hidden],
#study-reg-sub[hidden] {
  display: none !important;
}

.study-reg-modal.is-verifying .study-reg-hero {
  padding-bottom: 0.35rem;
}

.study-reg-modal.is-verifying .study-reg-badge {
  background: rgba(26, 109, 255, 0.12);
  color: #1a6dff;
}

.study-reg-verify-badge {
  display: inline-block;
  margin: 0 0 0.55rem;
  padding: 0.28rem 0.6rem;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.14);
  color: #047857;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.study-reg-verify-login {
  margin: 0.85rem 0 0;
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.45;
}

.study-reg-verify-login a {
  color: #1a6dff;
  font-weight: 650;
  text-decoration: underline;
}

html[dir="rtl"] .study-reg-verify-login,
html[dir="rtl"] .study-reg-verify-hint {
  text-align: right;
}

#study-reg-otp {
  letter-spacing: 0.28em;
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
}

.study-reg-form .field,
.study-reg-verify .field {
  margin-bottom: 0.75rem;
}

.study-reg-form label,
.study-reg-verify label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.82rem;
  font-weight: 650;
  color: #0b1f3a;
}

.study-reg-form input,
.study-reg-verify input,
.study-reg-phone-row select {
  width: 100%;
  min-height: 2.65rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(11, 31, 58, 0.16);
  border-radius: 10px;
  background: #fff;
  color: #0b1f3a;
  font: inherit;
}

.study-pass-wrap {
  position: relative;
}

.study-pass-wrap input {
  padding-inline-end: 4.25rem;
}

.study-pass-toggle {
  position: absolute;
  inset-inline-end: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  appearance: none;
  border: 0;
  background: transparent;
  color: #1a6dff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.45rem;
  cursor: pointer;
  border-radius: 8px;
}

.study-pass-toggle:hover,
.study-pass-toggle:focus-visible {
  background: rgba(26, 109, 255, 0.08);
  outline: none;
}

.study-reg-form input:focus,
.study-reg-verify input:focus,
.study-reg-phone-row select:focus {
  outline: 2px solid rgba(26, 109, 255, 0.35);
  border-color: #1a6dff;
}

.lead-phone-row,
.study-reg-phone-row {
  display: grid;
  grid-template-columns: minmax(9.25rem, 12.5rem) 1fr;
  gap: 0.45rem;
}

.lead-phone-row select,
.study-reg-phone-row select {
  min-width: 0;
  max-width: 100%;
  font-size: 0.92rem;
  /* Closed control truncates; open list still shows full name + code */
  text-overflow: ellipsis;
}

.lead-phone-row input,
.lead-phone-row select {
  width: 100%;
  min-height: 2.65rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(11, 31, 58, 0.16);
  border-radius: 10px;
  background: #fff;
  color: #0b1f3a;
  font: inherit;
}

.lead-phone-row input:focus,
.lead-phone-row select:focus {
  outline: 2px solid rgba(26, 109, 255, 0.35);
  border-color: #1a6dff;
}

.study-reg-submit {
  width: 100%;
  margin-top: 0.35rem;
}

.study-reg-skip,
#study-reg-resend {
  width: 100%;
  margin-top: 0.45rem;
}

.study-reg-verify h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: #0b1f3a;
}

.study-reg-verify-hint {
  margin: 0 0 0.45rem;
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.45;
}

.study-reg-verify-spam {
  margin: 0 0 0.85rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  background: rgba(26, 109, 255, 0.06);
  color: #475569;
  font-size: 0.82rem;
  line-height: 1.45;
}

.study-reg-verify-spam[hidden] {
  display: none !important;
}

.study-reg-channel-btn {
  width: 100%;
  margin-top: 0.35rem;
  font-size: 0.88rem;
}

.study-reg-channel-btn[hidden] {
  display: none !important;
}

.study-reg-channel-wrap {
  margin: 0.15rem 0 0.85rem;
}

.study-reg-channel-label {
  margin: 0 0 0.45rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #0b1f3a;
}

.study-reg-channel-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  padding: 0.3rem;
  border-radius: 12px;
  background: rgba(11, 31, 58, 0.04);
  border: 1px solid rgba(11, 31, 58, 0.12);
}

.study-reg-channel-tabs button {
  padding: 0.6rem 0.5rem;
  border-radius: 9px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #64748b;
  border: none;
  background: transparent;
  cursor: pointer;
}

.study-reg-channel-tabs button.is-on {
  background: #0b1f3a;
  color: #fff;
}

@media (min-width: 720px) {
  .study-reg-modal {
    align-items: center;
    padding: 1.25rem;
  }

  .study-reg-dialog {
    max-height: min(90vh, 720px);
    border-radius: 18px;
  }
}

.lead-pay {
  margin-top: 0.35rem;
  padding: 1.1rem 1.1rem 1.2rem;
  border: 1px solid rgba(26, 109, 255, 0.22);
  border-radius: 16px;
  background:
    linear-gradient(165deg, rgba(26, 109, 255, 0.06), rgba(255, 255, 255, 0.95));
}

.lead-pay-head strong {
  display: block;
  margin: 0 0 0.35rem;
  color: var(--navy);
  font-size: 1.05rem;
}

.lead-pay-head p {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.lead-pay-paths {
  display: grid;
  gap: 0.65rem;
  margin: 0 0 0.85rem;
}
@media (min-width: 720px) {
  .lead-pay-paths {
    grid-template-columns: 1fr 1fr;
  }
}
.lead-pay-path {
  display: block;
  width: 100%;
  text-align: start;
  margin: 0;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  color: inherit;
  font: inherit;
}
.lead-pay-path strong {
  display: block;
  margin: 0 0 0.4rem;
  color: var(--navy);
  font-size: 0.95rem;
}
.lead-pay-path ul {
  margin: 0;
  padding-inline-start: 1.1rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}
.lead-pay-path.is-on,
.lead-pay-path[aria-pressed="true"] {
  border-color: rgba(26, 109, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(26, 109, 255, 0.1);
  background: rgba(26, 109, 255, 0.04);
}
.lead-pay-quote {
  margin: 0 0 0.85rem;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  background: rgba(15, 35, 70, 0.04);
  border: 1px dashed rgba(26, 109, 255, 0.25);
}
.lead-pay-quote-line,
.lead-pay-quote-due {
  margin: 0.25rem 0;
  font-size: 0.9rem;
  color: var(--navy);
  font-weight: 600;
}
.lead-pay-plan-row {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.45rem;
}
.lead-pay-plan {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  width: 100%;
  margin: 0;
  padding: 0.8rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: start;
  min-height: 3.25rem;
  -webkit-tap-highlight-color: transparent;
}
.lead-pay-plan-radio {
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
  border: 2px solid rgba(26, 109, 255, 0.45);
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 3px #fff;
}
.lead-pay-plan-body {
  display: grid;
  gap: 0.28rem;
  flex: 1 1 auto;
  min-width: 0;
}
.lead-pay-plan-title {
  display: block;
  margin: 0;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
}
.lead-pay-plan-sub {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.4;
}
.lead-pay-plan-miles {
  margin: 0.1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.28rem;
}
.lead-pay-plan-miles li {
  position: relative;
  margin: 0;
  padding-inline-start: 0.9rem;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink, #1a2b44);
}
.lead-pay-plan-miles li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.5em;
  width: 0.32rem;
  height: 0.32rem;
  border-radius: 50%;
  background: rgba(26, 109, 255, 0.7);
}
.lead-pay-plan-due {
  display: block;
  margin-top: 0.15rem;
  color: var(--navy);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.35;
}
.lead-pay-plan-due[hidden] {
  display: none;
}
.lead-pay-plan.is-on,
.lead-pay-plan[aria-pressed="true"],
.lead-pay-plan[aria-checked="true"] {
  border-color: rgba(26, 109, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(26, 109, 255, 0.1);
  background: rgba(26, 109, 255, 0.05);
}
.lead-pay-plan.is-on .lead-pay-plan-radio,
.lead-pay-plan[aria-pressed="true"] .lead-pay-plan-radio,
.lead-pay-plan[aria-checked="true"] .lead-pay-plan-radio {
  border-color: rgba(26, 109, 255, 0.85);
  background: rgba(26, 109, 255, 0.95);
  box-shadow: inset 0 0 0 3px #fff;
}
/* Keep legacy milestone note styles harmless if older HTML caches linger */
.lead-pay-plan-note,
.lead-pay-milestones {
  margin: 0.55rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--navy);
}
.lead-pay-milestones {
  padding: 0.55rem 0.7rem;
  list-style: none;
  display: grid;
  gap: 0.4rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(26, 109, 255, 0.18);
}
.lead-pay-milestones[hidden],
.lead-pay-plan-note[hidden] {
  display: none;
}
.lead-pay-methods {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

.lead-pay-choice {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 0.88rem;
  font-weight: 550;
  cursor: pointer;
}

.lead-pay-choice:has(input:checked) {
  border-color: rgba(26, 109, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(26, 109, 255, 0.08);
}

/* Bachelor CSCA yes/no + official link card */
.lead-csca-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin: 0.35rem 0 0.55rem;
}

.lead-csca-choice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  margin: 0;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid rgba(11, 31, 58, 0.14);
  border-radius: 14px;
  background: #fff;
  font: inherit;
  font-weight: 700;
  color: var(--navy, #0b1f3a);
  cursor: pointer;
  user-select: none;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.lead-csca-choice input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.lead-csca-choice:hover {
  border-color: rgba(26, 109, 255, 0.4);
  background: #f5f9ff;
}

.lead-csca-choice.is-on,
.lead-csca-choice:has(input:checked) {
  border-color: rgba(26, 109, 255, 0.55);
  background: linear-gradient(180deg, #eef5ff 0%, #e3edfc 100%);
  box-shadow: 0 0 0 3px rgba(26, 109, 255, 0.12);
  color: #0b4fd6;
}

.lead-csca-help {
  margin: 0.35rem 0 0.15rem;
  padding: 0.95rem 1rem 1.05rem;
  border-radius: 16px;
  border: 1px solid rgba(26, 109, 255, 0.22);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(26, 109, 255, 0.12) 0%, transparent 55%),
    linear-gradient(165deg, #f7faff 0%, #eef4ff 100%);
  box-shadow: 0 10px 24px rgba(11, 31, 58, 0.06);
}

.lead-csca-help[hidden] {
  display: none !important;
}

.lead-csca-chance {
  margin: 0 0 0.75rem;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(180, 83, 9, 0.28);
  background: linear-gradient(180deg, #fff8eb 0%, #fff3d6 100%);
  color: #7c2d12;
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.45;
}

.lead-csca-help-title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--navy, #0b1f3a);
  line-height: 1.35;
}

.lead-csca-help-body {
  margin: 0 0 0.85rem;
  font-size: 0.86rem;
  line-height: 1.5;
  color: rgba(11, 31, 58, 0.72);
}

.lead-csca-next {
  display: grid;
  gap: 0.65rem;
}

.lead-csca-link {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(135deg, #0b1f3a 0%, #122a4a 55%, #1a6dff 140%);
  box-shadow: 0 12px 28px rgba(11, 31, 58, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.lead-csca-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(11, 31, 58, 0.28);
}

.lead-csca-link-kicker {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7eb6ff;
}

.lead-csca-link strong {
  color: #fff;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.3;
}

.lead-csca-link-url {
  color: rgba(232, 241, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 600;
}

.lead-csca-obic {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  width: 100%;
  margin: 0;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  border: 1.5px solid rgba(26, 109, 255, 0.28);
  background: linear-gradient(180deg, #fff 0%, #f3f8ff 100%);
  cursor: pointer;
  user-select: none;
  text-align: start;
  font: inherit;
  color: inherit;
  box-shadow: 0 8px 20px rgba(11, 31, 58, 0.06);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    transform 0.12s ease;
}

.lead-csca-obic:active {
  transform: scale(0.99);
}

/* Go-to CSCA path CTA (no toggle / checkbox) */
.lead-csca-obic-go {
  border-color: rgba(26, 109, 255, 0.4);
  background: linear-gradient(155deg, #1a6dff 0%, #0b4fd6 55%, #0b1f3a 140%);
  color: #fff;
  box-shadow: 0 10px 22px rgba(26, 109, 255, 0.28);
}
.lead-csca-obic-go .lead-csca-link-kicker,
.lead-csca-obic-go strong,
.lead-csca-obic-go .lead-csca-obic-fee {
  color: #fff;
}
.lead-csca-obic-go .lead-csca-obic-fee {
  color: rgba(232, 241, 255, 0.88);
}
.lead-csca-obic-go:hover,
.lead-csca-obic-go:focus-visible {
  outline: none;
  box-shadow:
    0 12px 26px rgba(26, 109, 255, 0.35),
    0 0 0 3px rgba(26, 109, 255, 0.18);
}

.lead-csca-obic-check {
  flex: 0 0 auto;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15rem;
  border-radius: 6px;
  border: 2px solid rgba(11, 31, 58, 0.28);
  background: #fff;
  position: relative;
}

.lead-csca-obic.is-on,
.lead-csca-obic:has(input:checked) {
  border-color: rgba(26, 109, 255, 0.55);
  background: linear-gradient(180deg, #eef5ff 0%, #e4edfc 100%);
  box-shadow: 0 0 0 3px rgba(26, 109, 255, 0.12);
}

.lead-csca-obic.is-on .lead-csca-obic-check,
.lead-csca-obic:has(input:checked) .lead-csca-obic-check {
  border-color: #1a6dff;
  background: #1a6dff;
}

.lead-csca-obic.is-on .lead-csca-obic-check::after,
.lead-csca-obic:has(input:checked) .lead-csca-obic-check::after {
  content: "";
  position: absolute;
  left: 0.28rem;
  top: 0.08rem;
  width: 0.35rem;
  height: 0.65rem;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.lead-csca-obic-copy {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.lead-csca-obic .lead-csca-link-kicker {
  color: #1a6dff;
}

.lead-csca-obic strong {
  color: var(--navy, #0b1f3a);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.3;
}

.lead-csca-obic-fee {
  color: rgba(11, 31, 58, 0.68);
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.35;
}

.lead-csca-obic-confirm {
  margin: 0;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(22, 163, 74, 0.28);
  background: linear-gradient(180deg, #ecfdf3 0%, #dcfce7 100%);
  color: #14532d;
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.45;
}

.lead-csca-obic-confirm[hidden] {
  display: none !important;
}

#csca-have-group.is-invalid,
#csca-field.is-invalid .lead-csca-choices {
  outline: none;
}

#csca-have-group.is-invalid .lead-csca-choice,
.field.is-invalid .lead-csca-choice {
  border-color: rgba(185, 28, 28, 0.45);
}

.lead-pay-dl {
  display: grid;
  gap: 0.45rem;
  margin: 0 0 1rem;
}

.lead-pay-dl > div {
  display: grid;
  gap: 0.15rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(11, 31, 58, 0.06);
}

@media (min-width: 640px) {
  .lead-pay-dl > div {
    grid-template-columns: minmax(8rem, 0.4fr) 1fr;
    align-items: baseline;
    gap: 0.75rem;
  }
}

.lead-pay-dl dt {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}

.lead-pay-dl dd {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  word-break: break-word;
}

.lead-pay-sub {
  margin: 1rem 0 0.55rem;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 750;
}

.lead-pay-qrs {
  display: grid;
  gap: 0.85rem;
  margin: 0.35rem 0 1.1rem;
}

@media (min-width: 640px) {
  .lead-pay-qrs {
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
  }
}


.lead-pay-qr {
  margin: 0;
  padding: 0.55rem;
  border-radius: 12px;
  border: 1px solid rgba(11, 31, 58, 0.08);
  background: #fff;
}

.lead-pay-qr img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.lead-pay-qr figcaption {
  margin-top: 0.45rem;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--muted);
  text-align: center;
  line-height: 1.35;
}

.lead-pay-alt {
  padding: 0.85rem 0.15rem 0.15rem;
}

.lead-pay-alt p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.lead-pay-alt-actions {
  display: grid;
  gap: 0.65rem;
}

.lead-pay-wechat {
  margin: 0;
  font-size: 0.9rem;
  color: var(--navy);
}

.lead-form .field > label,
.lead-form .field .lead-majors-head > label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy-2);
}

.lead-form .field > label .lead-field-ico {
  display: inline-flex;
  width: 1rem;
  height: 1rem;
  color: var(--blue-deep, #1a6dff);
  flex-shrink: 0;
}

.lead-form .field > label .lead-field-ico svg {
  width: 100%;
  height: 100%;
  display: block;
}

.lead-form .field > label .lead-field-ico.wechat {
  color: #07c160;
}

.lead-form .field > label .req,
.lead-form .field > label .lead-doc-tag {
  /* Sit beside the label text (not stranded at the opposite edge on short AR labels). */
  margin-inline-start: 0.35rem;
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
}

.lead-form .field > label .req,
.lead-form .field > label .lead-doc-tag:not(.opt):not(.lead-doc-tag.opt) {
  color: #c2410c;
  background: #ffedd5;
}

.lead-form .field > label .lead-doc-tag.opt {
  color: #475569;
  background: #e2e8f0;
  font-weight: 650;
}

.lead-form-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 0.35rem;
}

.lead-form-head h2 {
  margin: 0 0 0.35rem;
}

.lead-form-head .lead-hint {
  margin: 0;
}

.lead-howto-link {
  display: inline-flex;
  align-items: center;
  flex: none;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(26, 109, 255, 0.3);
  background: rgba(26, 109, 255, 0.08);
  color: var(--blue-deep, #1a6dff);
  font-size: 0.8rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.lead-howto-link:hover {
  background: rgba(26, 109, 255, 0.14);
}

.lead-field-hint {
  margin: 0.4rem 0 0;
  font-size: 0.76rem;
  line-height: 1.4;
  color: var(--muted);
}

.lead-names {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.65rem;
}

.lead-names-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--navy, #0b1f3a);
}

.lead-names .lead-field-hint {
  margin: 0;
}

.lead-names-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .lead-names-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.lead-form .field input.lead-referral-code {
  letter-spacing: 0.08em;
  font-weight: 700;
  text-transform: uppercase;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.lead-form .field input,
.lead-form .field select,
.lead-form .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.78rem 0.9rem;
  background: #fbfcfe;
  color: var(--ink);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.lead-form .field textarea {
  min-height: 120px;
  resize: vertical;
}

.lead-form .field input:focus,
.lead-form .field select:focus,
.lead-form .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26, 109, 255, 0.15);
  background: #fff;
}

.lead-form .field-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.35rem;
}

.lead-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--navy-2);
  cursor: pointer;
}

.lead-check input {
  width: auto;
  margin-top: 0.2rem;
  accent-color: var(--blue);
}

.lead-aside {
  display: grid;
  gap: 1rem;
}

.lead-aside-card {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, #0b1f3a 0%, #163560 100%);
  color: #fff;
  padding: 1.25rem 1.2rem;
}

.lead-aside-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.lead-aside-card p,
.lead-aside-card li {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  line-height: 1.5;
}

.lead-aside-card ul {
  margin: 0.75rem 0 0;
  padding-inline-start: 1.1rem;
  display: grid;
  gap: 0.4rem;
}

.lead-aside-soft {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.15rem 1.2rem;
}

.lead-aside-soft strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--navy);
}

.lead-aside-soft p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.lead-success {
  display: none;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: #e8f8ef;
  border: 1px solid #b6e5c6;
  color: #0f5132;
  font-size: 0.92rem;
}

.lead-success.is-on {
  display: block;
}

.lead-success .lead-success-msg {
  margin: 0 0 0.45rem;
  font-weight: 700;
}

.lead-success .lead-success-files,
.lead-success .lead-success-follow,
.lead-success .lead-success-note {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  line-height: 1.45;
}

.study-success-popup {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(8, 18, 36, 0.48);
}

.study-success-popup[hidden] {
  display: none !important;
}

.study-success-popup-card {
  width: min(420px, 100%);
  padding: 1.35rem 1.25rem 1.2rem;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(8, 18, 36, 0.22);
  text-align: center;
}

.study-success-popup-badge {
  margin: 0 auto 0.65rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #d1fae5;
  color: #047857;
  font-size: 1.25rem;
  font-weight: 700;
}

.study-success-popup-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  color: #0f172a;
}

.study-success-popup-card p {
  margin: 0.35rem 0 0;
  color: #334155;
  font-size: 0.95rem;
  line-height: 1.45;
}

.study-success-popup-files,
.study-success-popup-follow {
  font-size: 0.88rem !important;
  color: #475569 !important;
}

.study-success-popup-card .btn {
  margin-top: 1.1rem;
  min-width: 7rem;
}

.lead-form-error {
  margin: 0 0 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(185, 28, 28, 0.25);
  background: #fef2f2;
  color: #991b1b;
  font-size: 0.92rem;
  line-height: 1.45;
}

.lead-form-error[hidden] {
  display: none !important;
}

/* Study inquiry — summary alert (toast + inline banner) */
.study-feedback-alert,
body.page-study-portal .study-submit-toast,
#study-form-error.study-form-error-banner {
  margin: 0 0 0.75rem;
  padding: 0.9rem 1rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(11, 31, 58, 0.14);
  border-inline-start: 4px solid #b91c1c;
  background: linear-gradient(165deg, #ffffff 0%, #f4f7fb 58%, #f8fafc 100%);
  color: #0b1f3a;
  /* Keep banner clear of fixed nav (+ optional submit toast) when scrolled into view */
  scroll-margin-top: calc(72px + 24px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 12px 32px rgba(11, 31, 58, 0.12);
}

body.page-study-portal .study-submit-toast {
  position: fixed;
  top: var(--study-toast-top, calc(72px + 8px));
  left: max(1rem, env(safe-area-inset-left));
  right: max(1rem, env(safe-area-inset-right));
  z-index: 10060;
  max-width: min(38rem, calc(100vw - 2rem));
  margin-left: auto;
  margin-right: auto;
  padding: 0.85rem 0.9rem 0.9rem 1rem;
  pointer-events: auto;
}

body.page-study-portal .study-submit-toast[hidden],
#study-form-error.study-form-error-banner[hidden] {
  display: none !important;
}

.study-feedback-alert__inner {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

html[dir="rtl"] .study-feedback-alert__inner {
  flex-direction: row-reverse;
  text-align: right;
}

.study-feedback-alert__icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #dc2626, #991b1b);
  color: #fff;
  box-shadow: 0 4px 12px rgba(185, 28, 28, 0.28);
}

.study-feedback-alert__icon svg {
  display: block;
}

.study-feedback-alert__text {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 0.2rem;
}

.study-feedback-alert__title {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0b1f3a;
  line-height: 1.25;
}

.study-feedback-alert__body {
  display: block;
  font-size: 0.94rem;
  font-weight: 550;
  line-height: 1.5;
  color: #334155;
}

.study-feedback-alert__dismiss {
  flex-shrink: 0;
  align-self: flex-start;
  margin: -0.15rem -0.1rem 0 0;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 8px;
  background: rgba(11, 31, 58, 0.06);
  color: #0b1f3a;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

html[dir="rtl"] .study-feedback-alert__dismiss {
  margin: -0.15rem 0 0 -0.1rem;
}

.study-feedback-alert__dismiss:hover {
  background: rgba(11, 31, 58, 0.12);
  color: #b91c1c;
}

.study-feedback-alert__dismiss:focus-visible {
  outline: 2px solid #1a6dff;
  outline-offset: 2px;
}

#study-form .lead-terms.is-invalid > .lead-field-error,
#study-form #study-terms.is-invalid > .lead-field-error,
#study-form .lead-pay-methods.is-invalid > .lead-field-error {
  margin-top: 0.55rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(185, 28, 28, 0.22);
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.9rem;
  line-height: 1.45;
}

html[dir="rtl"] #study-form .lead-terms.is-invalid .lead-field-error,
html[dir="rtl"] #study-form #study-terms.is-invalid > .lead-field-error {
  text-align: right;
}

@media (max-width: 640px) {
  body.page-study-portal .study-submit-toast {
    left: max(0.65rem, env(safe-area-inset-left));
    right: max(0.65rem, env(safe-area-inset-right));
    border-radius: 12px;
  }

  .study-feedback-alert__body {
    font-size: 0.9rem;
  }
}

.lead-inquiry-gate {
  margin: 0 0 1.5rem;
  padding: 1.25rem 1.2rem 1.35rem;
  border-radius: 16px;
  border: 1px dashed rgba(26, 109, 255, 0.35);
  background:
    linear-gradient(165deg, rgba(26, 109, 255, 0.07), rgba(255, 255, 255, 0.96));
  color: #0b1f3a;
}

.lead-inquiry-gate-step {
  margin: 0 0 0.35rem;
  color: #1a6dff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.lead-inquiry-gate h2 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
  line-height: 1.3;
}

.lead-inquiry-gate p:last-child {
  margin: 0;
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.5;
}

#study-inquiry-gate[hidden],
#study-inquiry[hidden] {
  display: none !important;
}

.lead-docs {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.75rem;
  margin-top: 0.25rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.lead-docs-head {
  display: grid;
  gap: 0.25rem;
}

.lead-docs-head strong {
  color: var(--navy);
  font-size: 0.98rem;
}

.lead-docs-head span {
  color: var(--muted);
  font-size: 0.86rem;
}

.lead-doc-row {
  display: grid;
  gap: 0.45rem;
  padding: 0.85rem 0.9rem;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: #fbfcfe;
}

.lead-doc-row.is-required {
  border-color: rgba(26, 109, 255, 0.35);
  background: #f4f8ff;
}

.lead-doc-row[hidden] {
  display: none !important;
}

.lead-doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  align-items: baseline;
}

.lead-doc-meta label {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy-2);
}

.lead-doc-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-deep);
}

.lead-doc-tag.opt {
  background: #eef1f6;
  color: var(--muted);
}

.lead-doc-download {
  margin: 0;
}

.lead-doc-download a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--blue-deep);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.lead-doc-row .lead-doc-extra-hint {
  margin: 0;
}

.lead-doc-row input[type="file"] {
  width: 100%;
  font-size: 0.86rem;
  color: var(--muted);
}

.lead-doc-file {
  font-size: 0.8rem;
  color: var(--navy);
  min-height: 1.1em;
  white-space: pre-wrap;
  word-break: break-word;
}

.lead-doc-extra {
  border-style: solid;
  border-color: rgba(26, 109, 255, 0.28);
}

.lead-doc-extra-hint {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}

.lead-extra-inputs {
  display: grid;
  gap: 0.45rem;
}

.lead-add-files {
  justify-self: start;
  margin-top: 0.15rem;
}

html[lang="ar"] .lead-hero h1,
html[dir="rtl"] .lead-hero h1 {
  max-width: none;
}


.path-req {
  padding: 0.5rem 0 2.25rem;
}

.path-head h2 {
  margin: 0 0 0.35rem;
  max-width: none;
  font-size: clamp(1.45rem, 2.8vw, 2.05rem);
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.path-sub {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.path-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.85rem;
  overflow: visible;
}

.path-tabs button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.7rem;
  max-width: none;
  white-space: nowrap;
  scroll-snap-align: start;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(11, 31, 58, 0.1);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

.path-tabs button.is-csca-prep {
  border-color: #c4a35a;
  background: #fffaf0;
}

.path-tabs button.is-on {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.path-chip-mark {
  display: inline-flex;
  align-items: center;
  padding: 0.05rem 0.35rem;
  border-radius: 999px;
  background: #c4a35a;
  color: #1c1406;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.path-tabs button.is-on .path-chip-mark {
  background: #f3e2b8;
}

.path-panel-head {
  margin: 0 0 0.75rem;
}

.path-cat {
  margin: 0;
  color: #8a6a24;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.path-note {
  margin: 0.3rem 0 0;
  color: var(--navy);
  font-size: 0.95rem;
  line-height: 1.5;
}

.path-list {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.path-item {
  display: grid;
  gap: 0.4rem;
  align-items: start;
  padding: 0.8rem 0.9rem;
  background: #fff;
  border: 1px solid rgba(11, 31, 58, 0.08);
  border-radius: 14px;
}

.path-item.is-csca {
  background: #fbf6ea;
  border-color: rgba(196, 163, 90, 0.7);
  border-inline-start: 3px solid #c4a35a;
}

.path-item.has-file {
  grid-column: 1 / -1;
}

.path-file-mount,
.path-extra-card {
  grid-column: 1 / -1;
}

.path-file {
  display: grid;
  gap: 0.35rem;
}

.path-file-label,
.path-extra-card strong {
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 700;
}

.path-file input[type="file"],
.path-extra-card input[type="file"] {
  width: 100%;
  max-width: 100%;
  font-size: 0.84rem;
  color: var(--muted);
}

.path-file-name {
  min-height: 1em;
  color: var(--navy);
  font-size: 0.8rem;
  word-break: break-word;
}

.path-extra-card {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.55rem;
  padding: 0.85rem 0.9rem;
  background: #fff;
  border: 1px solid rgba(26, 109, 255, 0.28);
  border-radius: 14px;
}

.path-extra-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.path-extra-card .lead-add-files {
  justify-self: start;
}

.path-item strong {
  display: block;
  color: var(--navy);
  font-size: 0.95rem;
}

.path-item p {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.path-badge {
  justify-self: start;
  max-width: 11rem;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

.path-badge.is-req {
  background: var(--navy);
  color: #fff;
}

.path-badge.is-no {
  background: #eef2f6;
  color: #64748b;
}

.path-badge.is-uni,
.path-badge.is-emb,
.path-badge.is-if,
.path-badge.is-opt {
  background: #f8f1de;
  color: #6e5316;
}

.lead-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.15rem;
}

.lead-trust {
  margin: 0.75rem 0 0;
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 600;
}

.path-docs {
  margin-top: 1.15rem;
  padding: 1rem 1rem 1.05rem;
  background: #fff;
  border: 1px solid rgba(11, 31, 58, 0.08);
  border-radius: 18px;
}

.path-docs h3 {
  margin: 0 0 0.3rem;
  color: var(--navy);
  font-size: 1.05rem;
}

.path-docs > p {
  margin: 0 0 0.8rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.path-doc-row {
  display: grid;
  gap: 0.45rem;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(11, 31, 58, 0.06);
}

.path-doc-row strong {
  color: var(--navy);
}

.path-doc-row p {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.lead-collapse {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.55rem;
  padding: 0.55rem 0.9rem 0.55rem 0.95rem;
  border: 1px solid rgba(11, 31, 58, 0.14);
  border-radius: 999px;
  background: linear-gradient(180deg, #f4f8ff 0%, #eaf1fb 100%);
  color: var(--navy);
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset;
  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    color 0.22s ease;
}

.lead-collapse:hover {
  border-color: rgba(26, 109, 255, 0.35);
  background: linear-gradient(180deg, #eef5ff 0%, #e2ecfa 100%);
}

.lead-collapse:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.lead-collapse:disabled:hover {
  border-color: rgba(11, 31, 58, 0.14);
  background: linear-gradient(180deg, #f4f8ff 0%, #eaf1fb 100%);
}

.lead-collapse:focus-visible {
  outline: none;
  border-color: rgba(26, 109, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(26, 109, 255, 0.18);
}

.lead-collapse[aria-expanded="true"] {
  border-color: rgba(26, 109, 255, 0.42);
  background: linear-gradient(180deg, #e8f1ff 0%, #dce8f8 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 0 0 1px rgba(26, 109, 255, 0.08);
}

.lead-collapse-label {
  display: inline-block;
}

.lead-collapse-chevron {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-inline-start: 0.05rem;
  border-inline-end: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-0.12rem);
  opacity: 0.72;
  flex-shrink: 0;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease;
}

.lead-collapse[aria-expanded="true"] .lead-collapse-chevron {
  transform: rotate(225deg) translateY(-0.05rem);
  opacity: 0.9;
}

html[dir="rtl"] .lead-collapse {
  padding: 0.55rem 0.95rem 0.55rem 0.9rem;
}

/* Animated reveal shell for .lead-collapse targets (provinces, etc.) */
.lead-collapse-shell {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  margin: 0;
  transform: translateY(-0.2rem);
  pointer-events: none;
  transition:
    grid-template-rows 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.28s ease,
    transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.lead-collapse-shell.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.lead-collapse-shell-inner {
  overflow: hidden;
  min-height: 0;
}

.lead-collapse-shell .lead-majors-panel {
  margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
  .lead-collapse,
  .lead-collapse-chevron,
  .lead-collapse-shell {
    transition: none !important;
  }

  .lead-collapse-shell {
    transform: none;
  }

  .lead-collapse[aria-expanded="true"] .lead-collapse-chevron {
    transform: rotate(225deg) translateY(-0.05rem);
  }
}

.lead-pay-note {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.lead-also {
  margin: 0.35rem 0 0;
}

.lead-alt-link {
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/*
 * FAB / Helper clearance for إرسال الطلب — NOT on body.
 * body padding-bottom (was 10.5rem) painted a large empty --bg band
 * (~131–168px, #F4F6F8/#f5f7fb) *below* the ICP/MPS footer (flagged
 * 2026-11-25). Keep scroll-margin + form-end padding so fixed FABs do
 * not cover the submit control; footer sits flush at page end.
 */
body.page-study,
body.page-study-portal {
  padding-bottom: 0 !important;
}

body.page-study #study-form .field-actions,
body.page-study-portal #study-form .field-actions {
  /* Space above footer (before navy), not after it */
  padding-bottom: calc(2.75rem + env(safe-area-inset-bottom, 0px));
}

body.page-study #study-form .field-actions,
body.page-study #study-submit-btn,
body.page-study-portal #study-form .field-actions,
body.page-study-portal #study-submit-btn {
  scroll-margin-bottom: calc(7.5rem + env(safe-area-inset-bottom, 0px));
  position: relative;
  /* Above sticky path-tabs (25) and decorative layers; below toast (10060). */
  z-index: 40;
  isolation: isolate;
}

body.page-study-portal #study-form-error.study-form-error-banner:not([hidden]) {
  position: relative;
  z-index: 41;
}

body.page-study .obic-ai-dock {
  top: calc(var(--nav-h, 72px) + 0.35rem);
  bottom: auto;
  left: auto;
  right: auto;
  width: 56px;
  align-items: flex-end;
  inset-inline-end: 0.65rem;
}

body.page-study .obic-ai-dock:has(.obic-ai-panel:not([hidden])) {
  top: calc(var(--nav-h, 72px) + 0.35rem);
  bottom: auto;
  left: auto;
  right: auto;
  width: min(380px, calc(100vw - 1.4rem));
  align-items: stretch;
  inset-inline-end: 0.65rem;
}

body.page-study #path-tabs {
  position: sticky;
  top: calc(var(--nav-h, 72px) + 0.35rem);
  z-index: 25;
  margin-bottom: 0.85rem;
  padding: 0.35rem 0;
  padding-inline-end: 3.6rem;
  background: linear-gradient(180deg, var(--bg, #f7f8fb) 70%, rgba(247, 248, 251, 0));
  scroll-margin-top: calc(var(--nav-h, 72px) + 0.5rem);
}

body.page-study .path-panel {
  scroll-margin-top: calc(var(--nav-h, 72px) + 4.2rem);
  padding-bottom: 0.4rem;
}

@media (max-width: 390px) {
  body.page-study .obic-ai-dock {
    top: calc(var(--nav-h, 72px) + 0.4rem);
    bottom: auto;
    left: auto;
    right: auto;
    width: 46px;
    align-items: flex-end;
    inset-inline-end: 0.55rem;
  }

  body.page-study .obic-ai-dock:has(.obic-ai-panel:not([hidden])) {
    left: 0.55rem;
    right: 0.55rem;
    width: auto;
    align-items: stretch;
  }

  body.page-study .obic-ai-fab,
  body.page-study .obic-ai-fab img {
    width: 46px;
    height: 46px;
    min-width: 46px;
  }
}

.path-callout {
  margin-top: 0.85rem;
  padding: 1rem 1.05rem 1.05rem;
  background: #fff;
  border: 1px solid rgba(11, 31, 58, 0.08);
  border-inline-start: 4px solid #c4a35a;
  border-radius: 18px;
}

.path-kicker {
  margin: 0 0 0.25rem;
  color: #8a6a24;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.path-callout h3 {
  margin: 0 0 0.55rem;
  color: var(--navy);
  font-size: 1.02rem;
  line-height: 1.4;
}

.path-callout ul {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.path-callout li {
  color: var(--navy);
  line-height: 1.55;
}

.path-reg {
  margin: 0.7rem 0 0;
}

.path-reg a,
.path-sources a {
  color: var(--blue-deep);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.csca-guide .csca-why {
  margin: 0 0 0.75rem;
  color: var(--navy);
  font-size: 0.95rem;
  line-height: 1.55;
}

.csca-faq {
  display: grid;
  gap: 0.65rem;
  margin: 0.95rem 0 0.35rem;
}

.csca-faq-card {
  padding: 0.85rem 0.95rem;
  background: #fbf8f1;
  border: 1px solid rgba(196, 163, 90, 0.35);
  border-radius: 14px;
}

.csca-faq-card h4 {
  margin: 0 0 0.35rem;
  color: var(--navy);
  font-size: 0.92rem;
  line-height: 1.4;
}

.csca-faq-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.csca-block-title {
  margin: 1.05rem 0 0.45rem;
  color: var(--navy);
  font-size: 0.95rem;
}

.csca-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(11, 31, 58, 0.08);
  border-radius: 14px;
  background: #fff;
}

.csca-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.csca-table th,
.csca-table td {
  padding: 0.55rem 0.65rem;
  text-align: start;
  border-bottom: 1px solid rgba(11, 31, 58, 0.06);
  color: var(--navy);
  line-height: 1.35;
}

.csca-table th {
  background: linear-gradient(135deg, #1a3a5c, #0b1f3a);
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}

.csca-table tbody tr:nth-child(even) {
  background: #f7f9fc;
}

.csca-subj-note,
.csca-fees {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.csca-fees {
  display: grid;
  gap: 0.3rem;
  padding: 0;
  list-style: none;
  color: var(--navy);
  font-weight: 700;
}

.csca-apply {
  display: inline-flex;
  margin-top: 1rem;
  text-decoration: none;
}

html[dir="rtl"] .csca-table th,
html[dir="rtl"] .csca-table td {
  text-align: start;
}

.path-foot-block {
  margin: 0.95rem 0 0;
  display: grid;
  gap: 0.45rem;
  justify-items: start;
  max-width: 22rem;
}

.path-foot {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.path-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.78rem;
}

.path-sources-teaser {
  margin: 0;
  width: 100%;
  max-width: 20rem;
}

/* Tall 9:16 official-sources promo (travel flight column + legacy) */
.path-sources-ad {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  max-width: 20rem;
  min-height: 22rem;
  aspect-ratio: 9 / 16;
  border-radius: 18px;
  text-decoration: none;
  color: #fff;
  background: #0b1f3a;
  isolation: isolate;
  box-shadow: 0 14px 32px rgba(11, 31, 58, 0.14);
  border: 1px solid rgba(11, 31, 58, 0.12);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  box-sizing: border-box;
}

.path-sources-ad:hover,
.path-sources-ad:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(11, 31, 58, 0.18);
  outline: none;
}

.path-sources-ad:focus-visible {
  box-shadow:
    0 0 0 3px rgba(26, 109, 255, 0.45),
    0 20px 40px rgba(11, 31, 58, 0.18);
}

.path-sources-ad-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48% 28%;
  z-index: 0;
}

.path-sources-ad-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(8, 20, 40, 0.18) 0%,
      rgba(8, 20, 40, 0.4) 42%,
      rgba(8, 20, 40, 0.92) 100%
    );
}

.path-sources-ad-copy {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 0.4rem;
  align-content: end;
  justify-items: start;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-height: 22rem;
  padding: 1.15rem 1rem 1.2rem;
}

.path-sources-ad-copy strong {
  margin: 0;
  font-size: clamp(1.05rem, 2.4vw, 1.28rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

.path-sources-ad-sub {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.86rem;
  font-weight: 550;
  line-height: 1.4;
  max-width: 26ch;
}

.path-sources-ad-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.25rem;
  padding: 0.48rem 0.9rem;
  border-radius: 10px;
  background: #1a6dff;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1.2;
  box-shadow: 0 8px 18px rgba(8, 20, 40, 0.28);
}

.path-sources-ad:hover .path-sources-ad-cta,
.path-sources-ad:focus-visible .path-sources-ad-cta {
  background: #0f5ae6;
}

.path-sources-ext {
  display: inline-flex;
  align-items: center;
  padding: 0.14rem 0.45rem;
  border-radius: 999px;
  background: #fff7e8;
  border: 1px solid rgba(180, 120, 20, 0.45);
  color: #8a5a00;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.path-sources-arrow {
  opacity: 0.9;
  font-weight: 700;
}

html[dir="rtl"] .path-sources-arrow {
  transform: scaleX(-1);
}

html[dir="rtl"] .path-sources-ad-img {
  object-position: 52% 28%;
}

html[dir="rtl"] .path-sources-ad-copy {
  justify-items: start;
}

@media (max-width: 640px) {
  .path-foot-block,
  .path-sources-teaser,
  .path-sources-ad {
    max-width: none;
  }

  .path-sources-ad {
    width: min(100%, 20rem);
  }
}

/* Official sources directory page */
body.page-official-sources {
  background: #f3f5f8;
}

.osrc-hero {
  padding: 1.6rem 0 1.1rem;
  background:
    linear-gradient(180deg, #e8eef6 0%, #f3f5f8 100%);
  border-bottom: 1px dashed rgba(11, 31, 58, 0.14);
}

.osrc-crumb {
  margin: 0 0 0.75rem;
  font-size: 0.86rem;
}

.osrc-crumb a {
  color: rgba(11, 31, 58, 0.65);
  font-weight: 600;
  text-decoration: none;
}

.osrc-crumb a:hover {
  color: var(--blue-deep);
}

.osrc-badge {
  display: inline-flex;
  margin: 0 0 0.55rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: #fff7e8;
  border: 1px solid rgba(180, 120, 20, 0.4);
  color: #8a5a00;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.osrc-hero h1 {
  margin: 0 0 0.45rem;
  color: var(--navy);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.25;
}

.osrc-lead {
  margin: 0;
  max-width: 40rem;
  color: rgba(11, 31, 58, 0.68);
  font-size: 0.95rem;
  line-height: 1.55;
}

.osrc-list {
  padding: 1.25rem 0 2.5rem;
}

.osrc-grid {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 720px) {
  .osrc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.osrc-card {
  display: grid;
  gap: 0.35rem;
  height: 100%;
  padding: 1rem 1.05rem 1.1rem;
  background: #fff;
  border: 1px dashed rgba(11, 31, 58, 0.22);
  border-radius: 14px;
  box-shadow: none;
}

.osrc-ext {
  justify-self: start;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  background: #f0f4fa;
  border: 1px solid rgba(11, 31, 58, 0.12);
  color: rgba(11, 31, 58, 0.55);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.osrc-card h2 {
  margin: 0.15rem 0 0;
  color: var(--navy);
  font-size: 1.02rem;
  line-height: 1.35;
}

.osrc-host {
  margin: 0;
  color: rgba(11, 31, 58, 0.45);
  font-size: 0.78rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.osrc-desc {
  margin: 0.15rem 0 0.35rem;
  color: rgba(11, 31, 58, 0.62);
  font-size: 0.88rem;
  line-height: 1.45;
}

.osrc-open {
  justify-self: start;
  margin-top: 0.25rem;
  color: var(--blue-deep);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.osrc-note {
  margin: 1.25rem 0 0;
  padding: 0.85rem 0.95rem;
  border-left: 3px solid rgba(180, 120, 20, 0.55);
  background: #fffaf0;
  color: rgba(11, 31, 58, 0.72);
  font-size: 0.86rem;
  line-height: 1.5;
}

html[dir="rtl"] .osrc-note {
  border-left: 0;
  border-right: 3px solid rgba(180, 120, 20, 0.55);
}

.osrc-back-row {
  margin: 1.1rem 0 0;
}

@media (min-width: 720px) {
  .path-item {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.9rem;
  }

  .path-badge {
    justify-self: end;
  }
}

@media (min-width: 900px) {
  .path-tabs {
    display: flex;
    flex-wrap: wrap;
    overflow: visible;
  }

  .path-tabs button {
    max-width: none;
    width: auto;
  }

  .path-list:not(.path-list-phrases) {
    grid-template-columns: 1fr 1fr;
  }

  .path-item.is-csca {
    grid-column: 1 / -1;
  }
}

body.page-study .lead-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  margin-top: 2rem;
  padding: 0;
}

@media (min-width: 980px) {
  body.page-study .lead-layout {
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    align-items: start;
    gap: 1.15rem;
  }
  body.page-study .lead-aside {
    position: sticky;
    top: 5.25rem;
    grid-template-columns: 1fr !important;
  }
}

.study-promo {
  padding: 1.05rem 1rem 1.15rem;
  border-radius: 18px;
  border: 1px solid rgba(184, 134, 11, 0.28);
  background:
    radial-gradient(90% 70% at 0% 0%, rgba(250, 204, 21, 0.22), transparent 55%),
    linear-gradient(165deg, #fffdf5 0%, #fff8e7 100%);
  box-shadow: 0 14px 32px rgba(120, 80, 10, 0.08);
  display: grid;
  gap: 0.55rem;
}

.study-promo-badge {
  display: inline-flex;
  align-self: start;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: rgba(180, 83, 9, 0.12);
  color: #9a3412;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.study-promo h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #7c2d12;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.study-promo > p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #9a3412;
}

.study-promo-meter {
  margin-top: 0.25rem;
  padding: 0.7rem 0.75rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(180, 83, 9, 0.14);
  display: grid;
  gap: 0.45rem;
}

.study-promo-meter-top {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: baseline;
  font-size: 0.8rem;
  color: #7c2d12;
}

.study-promo-meter-top strong {
  font-weight: 750;
}

.study-promo-meter-top span {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.study-promo-bar {
  height: 0.55rem;
  border-radius: 999px;
  background: rgba(180, 83, 9, 0.12);
  overflow: hidden;
}

.study-promo-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f59e0b, #d97706);
  transition: width 0.45s ease;
}

.study-promo-left {
  margin: 0 !important;
  font-size: 0.82rem !important;
  font-weight: 700;
  color: #b45309 !important;
}

.study-promo.is-full .study-promo-meter {
  display: none;
}

.study-promo-congrats {
  margin: 0;
  padding: 0.7rem 0.75rem;
  border-radius: 12px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.45;
}

.study-promo-reset {
  margin: 0 !important;
  font-size: 0.75rem !important;
  color: #a16207 !important;
}

.study-reg-login {
  margin: 0.35rem 0 0.15rem;
  font-size: 0.9rem;
  color: #475569;
  text-align: center;
}

.study-reg-login a {
  font-weight: 750;
  color: #0b4fd6;
}

body.page-study .lead-card {
  background: #fff;
  border: 1px solid rgba(11, 31, 58, 0.08);
  border-radius: 18px;
  box-shadow: none;
  padding: 1.35rem 1.25rem 1.45rem;
}

body.page-study .lead-path-kicker {
  margin: 0 0 0.3rem;
  color: #8a6a24;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

body.page-study .lead-card h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  letter-spacing: -0.03em;
}

body.page-study .lead-form-head .lead-hint {
  margin: 0;
  padding: 0;
  border: 0;
}

body.page-study .lead-aside {
  grid-template-columns: 1fr;
}

@media (min-width: 800px) and (max-width: 979px) {
  body.page-study .lead-aside {
    grid-template-columns: 1.35fr 0.75fr;
    align-items: stretch;
  }
}

body.page-study .lead-hero {
  padding: 2.2rem 0 1.4rem;
}

body.page-study .lead-layout {
  margin-top: 0.25rem;
}

body.page-study .lead-card {
  background: linear-gradient(180deg, #ffffff 0%, #f6f8fc 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 16px 36px rgba(11, 31, 58, 0.08);
}

/* Logged-in: collapse filled personal fields into one summary.
   Must span the full lead-form grid — otherwise education (next sibling)
   sits in the same row and stretches to ~700px beside the tall identity stack. */
body.page-study .study-identity-block {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 0.35rem;
  grid-column: 1 / -1;
}

/* Keep name / nation / age / contact in the same 2-col rhythm as .lead-form */
body.page-study .study-identity-fields {
  display: grid;
  gap: 0.95rem;
  grid-template-columns: 1fr;
  min-width: 0;
}

@media (min-width: 640px) {
  body.page-study .study-identity-fields {
    grid-template-columns: 1fr 1fr;
  }

  body.page-study .study-identity-fields > .field-span,
  body.page-study .study-identity-fields > .lead-names {
    grid-column: 1 / -1;
  }
}

/* Single-line selects stay content-height even if a row stretches */
#study-form > .field {
  align-self: start;
}

#study-form .field > select {
  height: auto;
  max-height: 3.35rem;
  align-self: start;
}

body.page-study .study-identity-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(26, 109, 255, 0.22);
  background: linear-gradient(180deg, #f3f8ff 0%, #eaf2ff 100%);
}

body.page-study .study-identity-summary[hidden] {
  display: none !important;
}

body.page-study .study-identity-summary-main {
  min-width: 0;
}

body.page-study .study-identity-summary-main strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 750;
  color: #0b1f3a;
  line-height: 1.35;
}

body.page-study .study-identity-summary-line {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #475569;
  word-break: break-word;
}

body.page-study .study-identity-edit {
  appearance: none;
  flex-shrink: 0;
  border: 1px solid rgba(26, 109, 255, 0.28);
  background: #fff;
  color: #0b4fd6;
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 750;
  cursor: pointer;
}

body.page-study .study-identity-fields[hidden] {
  display: none !important;
}

body.page-study .study-identity-block.is-collapsed .study-identity-fields {
  display: none !important;
}

body.page-study .path-req {
  padding: 1.15rem 0 0.75rem;
}

.teach-pick {
  margin: 0.2rem 0 1.1rem;
}

.teach-ask {
  margin: 0 0 0.7rem;
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 700;
}

.teach-options {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 720px) {
  .teach-options {
    grid-template-columns: 1fr 1fr;
  }
}

.teach-option {
  display: grid;
  gap: 0.25rem;
  justify-items: start;
  text-align: start;
  padding: 1.05rem 1.15rem;
  border-radius: 18px;
  border: 1px solid rgba(11, 31, 58, 0.08);
  background: linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
  box-shadow:
    inset 0 1px 0 #fff,
    0 12px 24px rgba(11, 31, 58, 0.07);
  color: var(--navy);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.teach-option strong {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.teach-option span {
  color: var(--muted);
  font-size: 0.88rem;
}

.teach-option:hover,
.teach-option.is-on {
  transform: translateY(-3px);
  border-color: #c4a35a;
  box-shadow:
    inset 0 1px 0 #fff,
    0 16px 28px rgba(11, 31, 58, 0.1),
    0 0 0 1px rgba(196, 163, 90, 0.45);
}

.teach-option.is-on {
  background: linear-gradient(180deg, #fffdf8 0%, #f8f1de 100%);
}

#path-programs {
  margin-top: 0.35rem;
}

body.page-study .path-tabs button {
  background: linear-gradient(180deg, #ffffff 0%, #eef2f8 100%);
  box-shadow:
    inset 0 1px 0 #fff,
    0 8px 16px rgba(11, 31, 58, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

body.page-study .path-tabs button,
body.page-study .path-tabs button span {
  color: var(--navy, #0b1f3a);
}

body.page-study .path-tabs button.is-on {
  background: var(--navy, #0b1f3a);
  border-color: var(--navy, #0b1f3a);
  color: #fff;
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 12px 22px rgba(11, 31, 58, 0.22);
}

body.page-study .path-tabs button.is-on span {
  color: #fff;
}

.path-length-row {
  margin: 0.85rem 0 0;
  padding: 0.85rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(26, 109, 255, 0.16);
  background: rgba(26, 109, 255, 0.04);
}

.path-length-ask {
  margin: 0 0 0.55rem;
  color: #475569;
  font-size: 0.88rem;
  line-height: 1.45;
}

.path-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.path-choice {
  min-height: 2.2rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid rgba(11, 31, 58, 0.14);
  border-radius: 999px;
  background: #fff;
  color: var(--navy, #0b1f3a);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
}

.path-choice.is-on {
  background: var(--navy, #0b1f3a);
  border-color: var(--navy, #0b1f3a);
  color: #fff;
}

.path-scan {
  margin: 0.75rem 0 0;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: #fff8e8;
  color: #1c1406;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
}

body.page-study .path-item {
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  box-shadow:
    inset 0 1px 0 #fff,
    0 10px 22px rgba(11, 31, 58, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.page-study .path-req-title {
  margin: 0.85rem 0 0.55rem;
  color: var(--navy, #0b1f3a);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

body.page-study .path-list-phrases {
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(11, 31, 58, 0.12);
  list-style: none;
  background: transparent;
}

body.page-study .path-item.path-phrase,
body.page-study .path-item.path-item-choice {
  display: grid;
  align-items: start;
  gap: 0.35rem 1rem;
  margin: 0;
  padding: 0.85rem 0.15rem;
  border: 0;
  border-bottom: 1px solid rgba(11, 31, 58, 0.1);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
  cursor: default;
  pointer-events: none;
}

body.page-study .path-item.path-phrase {
  grid-template-columns: minmax(0, 1fr) auto;
}

body.page-study .path-item.path-item-choice {
  grid-template-columns: 1fr;
  pointer-events: auto;
}

body.page-study .path-item.path-phrase:hover,
body.page-study .path-item.path-item-choice:hover,
body.page-study .path-list-phrases .path-item:hover {
  transform: none;
  box-shadow: none;
  border-color: transparent;
  border-bottom-color: rgba(11, 31, 58, 0.1);
  background: transparent;
}

body.page-study .path-phrase .path-status {
  justify-self: end;
  margin-top: 0.1rem;
  max-width: 12rem;
  padding: 0;
  border-radius: 0;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: end;
  white-space: nowrap;
}

body.page-study .path-phrase .path-status.is-req {
  color: #0b1f3a;
}

body.page-study .path-phrase .path-status.is-no {
  color: #64748b;
}

body.page-study .path-phrase .path-status.is-uni,
body.page-study .path-phrase .path-status.is-emb,
body.page-study .path-phrase .path-status.is-if,
body.page-study .path-phrase .path-status.is-opt {
  color: #8a6a24;
}

body.page-study .path-phrase-copy strong {
  display: block;
  font-size: 1.02rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  color: var(--navy, #0b1f3a);
}

body.page-study .path-phrase-copy p {
  margin-top: 0.25rem;
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.55;
}

body.page-study .path-panel-head .path-cat {
  color: #8a6a24;
}

body.page-study .path-panel-head .path-note {
  margin-top: 0.35rem;
  max-width: 54ch;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.5;
}

body.page-study .path-item-choice .path-choices {
  pointer-events: auto;
}

body.page-study .path-item:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 0 1px 0 #fff,
    0 16px 28px rgba(11, 31, 58, 0.1),
    0 0 0 1px rgba(196, 163, 90, 0.35);
}

body.page-study .path-list-phrases .path-item:hover {
  transform: none;
  box-shadow: none;
}

body.page-study .path-docs {
  margin: 0.35rem 0 0;
  padding: 0.15rem 0 0.1rem;
  background: transparent;
  border: 0;
  border-radius: 0;
  scroll-margin-top: calc(var(--nav-h, 72px) + 0.75rem);
}

body.page-study .path-docs h2 {
  margin: 0 0 0.3rem;
  color: var(--navy);
  font-size: 1.2rem;
}

body.page-study .upload-empty {
  margin: 0.35rem 0 0;
  padding: 1.5rem 1.2rem;
  text-align: center;
  color: var(--muted);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(244, 247, 252, 0.94));
  box-shadow:
    inset 0 1px 0 #fff,
    0 12px 28px rgba(11, 31, 58, 0.06);
}

body.page-study .upload-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 0.85rem;
  perspective: 1200px;
}

body.page-study .upload-card {
  display: grid;
  align-content: start;
  gap: 0.7rem;
  padding: 1rem;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f3f6fb 100%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 14px 28px rgba(11, 31, 58, 0.08);
  transform: translateZ(0);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

body.page-study .upload-card:hover,
body.page-study .upload-card:focus-within {
  transform: translateY(-6px);
  box-shadow:
    inset 0 1px 0 #fff,
    0 20px 36px rgba(11, 31, 58, 0.12),
    0 0 0 1px rgba(196, 163, 90, 0.45);
}

body.page-study .upload-ico {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #0b1f3a;
  background: linear-gradient(160deg, #ffffff 0%, #e6edf7 100%);
  box-shadow:
    inset 0 1px 0 #fff,
    6px 6px 14px rgba(11, 31, 58, 0.12),
    -4px -4px 10px rgba(255, 255, 255, 0.9);
}

body.page-study .upload-ico svg {
  width: 26px;
  height: 26px;
}

body.page-study .upload-copy strong {
  display: block;
  color: var(--navy);
  font-size: 0.98rem;
}

body.page-study .upload-copy p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

body.page-study .upload-copy .path-badge {
  margin-top: 0.45rem;
}

body.page-study .upload-drop {
  position: relative;
  display: grid;
  gap: 0.35rem;
  min-height: 4.6rem;
  padding: 0.75rem;
  border-radius: 16px;
  border: 1px dashed rgba(11, 31, 58, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(236, 242, 250, 0.95));
  box-shadow: inset 0 2px 6px rgba(11, 31, 58, 0.05);
}

body.page-study .upload-drop.is-drag {
  border-color: #c4a35a;
  box-shadow:
    inset 0 2px 6px rgba(11, 31, 58, 0.04),
    0 0 0 4px rgba(196, 163, 90, 0.22);
}

body.page-study .upload-drop-label {
  position: relative;
  z-index: 0;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 600;
}

body.page-study .upload-drop input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}

body.page-study .upload-drop .lead-doc-download,
body.page-study .upload-drop .lead-doc-extra-hint,
body.page-study .upload-drop .path-file-label {
  position: relative;
  z-index: 2;
}

/* Chosen files sit above the invisible input so Remove stays tappable */
body.page-study .upload-chips {
  position: relative;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  max-width: 100%;
  min-height: 0;
  pointer-events: auto;
}
body.page-study .upload-drop.has-file input[type="file"] {
  /* Keep replace via empty area / label; chips handle remove */
  z-index: 1;
}

body.page-study .upload-chips:empty {
  display: none;
}

body.page-study .upload-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
  padding: 0.35rem 0.35rem 0.35rem 0.65rem;
  border-radius: 999px;
  background: #0b1f3a;
  color: #fff;
  font-size: 0.75rem;
  line-height: 1.35;
  box-shadow: 0 4px 12px rgba(11, 31, 58, 0.18);
}

body.page-study .upload-chip-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 14rem;
}

body.page-study .upload-chip-remove {
  flex: 0 0 auto;
  width: 1.45rem;
  height: 1.45rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

body.page-study .upload-chip-remove:hover,
body.page-study .upload-chip-remove:focus-visible {
  background: #1a6dff;
  outline: none;
}

body.page-study .upload-card.has-file,
body.page-study .upload-drop.has-file {
  border-color: rgba(26, 109, 255, 0.35);
}

body.page-study .upload-drop.has-file {
  background: linear-gradient(180deg, rgba(232, 241, 255, 0.95), rgba(255, 255, 255, 0.92));
}

body.page-study .upload-drop.has-file .upload-drop-label {
  font-size: 0.75rem;
  font-weight: 650;
  color: #475569;
}

body.page-study .upload-card.is-extra .path-extra-card {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

body.page-study .upload-card.is-extra .lead-add-files {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  body.page-study .upload-card,
  body.page-study .path-item,
  body.page-study .path-tabs button {
    transition: none;
  }

  body.page-study .upload-card:hover,
  body.page-study .upload-card:focus-within,
  body.page-study .path-item:hover,
  body.page-study .path-tabs button.is-on {
    transform: none;
  }
}

/* —— Open company page (EN / AR / ZH + RTL) —— */
body.page-company .lead-hero {
  padding: 2.6rem 0 1.75rem;
  background:
    radial-gradient(900px 420px at 8% -20%, rgba(26, 109, 255, 0.16), transparent 55%),
    radial-gradient(700px 380px at 100% 10%, rgba(212, 175, 55, 0.12), transparent 50%),
    linear-gradient(180deg, #eef3fb 0%, var(--bg) 100%);
}

body.page-company .lead-hero h1 {
  max-width: 22ch;
}

html[lang="ar"] body.page-company .lead-hero h1,
html[dir="rtl"] body.page-company .lead-hero h1,
html[lang="zh"] body.page-company .lead-hero h1 {
  max-width: min(100%, 18em);
  line-height: 1.25;
}

body.page-company .lead-hero .lead-sub {
  max-width: 46rem;
  line-height: 1.55;
}

body.page-company .lead-card {
  padding: 1.35rem 1.2rem 1.55rem;
  border-radius: 20px;
}

body.page-company .lead-form-head .lead-hint {
  margin: 0;
  padding: 0;
  border: 0;
  max-width: 42rem;
}

body.page-company .lead-form {
  gap: 1.15rem;
}

body.page-company .lead-section {
  display: grid;
  gap: 0.95rem;
  padding: 1.05rem 1rem 1.15rem;
  border-radius: 16px;
  border: 1px solid rgba(11, 31, 58, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(246, 249, 253, 0.92));
}

body.page-company .lead-section-head {
  display: grid;
  gap: 0.2rem;
}

body.page-company .lead-section-kicker {
  margin: 0;
  color: #8a6a24;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

html[lang="ar"] body.page-company .lead-section-kicker {
  letter-spacing: 0;
  text-transform: none;
}

body.page-company .lead-section-head h3 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

body.page-company .lead-section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

body.page-company .lead-section-grid {
  display: grid;
  gap: 0.9rem;
}

@media (min-width: 640px) {
  body.page-company .lead-section-grid {
    grid-template-columns: 1fr 1fr;
  }

  body.page-company .lead-section-grid .field-span {
    grid-column: 1 / -1;
  }
}

body.page-company .lead-form .field > label {
  flex-wrap: wrap;
  align-items: center;
  row-gap: 0.25rem;
  line-height: 1.35;
}

body.page-company .lead-form .field > label > span[data-t],
body.page-company .lead-form .field > label > span:not(.lead-field-ico):not(.req) {
  min-width: 0;
  overflow-wrap: anywhere;
}

body.page-company .lead-field-hint,
body.page-company .lead-quote-note {
  overflow-wrap: anywhere;
  word-break: normal;
  line-height: 1.45;
}

body.page-company .lead-quote-note {
  margin: 0;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: #fff8e8;
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: #6b5420;
  font-size: 0.84rem;
}

body.page-company .lead-country-chip {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 3.1rem;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(26, 109, 255, 0.22);
  background: linear-gradient(180deg, #f5f9ff, #eef4ff);
  color: var(--navy);
}

body.page-company .lead-mode-options {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 720px) {
  body.page-company .lead-mode-options {
    grid-template-columns: 1fr 1fr;
  }
}

body.page-company .lead-mode-card {
  display: grid;
  gap: 0.3rem;
  align-content: start;
  margin: 0;
  padding: 1rem 1.05rem;
  border-radius: 16px;
  border: 1px solid rgba(11, 31, 58, 0.1);
  background: linear-gradient(180deg, #fff, #f5f8fc);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

body.page-company .lead-mode-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

body.page-company .lead-mode-card strong {
  color: var(--navy);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

body.page-company .lead-mode-card span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

body.page-company .lead-mode-card em {
  margin-top: 0.25rem;
  font-style: normal;
  font-weight: 750;
  color: #8a6a24;
  font-size: 0.9rem;
}

body.page-company .lead-mode-card:hover,
body.page-company .lead-mode-card.is-on {
  border-color: rgba(26, 109, 255, 0.4);
  box-shadow: 0 12px 28px rgba(11, 31, 58, 0.08);
  transform: translateY(-2px);
}

body.page-company .lead-mode-card.is-on {
  background: linear-gradient(180deg, #f5f9ff, #eef4ff);
}

body.page-company .lead-name-combo {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(7rem, 0.9fr);
  align-items: stretch;
  gap: 0;
  min-height: 3.1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcfe;
  overflow: hidden;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

body.page-company .lead-name-combo:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26, 109, 255, 0.15);
  background: #fff;
}

body.page-company .lead-name-prefix,
body.page-company .lead-name-type {
  display: inline-flex;
  align-items: center;
  flex: none;
  padding: 0.55rem 0.75rem;
  color: var(--navy);
  font-weight: 750;
  font-size: 0.86rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

body.page-company .lead-name-prefix {
  border-inline-end: 1px solid rgba(11, 31, 58, 0.1);
  background: linear-gradient(180deg, #f5f9ff, #eef4ff);
  white-space: nowrap;
}

body.page-company .lead-name-type {
  border-inline-start: 1px solid rgba(11, 31, 58, 0.1);
  background: linear-gradient(180deg, #fff8e8, #fff3d6);
  color: #6b5420;
  min-width: 0;
}

body.page-company .lead-name-type.is-empty {
  color: #94a3b8;
  font-weight: 650;
  background: #f8fafc;
}

body.page-company .lead-name-combo input {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  min-width: 0;
}

body.page-company .lead-name-full,
body.page-company #companyNamePreview {
  margin-top: 0.45rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: #0b1f3a;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

body.page-company .lead-name-full:empty,
body.page-company #companyNamePreview:empty {
  display: none;
}

@media (max-width: 639px) {
  body.page-company .lead-name-combo {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
  }

  body.page-company .lead-name-type {
    grid-column: 1 / -1;
    border-inline-start: 0;
    border-top: 1px solid rgba(11, 31, 58, 0.1);
  }
}

body.page-company .lead-country-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  background: #0b1f3a;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

body.page-company .lead-country-chip strong {
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.3;
}

body.page-company .lead-form .field select.lead-select-long,
body.page-company .lead-form .field select.lead-select-activity {
  min-height: 3.1rem;
  line-height: 1.35;
  text-overflow: ellipsis;
}

body.page-company .lead-form .field select.lead-select-activity {
  min-height: 14rem;
  padding: 0.35rem;
  background: #fff;
  font-size: 0.9rem;
}

body.page-company .lead-form .field select.lead-select-activity option {
  padding: 0.45rem 0.55rem;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

body.page-company #activitySearch {
  margin-bottom: 0.45rem;
}

body.page-company .lead-pay {
  margin-top: 0.15rem;
}

body.page-company .lead-pay-methods-stack {
  display: grid;
  gap: 0.55rem;
}

body.page-company .lead-pay-methods-stack .lead-pay-choice {
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem;
  line-height: 1.4;
}

body.page-company .lead-pay-methods-stack .lead-pay-choice span {
  min-width: 0;
  overflow-wrap: anywhere;
}

body.page-company .lead-pay-total {
  margin: 0.85rem 0 0;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: #0b1f3a;
  color: #fff;
  font-size: 0.98rem;
  font-weight: 750;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

body.page-company .lead-pay-dl > div {
  align-items: start;
  gap: 0.35rem 1rem;
}

body.page-company .lead-pay-dl dt,
body.page-company .lead-pay-dl dd {
  overflow-wrap: anywhere;
  line-height: 1.4;
}

body.page-company .lead-aside-list {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

body.page-company .lead-aside-list li {
  display: grid;
  grid-template-columns: 0.7rem 1fr;
  gap: 0.7rem;
  align-items: start;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
  line-height: 1.45;
}

body.page-company .lead-aside-list li::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.4rem;
  border-radius: 999px;
  background: #d4af37;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.22);
}

body.page-company .lead-aside-list li span {
  min-width: 0;
  overflow-wrap: anywhere;
}

body.page-company .lead-aside-soft p,
body.page-company .lead-aside-soft strong {
  overflow-wrap: anywhere;
  line-height: 1.5;
}

body.page-company .lead-check span {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.45;
}

body.page-company .lead-docs-head strong,
body.page-company .lead-docs-head span,
body.page-company .lead-doc-meta label {
  overflow-wrap: anywhere;
  line-height: 1.35;
}

@media (max-width: 639px) {
  body.page-company .lead-form .field select.lead-select-activity {
    min-height: 11.5rem;
    font-size: 0.86rem;
  }

  body.page-company .lead-section {
    padding: 0.9rem 0.8rem 1rem;
  }
}

html[dir="rtl"] body.page-company .lead-form .field input[dir="ltr"],
html[dir="rtl"] body.page-company .lead-form .field select[dir="ltr"] {
  text-align: left;
}

/* Study + partner: keep emails/phones/IDs LTR under Arabic so @ and domains are not bidi-mangled. */
html[dir="rtl"] .lead-form .field input[dir="ltr"],
html[dir="rtl"] .lead-form .field select[dir="ltr"],
html[dir="rtl"] .lead-form .field textarea[dir="ltr"],
html[dir="rtl"] .lead-form .field input[type="email"],
html[dir="rtl"] .study-reg-form .field input[dir="ltr"],
html[dir="rtl"] .study-reg-form .field input[type="email"] {
  direction: ltr;
  text-align: left;
  unicode-bidi: isolate;
}

html[lang="zh"] body.page-company .lead-section-head h3,
html[lang="zh"] body.page-company .lead-form .field > label {
  letter-spacing: 0;
}

/* ——— Study China ad hero + promo strip ——— */
.study-ad-hero {
  position: relative;
  isolation: isolate;
  min-height: min(72vh, 640px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  background: #0b1f3a;
}

.study-ad-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.study-ad-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 35%;
  transform: scale(1.02);
}

.study-ad-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(8, 18, 34, 0.92) 0%, rgba(8, 18, 34, 0.72) 42%, rgba(8, 18, 34, 0.28) 72%, rgba(8, 18, 34, 0.12) 100%),
    linear-gradient(180deg, rgba(8, 18, 34, 0.35) 0%, transparent 28%, rgba(8, 18, 34, 0.55) 100%);
  pointer-events: none;
}

.study-ad-hero-copy {
  position: relative;
  z-index: 2;
  padding: 3.4rem 0 2.6rem;
  max-width: 40rem;
}

.study-ad-hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1rem;
  font-size: clamp(1.55rem, 3.2vw, 2.1rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
}

.study-ad-hero-brand img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

.study-ad-eyebrow {
  color: rgba(255, 255, 255, 0.82) !important;
  background: transparent;
  border: 0;
  padding: 0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
}

.study-ad-hero h1 {
  max-width: 16ch;
  margin: 0.85rem 0 0.75rem;
  font-size: clamp(2.05rem, 4.4vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* Arabic: never use Latin negative tracking — it glues connected glyphs. */
html[lang="ar"] .study-ad-hero h1,
html[dir="rtl"] .study-ad-hero h1 {
  max-width: min(100%, 14em);
  font-family: "Noto Sans Arabic", var(--font);
  font-weight: 700;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.45;
  letter-spacing: 0;
  word-spacing: 0.12em;
}

html[lang="ar"] .study-ad-eyebrow,
html[dir="rtl"] .study-ad-eyebrow {
  letter-spacing: 0;
  text-transform: none;
  font-family: "Noto Sans Arabic", var(--font);
}

html[lang="ar"] .study-ad-hero .lead-sub,
html[dir="rtl"] .study-ad-hero .lead-sub {
  font-family: "Noto Sans Arabic", var(--font);
  line-height: 1.7;
  letter-spacing: 0;
  word-spacing: 0.06em;
}

.study-ad-hero .lead-sub {
  max-width: 38rem;
  color: rgba(255, 255, 255, 0.86);
}

.study-ad-hero .lead-trust {
  color: rgba(255, 255, 255, 0.72);
}

.study-ad-hero .btn-primary {
  box-shadow: 0 12px 28px rgba(26, 109, 255, 0.35);
}

.study-ad-ghost {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.42) !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.study-ad-ghost:hover {
  background: rgba(255, 255, 255, 0.16) !important;
}

.study-ad-strip {
  padding: 1.35rem 0 0.35rem;
  background:
    radial-gradient(900px 280px at 10% 0%, rgba(26, 109, 255, 0.08), transparent 55%),
    linear-gradient(180deg, #eef3fb 0%, var(--bg, #f7f8fb) 100%);
}

.study-ad-strip-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.9fr;
  gap: 0.9rem;
  align-items: stretch;
}

.study-ad-tile {
  position: relative;
  display: block;
  min-height: 240px;
  overflow: hidden;
  border-radius: 22px;
  text-decoration: none;
  color: #fff;
  isolation: isolate;
  box-shadow: 0 16px 36px rgba(11, 31, 58, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.study-ad-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 44px rgba(11, 31, 58, 0.16);
}

.study-ad-tile > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.study-ad-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(8, 18, 34, 0.18) 0%, rgba(8, 18, 34, 0.78) 100%);
  pointer-events: none;
}

.study-ad-tile-wide::after {
  background: linear-gradient(90deg, rgba(8, 18, 34, 0.88) 0%, rgba(8, 18, 34, 0.45) 55%, rgba(8, 18, 34, 0.2) 100%);
}

.study-ad-tile-copy {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 0.45rem;
  align-content: end;
  height: 100%;
  padding: 1.25rem 1.2rem 1.3rem;
}

.study-ad-tile-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.study-ad-tile-brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.study-ad-tile-copy strong {
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 18ch;
}

.study-ad-tile-copy p {
  margin: 0;
  max-width: 34ch;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.92rem;
  line-height: 1.45;
}

.study-ad-tile-cta {
  margin-top: 0.35rem;
  display: inline-flex;
  align-self: start;
  padding: 0.5rem 0.95rem;
  border-radius: 10px;
  background: #1a6dff;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 750;
}

.study-ad-tile-square {
  min-height: 280px;
}

@media (max-width: 860px) {
  .study-ad-strip-grid {
    grid-template-columns: 1fr;
  }

  .study-ad-tile,
  .study-ad-tile-square {
    min-height: 220px;
  }

  .study-ad-hero {
    min-height: min(68vh, 560px);
  }

  .study-ad-hero-media img {
    object-position: 70% 30%;
  }

  .study-ad-hero::before {
    background:
      linear-gradient(180deg, rgba(8, 18, 34, 0.45) 0%, rgba(8, 18, 34, 0.78) 55%, rgba(8, 18, 34, 0.92) 100%);
  }

  .study-ad-hero-copy {
    max-width: none;
    padding: 5.5rem 0 2rem;
  }

  .study-ad-hero h1 {
    max-width: none;
  }
}

html[dir="rtl"] .study-ad-hero::before {
  background:
    linear-gradient(270deg, rgba(8, 18, 34, 0.92) 0%, rgba(8, 18, 34, 0.72) 42%, rgba(8, 18, 34, 0.28) 72%, rgba(8, 18, 34, 0.12) 100%),
    linear-gradient(180deg, rgba(8, 18, 34, 0.35) 0%, transparent 28%, rgba(8, 18, 34, 0.55) 100%);
}

html[dir="rtl"] .study-ad-tile-wide::after {
  background: linear-gradient(270deg, rgba(8, 18, 34, 0.88) 0%, rgba(8, 18, 34, 0.45) 55%, rgba(8, 18, 34, 0.2) 100%);
}

body.page-study .study-ad-hero + .study-ad-strip {
  margin-top: 0;
}

/* ——— Study promo popup (ad tile) ——— */
button.study-ad-tile {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  text-align: start;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  color: #fff;
}

html[lang="ar"] .study-ad-tile-copy,
html[dir="rtl"] .study-ad-tile-copy {
  font-family: "Noto Sans Arabic", var(--font);
}

html[lang="ar"] .study-ad-tile-copy strong,
html[dir="rtl"] .study-ad-tile-copy strong,
html[lang="ar"] .study-ad-tile-copy p,
html[dir="rtl"] .study-ad-tile-copy p {
  letter-spacing: 0;
  word-spacing: 0.08em;
  line-height: 1.45;
}

.study-promo-modal {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(0.75rem, env(safe-area-inset-top, 0px))
    max(0.75rem, env(safe-area-inset-right, 0px))
    max(0.75rem, env(safe-area-inset-bottom, 0px))
    max(0.75rem, env(safe-area-inset-left, 0px));
  background: rgba(8, 18, 34, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: studyPromoFade 0.22s ease;
}

.study-promo-modal[hidden] {
  display: none !important;
}

@keyframes studyPromoFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.study-promo-dialog {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  width: min(820px, 100%);
  max-height: min(92vh, 640px);
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 32px 80px rgba(8, 18, 34, 0.38);
  animation: studyPromoUp 0.28s ease;
}

@keyframes studyPromoUp {
  from { transform: translateY(14px); opacity: 0.85; }
  to { transform: none; opacity: 1; }
}

.study-promo-modal-close {
  position: absolute;
  top: 0.7rem;
  inset-inline-end: 0.7rem;
  z-index: 3;
  width: 2.4rem;
  height: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: #0b1f3a;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(8, 18, 34, 0.16);
}

.study-promo-modal-close:hover,
.study-promo-modal-close:focus-visible {
  background: #fff;
  outline: none;
}

.study-promo-dialog-media {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  background: #0b1f3a;
}

.study-promo-dialog-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
}

.study-promo-dialog-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(8, 18, 34, 0.55) 100%);
  pointer-events: none;
}

.study-promo-dialog-brand {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 1.05rem;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

html[dir="rtl"] .study-promo-dialog-brand {
  left: auto;
  right: 1rem;
  letter-spacing: 0;
}

.study-promo-dialog-brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.study-promo-dialog-body {
  display: grid;
  align-content: start;
  gap: 0.7rem;
  padding: 1.45rem 1.35rem 1.4rem;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.study-promo-modal-badge {
  display: inline-flex;
  align-self: start;
  padding: 0.28rem 0.6rem;
  border-radius: 8px;
  background: rgba(180, 83, 9, 0.12);
  color: #9a3412;
  font-size: 0.72rem;
  font-weight: 800;
}

.study-promo-dialog-body h2 {
  margin: 0;
  color: #0b1f3a;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

html[lang="ar"] .study-promo-dialog-body h2,
html[dir="rtl"] .study-promo-dialog-body h2 {
  font-family: "Noto Sans Arabic", var(--font);
  letter-spacing: 0;
  word-spacing: 0.1em;
  line-height: 1.45;
}

.study-promo-modal-lead {
  margin: 0;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.55;
}

html[lang="ar"] .study-promo-modal-lead,
html[dir="rtl"] .study-promo-modal-lead,
html[lang="ar"] .study-promo-modal-points,
html[dir="rtl"] .study-promo-modal-points,
html[lang="ar"] .study-promo-modal-note,
html[dir="rtl"] .study-promo-modal-note {
  font-family: "Noto Sans Arabic", var(--font);
  letter-spacing: 0;
  word-spacing: 0.06em;
  line-height: 1.65;
}

.study-promo-modal-points {
  margin: 0.15rem 0 0;
  padding: 0.75rem 0.85rem 0.75rem 1.35rem;
  border-radius: 14px;
  background: rgba(26, 109, 255, 0.06);
  border: 1px solid rgba(26, 109, 255, 0.12);
  color: #0b1f3a;
  font-size: 0.9rem;
  line-height: 1.5;
  display: grid;
  gap: 0.45rem;
}

html[dir="rtl"] .study-promo-modal-points {
  padding: 0.75rem 1.35rem 0.75rem 0.85rem;
}

.study-promo-modal-note {
  margin: 0;
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.5;
}

.study-promo-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.35rem;
}

@media (max-width: 760px) {
  .study-promo-dialog {
    grid-template-columns: 1fr;
    max-height: min(94vh, 720px);
    overflow: auto;
  }

  .study-promo-dialog-media {
    min-height: 190px;
    max-height: 210px;
  }
}

/* ——— Nationality searchable combobox (study + company) ——— */
.field-nation .nation-combo {
  position: relative;
}

.field-nation #nationality-search {
  width: 100%;
  padding-inline-end: 2.6rem;
  text-overflow: ellipsis;
}

.field-nation .nation-toggle {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  width: 2.6rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: #64748b;
}

.field-nation .nation-toggle::before {
  content: "";
  display: block;
  width: 0.5rem;
  height: 0.5rem;
  margin: -0.15rem auto 0;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.field-nation .nation-list {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% + 0.25rem);
  margin: 0;
  padding: 0.35rem 0;
  max-height: 16rem;
  overflow: auto;
  overscroll-behavior: auto;
  -webkit-overflow-scrolling: touch;
  list-style: none;
  border-radius: 12px;
  border: 1px solid rgba(11, 31, 58, 0.14);
  background: #fff;
  box-shadow: 0 16px 36px rgba(11, 31, 58, 0.14);
}

.field-nation .nation-list[hidden] {
  display: none !important;
}

.field-nation .nation-list li[role="option"] {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.15rem 0.75rem;
  min-height: 2.75rem;
  align-content: center;
  padding: 0.55rem 0.85rem;
  cursor: pointer;
  color: #0b1f3a;
  font-size: 0.95rem;
  line-height: 1.35;
}

.field-nation .nation-list li[role="option"]:hover,
.field-nation .nation-list li[role="option"].is-active {
  background: rgba(26, 109, 255, 0.1);
}

.field-nation .nation-list li[aria-selected="true"] {
  background: rgba(26, 109, 255, 0.07);
  font-weight: 700;
}

.field-nation .nation-alt {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 450;
}

.field-nation .nation-empty {
  padding: 0.7rem 0.85rem;
  color: #64748b;
  font-size: 0.88rem;
}

html[dir="rtl"] .field-nation .nation-list li[role="option"],
html[dir="rtl"] .field-nation .nation-empty {
  text-align: right;
}

/* —— Study China · university partners slider —— */
.study-uni-partners {
  position: relative;
  padding: 3.4rem 0 3.6rem;
  background:
    radial-gradient(1100px 320px at 18% -8%, rgba(26, 109, 255, 0.22), transparent 68%),
    radial-gradient(900px 280px at 88% 110%, rgba(56, 189, 248, 0.1), transparent 60%),
    linear-gradient(180deg, #061221 0%, #0a1a31 48%, #061221 100%);
  color: #f4f7fb;
  overflow: hidden;
}
.study-uni-wrap {
  max-width: none;
  width: calc(100% - 2 * clamp(0.5rem, 0.9vw, 0.85rem));
}
.study-uni-top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.9fr);
  gap: 1.25rem 1.75rem;
  align-items: end;
  margin-bottom: 1.35rem;
}
.study-uni-head {
  position: relative;
  margin: 0;
  max-width: 40rem;
  text-align: start;
}
.study-uni-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(142, 197, 255, 0.9);
}
.study-uni-partners h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.4rem, 2.5vw, 1.95rem);
  line-height: 1.22;
  font-weight: 780;
  letter-spacing: -0.03em;
  color: #f4f7fb;
}
.study-uni-sub {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(244, 247, 251, 0.62);
  font-weight: 450;
}
.study-uni-stats {
  list-style: none;
  margin: 0;
  padding: 0.75rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
}
.study-uni-stats li {
  display: grid;
  gap: 0.12rem;
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  background: rgba(8, 24, 48, 0.35);
}
.study-uni-stats strong {
  font-size: 1.15rem;
  font-weight: 820;
  letter-spacing: -0.02em;
  color: #8ec5ff;
}
.study-uni-stats span {
  font-size: 0.72rem;
  line-height: 1.3;
  color: rgba(244, 247, 251, 0.58);
  font-weight: 550;
}
.study-uni-stage {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: stretch;
  min-width: 0;
}
.study-uni-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
}
.study-uni-controls {
  display: flex;
  gap: 0.4rem;
}
.study-uni-nav {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.study-uni-nav:hover {
  background: rgba(26, 109, 255, 0.85);
  transform: translateY(-1px);
}
.study-uni-rail {
  position: relative;
  margin: 0;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  /* Side padding = soft gutter (>= fade width). JS snaps viewport to whole cards, so no card is ever sliced */
  padding: 0.85rem 1rem;
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
  /* Keep LTR even under Arabic page so overflow origin is track start, not end */
  direction: ltr !important;
  unicode-bidi: isolate;
}
.study-uni-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  /* Soft gutter fade only — sits inside rail padding, never over a card face */
  width: 12px;
  z-index: 2;
  pointer-events: none;
}
.study-uni-fade-start {
  left: 0;
  background: linear-gradient(90deg, rgba(6, 18, 33, 0.22) 0%, rgba(6, 18, 33, 0));
}
.study-uni-fade-end {
  right: 0;
  background: linear-gradient(270deg, rgba(6, 18, 33, 0.22) 0%, rgba(6, 18, 33, 0));
}
/* Fades stay physical L/R — rail/viewport are forced LTR for the marquee */
.study-uni-viewport {
  /* flex + LTR pins the max-content track to physical left under RTL ancestors */
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  overflow: hidden;
  min-width: 0;
  /* JS (layoutUniRail) sets --uni-vp-w = N whole cards + gaps, so edges never slice a card */
  width: var(--uni-vp-w, 100%);
  max-width: 100%;
  margin-inline: auto;
  direction: ltr !important;
  unicode-bidi: isolate;
  /* Soft edges via fades only — CSS mask on a moving track causes jank */
  mask-image: none;
  -webkit-mask-image: none;
}
.study-uni-track {
  display: flex;
  flex: 0 0 auto;
  /* Always LTR so duplicate sets + translateX(-distance) stay seamless in AR */
  direction: ltr !important;
  /* gap only inside each set — track gap between sets caused the empty flash */
  gap: 0;
  width: max-content;
  max-width: none;
  margin: 0;
  margin-left: 0;
  margin-right: auto;
  /* Card-by-card snap slide (JS) — only whole cards rest in view; no continuous mid-card drift */
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  will-change: transform;
  contain: layout style;
  transition: transform 0.7s cubic-bezier(0.22, 0.7, 0.2, 1);
  animation: none;
}
.study-uni-track-set {
  display: flex;
  direction: ltr !important;
  gap: 14px;
  flex: 0 0 auto;
  /* trailing gap = same as card gap, so clone butts up seamlessly */
  padding-inline-end: 14px;
  box-sizing: content-box;
  contain: content;
}
.study-uni-track.is-manual {
  animation: none;
}
.study-uni-card {
  flex: 0 0 auto;
  /* --uni-card-w from JS so N cards exactly fill the viewport */
  width: var(--uni-card-w, 300px);
  margin: 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  /* Solid fill — backdrop-filter on 50+ moving cards was lagging the marquee */
  background: linear-gradient(180deg, #1a3d6b 0%, #122a4a 100%);
  overflow: hidden;
  /* no content-visibility:auto here — cards slide in via transform and must paint instantly (no blank flash) */
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.study-uni-card:hover {
  border-color: rgba(142, 197, 255, 0.35);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}
.study-uni-card.is-hidden {
  display: none;
}
.study-uni-crest {
  position: relative;
  display: block;
  height: 112px;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
  /* Solid only — never a second campus photo peeking around the crest img */
  background: #0f2744;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.study-uni-crest img,
.study-uni-crest-img {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  /* Crest banners are wide (up to ~6:1, logo often left-aligned) — show the WHOLE banner, never crop */
  object-fit: contain;
  object-position: center;
  opacity: 1;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
}
/* Real campus photos only (kind "photo" / fallback chain): fill the frame */
.study-uni-crest img.is-photo,
.study-uni-crest-img.is-photo {
  object-fit: cover;
  object-position: center;
}
/* Text name-plate: shown for universities with no crest asset (and under a failed crest load).
   Honest fallback — the school's own name, never a shared photo or another school's crest. */
.study-uni-plate {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.6rem 0.9rem;
  text-align: center;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(26, 109, 255, 0.28), rgba(26, 109, 255, 0) 60%),
    linear-gradient(135deg, #14335c 0%, #0f2744 100%);
  color: #f4f7fb;
  overflow: hidden;
}
.study-uni-plate b {
  font-size: 1.28rem;
  font-weight: 760;
  letter-spacing: 0.04em;
  line-height: 1.25;
  max-width: 100%;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.study-uni-plate i {
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 620;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(142, 197, 255, 0.85);
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Plate-only cards: the plate already carries the school name, so the text title below is read-by-AT only */
.study-uni-card.is-plate .study-uni-meta strong {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.study-uni-card.is-plate .study-uni-meta {
  min-height: 0;
  padding-top: 0.85rem;
}
.study-uni-crest:not(.is-plate-only) .study-uni-plate {
  visibility: hidden;
}
.study-uni-crest.is-plate-only img {
  display: none;
}
.study-uni-crest-mark {
  /* Legacy glyph fallback kept for old cached HTML only — new cards always use <img> */
  display: block;
  width: 100%;
  height: 100%;
  font-size: 0;
  color: transparent;
  background: #0f2744;
}
.study-uni-meta {
  display: grid;
  gap: 0.32rem;
  padding: 0.95rem 1rem 1.05rem;
  text-align: start;
  min-height: 10.5rem;
}
.study-uni-meta strong {
  font-size: 1rem;
  font-weight: 780;
  color: #f4f7fb;
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.study-uni-langs {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.28rem;
  font-size: 0.74rem;
  line-height: 1.35;
  color: rgba(168, 206, 255, 0.92);
  font-weight: 550;
}
.study-uni-langs [lang="ar"] {
  font-size: 0.76rem;
  direction: rtl;
}
.study-uni-meta [data-t$="City"],
.study-uni-meta > span:not(.study-uni-langs):not(.study-uni-tags) {
  font-size: 0.74rem;
  color: rgba(244, 247, 251, 0.5);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.study-uni-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.15rem;
}
.study-uni-tags span {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  color: #cfe3ff;
  background: rgba(26, 109, 255, 0.22);
  border: 1px solid rgba(142, 197, 255, 0.22);
}
.study-uni-ask {
  margin-top: 0.35rem;
  justify-self: start;
  font-size: 0.78rem;
  font-weight: 720;
  color: #8ec5ff;
  text-decoration: none;
  border-bottom: 1px solid rgba(142, 197, 255, 0.35);
}
.study-uni-ask:hover {
  color: #fff;
  border-bottom-color: #fff;
}
.study-uni-why {
  display: grid;
  gap: 0.95rem;
  padding: 1.15rem 1.15rem 1.2rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(135deg, rgba(26, 109, 255, 0.18), rgba(255, 255, 255, 0.04));
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.study-uni-why-head {
  display: grid;
  gap: 0.35rem;
}
.study-uni-side-kicker {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 720;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(142, 197, 255, 0.95);
}
.study-uni-why-head h3 {
  margin: 0;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.28;
  color: #fff;
}
.study-uni-why-grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}
.study-uni-why-grid li {
  position: relative;
  padding-block: 0.7rem;
  padding-inline: 1.35rem 0.75rem;
  border-radius: 12px;
  background: rgba(8, 24, 48, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  line-height: 1.4;
  color: rgba(244, 247, 251, 0.86);
  min-height: 4.2rem;
}
.study-uni-why-grid li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0.55rem;
  top: 0.95rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: #5aa2ff;
  box-shadow: 0 0 0 3px rgba(26, 109, 255, 0.25);
}
/*
 * Ads grid forces direction:ltr for skyscraper placement.
 * Re-assert RTL on the universities block so Arabic reads/flows correctly.
 */
html[lang="ar"] body.page-study-portal .study-travel-ads-grid > .study-uni-partners,
html[dir="rtl"] body.page-study-portal .study-travel-ads-grid > .study-uni-partners,
html[lang="ar"] .study-uni-partners,
html[dir="rtl"] .study-uni-partners,
html[lang="ar"] .study-uni-wrap,
html[lang="ar"] .study-uni-head,
html[lang="ar"] .study-uni-why,
html[lang="ar"] .study-uni-meta,
html[lang="ar"] .study-uni-foot,
html[dir="rtl"] .study-uni-wrap,
html[dir="rtl"] .study-uni-head,
html[dir="rtl"] .study-uni-why,
html[dir="rtl"] .study-uni-meta,
html[dir="rtl"] .study-uni-foot {
  direction: rtl;
  text-align: right;
  unicode-bidi: isolate;
}

/* Marquee must stay physical-LTR under Arabic — otherwise last cards + empty right */
html[lang="ar"] .study-uni-rail,
html[dir="rtl"] .study-uni-rail,
html[lang="ar"] .study-uni-viewport,
html[dir="rtl"] .study-uni-viewport,
html[lang="ar"] .study-uni-track,
html[dir="rtl"] .study-uni-track,
html[lang="ar"] .study-uni-track-set,
html[dir="rtl"] .study-uni-track-set {
  direction: ltr !important;
  text-align: left;
  unicode-bidi: isolate;
}

html[lang="ar"] .study-uni-kicker,
html[dir="rtl"] .study-uni-kicker,
html[lang="ar"] .study-uni-side-kicker,
html[dir="rtl"] .study-uni-side-kicker {
  letter-spacing: 0 !important;
  text-transform: none !important;
  font-size: 0.92rem;
  font-weight: 700;
  color: #9ec5ff;
}

html[lang="ar"] .study-uni-partners h2,
html[dir="rtl"] .study-uni-partners h2,
html[lang="ar"] .study-uni-why-head h3,
html[dir="rtl"] .study-uni-why-head h3 {
  letter-spacing: 0 !important;
  line-height: 1.65;
  font-weight: 800;
  text-align: right;
}

html[lang="ar"] .study-uni-sub,
html[dir="rtl"] .study-uni-sub,
html[lang="ar"] .study-uni-note,
html[dir="rtl"] .study-uni-note {
  line-height: 1.85;
  text-align: right;
}

html[lang="ar"] .study-uni-why-grid,
html[dir="rtl"] .study-uni-why-grid,
html[lang="ar"] body.page-study-portal .study-travel-ads-grid > .study-uni-partners .study-uni-why-grid,
html[dir="rtl"] body.page-study-portal .study-travel-ads-grid > .study-uni-partners .study-uni-why-grid {
  grid-template-columns: 1fr;
  gap: 0.7rem;
}

html[lang="ar"] .study-uni-why-grid li,
html[dir="rtl"] .study-uni-why-grid li {
  font-size: 0.98rem;
  line-height: 1.8;
  min-height: 0;
  text-align: right;
  padding-block: 0.85rem;
  padding-inline: 1.45rem 0.9rem;
}

html[lang="ar"] .study-uni-why-actions,
html[dir="rtl"] .study-uni-why-actions,
html[lang="ar"] .study-uni-actions,
html[dir="rtl"] .study-uni-actions {
  flex-direction: row-reverse;
  justify-content: flex-start;
  gap: 0.85rem;
}

html[lang="ar"] .study-uni-meta,
html[dir="rtl"] .study-uni-meta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.32rem;
  text-align: right;
}
html[lang="ar"] .study-uni-meta strong,
html[dir="rtl"] .study-uni-meta strong {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(244, 247, 251, 0.55);
  order: 2;
}
html[lang="ar"] .study-uni-langs,
html[dir="rtl"] .study-uni-langs {
  order: 1;
  font-size: 1.05rem;
  font-weight: 780;
  color: #f4f7fb;
  line-height: 1.55;
}
html[lang="ar"] .study-uni-langs [lang="zh"],
html[dir="rtl"] .study-uni-langs [lang="zh"],
html[lang="ar"] .study-uni-langs [aria-hidden="true"],
html[dir="rtl"] .study-uni-langs [aria-hidden="true"] {
  font-size: 0.78rem;
  font-weight: 550;
  color: rgba(168, 206, 255, 0.75);
}
html[lang="ar"] .study-uni-tags,
html[dir="rtl"] .study-uni-tags,
html[lang="ar"] .study-uni-ask,
html[dir="rtl"] .study-uni-ask {
  align-self: flex-start;
}
html[lang="ar"] .study-uni-stats,
html[dir="rtl"] .study-uni-stats {
  direction: rtl;
  text-align: center;
}
.study-uni-why-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}
.study-uni-side-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.05rem;
  border-radius: 11px;
  background: #1a6dff;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 780;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(26, 109, 255, 0.34);
}
.study-uni-side-cta:hover {
  background: #0f5ae6;
}
.study-uni-side-link {
  font-size: 0.82rem;
  font-weight: 680;
  color: rgba(206, 227, 255, 0.92);
  text-decoration: none;
  border-bottom: 1px solid rgba(142, 197, 255, 0.28);
}
.study-uni-side-link:hover {
  color: #fff;
  border-bottom-color: #fff;
}
@media (max-width: 900px) {
  .study-uni-why-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .study-uni-why-grid {
    grid-template-columns: 1fr;
  }
}

/* Phone Study: stack hero CTAs; no clipped side chrome next to Noor sheet */
@media (max-width: 430px) {
  .study-uni-why-actions,
  html[lang="ar"] .study-uni-why-actions,
  html[dir="rtl"] .study-uni-why-actions,
  html[lang="ar"] body.page-study-portal .study-travel-ads-grid > .study-uni-partners .study-uni-why-actions,
  html[dir="rtl"] body.page-study-portal .study-travel-ads-grid > .study-uni-partners .study-uni-why-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
  }

  .study-uni-side-cta,
  .study-uni-side-link {
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
    text-align: center;
  }

  .study-uni-side-link {
    display: inline-flex;
    align-items: center;
    padding: 0.65rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 11px;
    border-bottom-width: 1px;
  }

  .study-uni-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 22rem;
  }

  .study-uni-actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .study-ad-cta-bar {
    flex-direction: column;
    gap: 0.45rem;
    left: 0.65rem;
    right: 0.65rem;
    bottom: 3.35rem;
  }

  .study-ad-cta-bar a {
    flex: none;
    width: 100%;
    box-sizing: border-box;
    white-space: normal;
    line-height: 1.25;
  }

  .study-ad-glass-stack {
    width: min(46%, 148px);
    inset-inline-end: 0.55rem;
    top: 3.6rem;
    max-height: calc(100% - 10.5rem);
  }

  .study-ad-slide-top {
    inset-inline-end: calc(46% + 0.85rem);
  }

  .study-ad-badge {
    max-width: calc(100% - 1.3rem);
  }

  body.page-study-portal .study-portal-top,
  body.page-study-portal .study-portal-main,
  body.page-study-portal .study-portal-shell {
    overflow-x: clip;
    max-width: 100%;
  }
}
.study-uni-foot {
  margin-top: 1.45rem;
  display: grid;
  gap: 0.95rem;
  justify-items: center;
}
.study-uni-note {
  position: relative;
  max-width: 38rem;
  margin: 0;
  text-align: center;
  font-size: 0.76rem;
  line-height: 1.5;
  color: rgba(244, 247, 251, 0.46);
}
.study-uni-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
}
.study-uni-partners .btn-ghost {
  color: #f4f7fb;
  border-color: rgba(255, 255, 255, 0.22);
}
.study-uni-partners .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
}
@keyframes study-uni-marquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(calc(-1 * var(--uni-marquee-distance, 50%)), 0, 0);
  }
}
@keyframes study-uni-marquee-rtl {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(var(--uni-marquee-distance, 50%), 0, 0);
  }
}
@media (max-width: 980px) {
  .study-uni-top {
    grid-template-columns: 1fr;
  }
  .study-uni-head {
    text-align: center;
    max-width: none;
  }
  .study-uni-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .study-uni-partners {
    padding: 2.4rem 0 2.6rem;
  }
  .study-uni-stats {
    grid-template-columns: 1fr 1fr;
  }
  .study-uni-card {
    width: var(--uni-card-w, 252px);
  }
  .study-uni-crest {
    height: 104px;
    padding: 0;
  }
  .study-uni-fade {
    width: 10px;
  }
  .study-uni-rail {
    padding: 0.75rem;
  }
  .study-uni-meta {
    min-height: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  /* Rail still steps card by card (JS jumps instead of sliding) — never a frozen 367-card wall */
  .study-uni-track {
    animation: none;
    transition: none;
  }
}

/* —— Study major search (Ctrip dock on hero) —— */
.study-ad-hero-ctrip {
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
  min-height: min(78vh, 720px);
}
.study-ad-hero-ctrip .study-ad-hero-copy {
  flex: 1 1 auto;
  padding-bottom: 1.25rem;
}
.study-ctrip-dock {
  position: relative;
  z-index: 4;
  margin-top: auto;
  padding: 0 0 1.5rem;
  transform: translateY(28%);
}
.study-school-wrap {
  max-width: 1120px;
}
.study-ctrip-card {
  margin: 0 auto;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(11, 31, 58, 0.08);
  box-shadow:
    0 22px 56px rgba(8, 28, 58, 0.22),
    0 2px 0 rgba(255, 255, 255, 0.95) inset;
  overflow: hidden;
}
.study-ctrip-card-dock {
  border-top: 3px solid #1a6dff;
}
.study-ctrip-tabs {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 1rem 0.55rem;
  background: linear-gradient(180deg, #f5f9ff 0%, #fff 100%);
  border-bottom: 1px solid rgba(11, 31, 58, 0.06);
}
.study-ctrip-tabs .is-on {
  font-size: 0.95rem;
  font-weight: 780;
  color: #1a6dff;
  border-bottom: 2px solid #1a6dff;
  padding-bottom: 0.25rem;
}
.study-ctrip-tab-hint {
  font-size: 0.75rem;
  color: rgba(11, 31, 58, 0.48);
  font-weight: 550;
}
.study-ctrip-bar {
  display: grid;
  grid-template-columns: 1.35fr 0.95fr 0.85fr 0.85fr 0.95fr auto;
  align-items: stretch;
  gap: 0;
}
.study-ctrip-cell {
  display: grid;
  gap: 0.22rem;
  padding: 0.75rem 0.95rem;
  min-width: 0;
  border-inline-end: 1px solid rgba(11, 31, 58, 0.08);
}
.study-ctrip-cell > span {
  font-size: 0.68rem;
  font-weight: 650;
  color: rgba(11, 31, 58, 0.48);
  letter-spacing: 0.02em;
}
.study-ctrip-cell input,
.study-ctrip-cell select,
.study-ctrip-mini select,
.study-ctrip-mini input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 1.02rem;
  font-weight: 720;
  color: #0b1f3a;
  padding: 0;
}
.study-ctrip-cell input::placeholder,
.study-ctrip-mini input::placeholder {
  color: rgba(11, 31, 58, 0.32);
  font-weight: 550;
}
.study-ctrip-cell-lg {
  padding-inline-start: 1.1rem;
}
.study-ctrip-more {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: end;
  padding: 0.55rem 0.95rem 0.85rem;
  background: #f7faff;
  border-top: 1px solid rgba(11, 31, 58, 0.06);
}
.study-ctrip-mini {
  display: grid;
  gap: 0.18rem;
  min-width: 128px;
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(11, 31, 58, 0.1);
  background: #fff;
}
.study-ctrip-mini > span {
  font-size: 0.66rem;
  font-weight: 650;
  color: rgba(11, 31, 58, 0.48);
}
.study-ctrip-mini select,
.study-ctrip-mini input {
  font-size: 0.88rem;
  font-weight: 650;
}
.study-ctrip-grow {
  flex: 1 1 160px;
}
.study-ctrip-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  min-width: 118px;
  margin: 0.55rem 0.65rem 0.55rem 0;
  padding: 0 1.15rem;
  border: 0;
  border-radius: 8px;
  background: #1a6dff;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 780;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(26, 109, 255, 0.32);
  transition: transform 0.15s ease, background 0.15s ease;
}
.study-ctrip-submit:hover {
  background: #0f5ae6;
  transform: translateY(-1px);
}
.study-search-howto-inline {
  margin: 2.4rem 0 0;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(11, 31, 58, 0.62);
}
body.page-study .study-ad-hero-ctrip + .study-ad-strip {
  padding-top: 4.5rem;
}
.study-search-howto {
  margin: 0 auto 1.15rem;
  max-width: 980px;
  padding: 1rem 1.15rem 1.05rem;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(232, 241, 255, 0.88));
  border: 1px solid rgba(26, 109, 255, 0.14);
  box-shadow: 0 10px 28px rgba(15, 45, 90, 0.06);
}
.study-search-howto h3 {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  font-weight: 780;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1a6dff;
}
.study-search-howto-list {
  margin: 0;
  padding-inline-start: 1.15rem;
  display: grid;
  gap: 0.35rem;
  font-size: 0.86rem;
  line-height: 1.45;
  color: rgba(11, 31, 58, 0.72);
}
.study-school-meta {
  margin: 0.95rem 0 0;
  text-align: center;
  font-size: 0.84rem;
  font-weight: 600;
  color: rgba(11, 31, 58, 0.58);
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(26, 109, 255, 0.12);
}
.study-school-results {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}
.study-school-card {
  display: grid;
  gap: 0.6rem;
  padding: 1.1rem 1.15rem;
  border-radius: 16px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  border: 1px solid rgba(11, 31, 58, 0.08);
  box-shadow: 0 12px 28px rgba(15, 45, 90, 0.07);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.study-school-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(15, 45, 90, 0.1);
}
.study-school-card-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  align-items: baseline;
  justify-content: space-between;
}
.study-school-card-top strong {
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0b1f3a;
}
.study-school-major {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 650;
  color: rgba(11, 31, 58, 0.78);
  line-height: 1.4;
}
.study-school-project {
  font-size: 0.78rem;
  font-weight: 700;
  color: #1a6dff;
  background: rgba(26, 109, 255, 0.1);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}
.study-school-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.study-school-chip {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(11, 31, 58, 0.72);
  background: #f3f7fc;
  border: 1px solid rgba(11, 31, 58, 0.06);
  border-radius: 8px;
  padding: 0.35rem 0.55rem;
}
.study-school-chip-accent {
  color: #0b4db8;
  background: rgba(26, 109, 255, 0.1);
  border-color: rgba(26, 109, 255, 0.18);
}
.study-school-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.45rem;
  font-size: 0.8rem;
  color: rgba(11, 31, 58, 0.7);
}
.study-school-grid b {
  display: block;
  font-size: 0.68rem;
  font-weight: 650;
  color: rgba(11, 31, 58, 0.45);
  margin-bottom: 0.1rem;
}
.study-school-notes {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(11, 31, 58, 0.58);
}
.study-school-card .btn {
  justify-self: start;
}
@media (max-width: 980px) {
  .study-ctrip-bar {
    grid-template-columns: 1fr 1fr;
  }
  .study-ctrip-cell {
    border-inline-end: 0;
    border-bottom: 1px solid rgba(11, 31, 58, 0.08);
  }
  .study-ctrip-submit {
    grid-column: 1 / -1;
    margin: 0.65rem;
    min-height: 48px;
  }
  .study-ctrip-dock {
    transform: translateY(12%);
  }
}
@media (max-width: 560px) {
  .study-ctrip-bar {
    grid-template-columns: 1fr;
  }
  .study-search-howto-inline {
    margin-top: 1.6rem;
  }
  body.page-study .study-ad-hero-ctrip + .study-ad-strip {
    padding-top: 2.5rem;
  }
  .study-ctrip-dates {
    grid-template-columns: 1fr;
  }
  .study-ctrip-nights {
    justify-self: center;
  }
  .study-ctrip-submit {
    width: 100%;
  }
}

/* —— OBIC study portal (Ctrip.com-like) —— */
body.page-study-portal {
  background: #f5f7fb;
}
body.page-study-portal .study-portal-nav {
  background: #fff;
  border-bottom: 1px solid rgba(11, 31, 58, 0.08);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}
.study-portal {
  padding: 0.85rem 0 1.5rem;
}
.study-portal-shell {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 0.65rem;
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0 clamp(0.5rem, 0.9vw, 0.85rem);
}
.study-portal-rail {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.55rem 0.35rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(11, 31, 58, 0.07);
  box-shadow: 0 8px 24px rgba(15, 45, 90, 0.05);
  align-self: start;
  position: sticky;
  top: 4.5rem;
}
.study-rail-item {
  display: grid;
  justify-items: center;
  gap: 0.2rem;
  padding: 0.55rem 0.2rem;
  border-radius: 10px;
  text-decoration: none;
  color: rgba(11, 31, 58, 0.72);
  font-size: 0.68rem;
  font-weight: 650;
  text-align: center;
  line-height: 1.15;
  transition: background 0.15s ease, color 0.15s ease;
}
.study-rail-item:hover {
  background: #f3f7ff;
  color: #1a6dff;
}
.study-rail-item.is-on {
  background: linear-gradient(180deg, #eaf2ff, #f7faff);
  color: #1a6dff;
}
.study-rail-ico {
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #f0f5ff;
  color: #1a6dff;
  font-size: 0.85rem;
  font-weight: 780;
}
.study-rail-item.is-on .study-rail-ico {
  background: #1a6dff;
  color: #fff;
}
.study-portal-main {
  min-width: 0;
  display: grid;
  gap: 0.85rem;
}
.study-portal-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr);
  gap: 0.85rem;
  align-items: stretch;
  min-height: 680px;
}
.study-portal-search-col {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(120% 80% at 100% -10%, rgba(90, 162, 255, 0.28), transparent 55%),
    radial-gradient(90% 70% at -10% 110%, rgba(26, 109, 255, 0.22), transparent 50%),
    linear-gradient(165deg, #0b1f3a 0%, #122a4a 48%, #0b4fd6 145%);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 22px 48px rgba(8, 24, 48, 0.38),
    0 8px 18px rgba(26, 109, 255, 0.18);
  padding: 0.75rem 0.85rem 0.85rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: inherit;
  color: #fff;
  /* visible so major/province autocomplete lists are not clipped */
  overflow: visible;
}
.study-portal-search-col::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 42%);
  pointer-events: none;
  z-index: 0;
}
.study-portal-search-col > * {
  position: relative;
  z-index: 1;
}
.study-portal-search-col .study-school-meta {
  margin-top: auto;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
}
.study-ac-wrap {
  position: relative;
  z-index: 3;
}
.study-ac-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  max-height: 220px;
  overflow: auto;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(11, 31, 58, 0.12);
  box-shadow: 0 16px 36px rgba(15, 45, 90, 0.16);
  z-index: 20;
}
.study-ac-list[hidden] {
  display: none !important;
}
.study-ac-list li {
  margin: 0;
}
.study-ac-list button {
  width: 100%;
  appearance: none;
  border: 0;
  background: transparent;
  text-align: start;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 650;
  color: #0b1f3a;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  cursor: pointer;
}
.study-ac-list button:hover,
.study-ac-list button.is-active {
  background: #eef5ff;
  color: #1a6dff;
}
.study-ac-list .study-ac-meta {
  display: block;
  font-size: 0.7rem;
  font-weight: 550;
  color: rgba(11, 31, 58, 0.48);
  margin-top: 0.1rem;
}
.study-portal-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.study-portal-tabs .is-on {
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  border-bottom: 3px solid #5aa2ff;
  padding: 0.15rem 0.1rem 0.4rem;
  cursor: default;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}
.study-portal-tab-link {
  appearance: none;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  color: rgba(226, 238, 255, 0.78);
  text-decoration: none;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.study-portal-tab-link:hover {
  color: #fff;
  background: rgba(26, 109, 255, 0.45);
  transform: translateY(-1px);
}
.study-portal-tabs .study-portal-tab-cta {
  font-weight: 750;
  font-size: clamp(0.8rem, 2.2vw, 0.9rem);
  color: #fff;
  text-decoration: none;
  padding: 0.42rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: linear-gradient(145deg, #2b7cff 0%, #1a6dff 42%, #0b4ab8 100%);
  box-shadow:
    0 6px 20px rgba(26, 109, 255, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    color 0.15s ease;
  white-space: nowrap;
}
.study-portal-tabs .study-portal-tab-cta:hover {
  color: #fff;
  background: linear-gradient(145deg, #4d96ff 0%, #2b7cff 48%, #1a6dff 100%);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 26px rgba(26, 109, 255, 0.58);
}
.study-portal-tabs .study-portal-tab-cta:focus-visible {
  outline: 2px solid #5aa2ff;
  outline-offset: 2px;
}

/* Study portal · Referral / bring students tab */
.study-partners-panel {
  --sp-navy: #0b1f3a;
  --sp-blue: #1a6dff;
  --sp-line: rgba(11, 31, 58, 0.12);
  --sp-muted: rgba(11, 31, 58, 0.62);
  margin-top: 0.2rem;
  padding: 0;
  border-radius: 18px;
  background: #fff;
  color: var(--sp-navy);
  box-shadow: 0 14px 36px rgba(0, 12, 40, 0.22);
  overflow: hidden;
  max-width: 100%;
}
.study-partners-panel[hidden] {
  display: none !important;
}
.study-partners-hero {
  padding: 1.15rem 1.15rem 0.95rem;
  background:
    linear-gradient(145deg, rgba(26, 109, 255, 0.1) 0%, rgba(11, 31, 58, 0.04) 48%, #fff 100%);
  border-bottom: 1px solid var(--sp-line);
}
.study-partners-brand {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sp-blue);
}
.study-partners-kicker {
  margin: 0 0 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--sp-muted);
}
.study-partners-panel h2,
.study-partners-hero h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 850;
  line-height: 1.2;
  color: var(--sp-navy);
  letter-spacing: -0.02em;
}
.study-partners-sub {
  margin: 0;
  max-width: 40rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(11, 31, 58, 0.78);
}
.study-partners-flow {
  list-style: none;
  margin: 0;
  padding: 0.75rem 1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  background: #f5f8fc;
  border-bottom: 1px solid var(--sp-line);
}
.study-partners-flow li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  padding: 0.45rem 0.5rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--sp-line);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.25;
  color: var(--sp-navy);
}
.study-partners-flow li > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.study-partner-type-slide {
  padding: 0.85rem 1rem 0.95rem;
  background: #fff;
  border-bottom: 1px solid var(--sp-line);
}
.study-partner-type-lead {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--sp-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.study-partner-type-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.45rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.2rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.study-partner-type-tab {
  flex: 0 0 auto;
  scroll-snap-align: start;
  appearance: none;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.3;
  max-width: 12rem;
  text-align: start;
  padding: 0.48rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--sp-line);
  background: #f5f8fc;
  color: var(--sp-navy);
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.study-partner-type-tab.is-on {
  background: linear-gradient(145deg, rgba(26, 109, 255, 0.16), rgba(11, 31, 58, 0.05));
  border-color: rgba(26, 109, 255, 0.5);
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(26, 109, 255, 0.18);
}
.study-partner-type-tab:hover:not(.is-on) {
  border-color: rgba(26, 109, 255, 0.35);
  transform: translateY(-1px);
}
.study-partner-type-blurb {
  margin: 0.6rem 0 0;
  font-size: 0.86rem;
  line-height: 1.48;
  color: rgba(11, 31, 58, 0.74);
}
.study-partner-form-title {
  margin: 0 0 0.85rem;
  padding: 0 0.1rem;
  font-size: 1.06rem;
  font-weight: 850;
  color: var(--sp-navy);
  letter-spacing: -0.01em;
}
.study-partners-form .partner-type-field[hidden] {
  display: none !important;
}
.study-partners-flow-n {
  flex: none;
  width: 1.45rem;
  height: 1.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--sp-navy);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}
.study-partners-gate {
  margin: 0.9rem 1.05rem 0;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: rgba(26, 109, 255, 0.08);
  border: 1px solid rgba(26, 109, 255, 0.22);
}
.study-partners-gate[hidden] {
  display: none !important;
}
.study-partners-gate strong {
  display: block;
  font-size: 0.88rem;
  color: var(--sp-navy);
}
.study-partners-gate p {
  margin: 0.3rem 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--sp-muted);
}
.study-partners-gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.75rem;
  align-items: stretch;
}
.study-partners-gate-actions .btn {
  min-height: 2.75rem;
  font-weight: 750;
  text-decoration: none;
}
.study-partners-form.lead-form.is-gated {
  opacity: 0.55;
  pointer-events: none;
  user-select: none;
}
.study-partners-form.lead-form.is-gated .study-partners-grid input,
.study-partners-form.lead-form.is-gated .study-partners-grid select,
.study-partners-form.lead-form.is-gated .study-partners-grid textarea {
  background: #f1f5f9;
}
.study-partners-form.lead-form {
  /* Do not inherit the global 2-col .lead-form grid — it stretched
     .study-partners-accept to match the tall fields column (~900px). */
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0.55rem;
  margin: 0;
  padding: 1rem 1.1rem 1.15rem;
  background: transparent;
  box-shadow: none;
  border: 0;
  grid-template-columns: none !important;
}
@media (min-width: 640px) {
  .study-partners-form.lead-form {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
  }
}
.study-partners-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem 0.9rem;
}
.study-partners-grid .field-span {
  grid-column: 1 / -1;
}
.study-partners-grid .field {
  margin: 0;
  min-width: 0;
}
.study-partners-grid label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.45rem;
  margin-bottom: 0.4rem;
  color: var(--sp-navy);
  font-size: 0.84rem;
  font-weight: 750;
}
.study-partners-grid .req,
.study-partners-grid .lead-doc-tag {
  font-size: 0.7rem;
  font-weight: 700;
}
.study-partners-grid input,
.study-partners-grid select,
.study-partners-grid textarea {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-height: 3.15rem;
  border: 1px solid rgba(11, 31, 58, 0.16);
  border-radius: 12px;
  background: #fff;
  color: var(--sp-navy);
  font: inherit;
  font-size: 1.02rem;
  line-height: 1.35;
  padding: 0.78rem 0.9rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.study-partners-grid input:focus,
.study-partners-grid select:focus,
.study-partners-grid textarea:focus {
  outline: none;
  border-color: rgba(26, 109, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(26, 109, 255, 0.16);
}
.study-partners-grid textarea {
  min-height: 5.5rem;
  resize: vertical;
}
/* Full-width phone row: wide CC (name + dial) + number — never truncate to one letter */
.study-partners-phone-field {
  min-width: 0;
}
.study-partners-phone {
  display: grid !important;
  grid-template-columns: minmax(15rem, 18rem) minmax(0, 1fr) !important;
  gap: 0.6rem;
  align-items: stretch;
  min-width: 0;
  width: 100%;
}
.study-partners-phone select#partner-phone-cc,
.study-partners-phone select {
  width: 100% !important;
  min-width: 15rem !important;
  max-width: none !important;
  flex: none !important;
  min-height: 3.35rem !important;
  font-size: 1.05rem !important;
  font-weight: 650;
  padding: 0.8rem 0.9rem !important;
  text-overflow: ellipsis;
  overflow: hidden;
}
.study-partners-phone input#partner-phone-national,
.study-partners-phone input {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 3.35rem !important;
  font-size: 1.08rem !important;
  padding: 0.8rem 0.95rem !important;
}
.study-partners-phone-hint {
  margin: 0.4rem 0 0;
  font-size: 0.76rem;
  line-height: 1.4;
  color: var(--sp-muted);
}
.study-partners-form .study-partners-accept,
label.study-partners-accept {
  display: flex !important;
  align-items: flex-start !important;
  align-self: flex-start !important;
  flex: 0 0 auto !important;
  flex-grow: 0 !important;
  gap: 0.4rem;
  width: 100%;
  max-width: 100%;
  height: auto !important;
  min-height: 0 !important;
  max-height: 4.5rem !important;
  margin: 0.35rem 0 0.25rem !important;
  padding: 0.35rem 0.5rem !important;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid var(--sp-line);
  font-size: 0.7rem !important;
  line-height: 1.3 !important;
  font-weight: 500;
  color: rgba(11, 31, 58, 0.72);
  cursor: pointer;
  box-sizing: border-box;
  grid-column: 1 / -1 !important;
  grid-row: auto !important;
}
.study-partners-accept > span {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
}
.study-partners-accept input[type="checkbox"] {
  width: 1.15rem !important;
  height: 1.15rem !important;
  min-height: 0 !important;
  margin: 0.08rem 0 0 !important;
  padding: 0 !important;
  flex: none !important;
  align-self: flex-start !important;
  accent-color: var(--sp-blue);
}
.study-partners-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: stretch;
  margin-top: 0.55rem;
}
.study-partners-submit,
.study-partners-secondary {
  min-height: 2.85rem;
  padding-inline: 1.15rem;
  font-weight: 750;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.study-partners-submit {
  flex: 1 1 12rem;
}
.study-partners-secondary {
  flex: 0 1 auto;
}
.study-partners-ok {
  margin: 0.45rem 0;
  padding: 0.65rem 0.8rem;
  border-radius: 11px;
  background: #ecfdf5;
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #065f46;
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.4;
}
.study-partners-panel .lead-form-error {
  margin: 0.45rem 0;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
}
.study-partners-note {
  margin: 0.75rem 0 0;
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--sp-muted);
}
html[dir="rtl"] .study-partners-flow li,
html[lang="ar"] .study-partners-flow li {
  text-align: start;
}
html[dir="rtl"] .study-partners-phone select,
html[lang="ar"] .study-partners-phone select {
  text-align: start;
}

@media (max-width: 900px) {
  .study-partners-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .study-partners-hero {
    padding: 1rem 0.9rem 0.85rem;
  }
  .study-partners-form.lead-form {
    padding: 0.9rem 0.9rem 1rem;
  }
  .study-partners-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .study-partners-flow {
    grid-template-columns: 1fr 1fr;
    padding: 0.65rem 0.75rem;
    gap: 0.4rem;
  }
  .study-partners-flow li {
    font-size: 0.74rem;
    padding: 0.5rem 0.45rem;
  }
  .study-partners-phone {
    grid-template-columns: 1fr !important;
  }
  .study-partners-phone select {
    min-width: 0;
    width: 100%;
    max-width: none;
  }
  .study-partners-actions {
    flex-direction: column;
  }
  .study-partners-submit,
  .study-partners-secondary {
    width: 100%;
  }
  .study-partners-gate {
    margin: 0.75rem 0.85rem 0;
  }
}
@media (max-width: 380px) {
  .study-partners-flow {
    grid-template-columns: 1fr;
  }
  .study-partners-panel h2,
  .study-partners-hero h2 {
    font-size: 1.2rem;
  }
}

.study-faq-body {
  display: grid;
  gap: 0.55rem;
}
.study-faq-item {
  border: 1px solid rgba(11, 31, 58, 0.12);
  border-radius: 12px;
  background: #f8fafc;
  padding: 0.15rem 0.85rem 0.75rem;
}
.study-faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 750;
  color: #0b1f3a;
  padding: 0.7rem 0 0.35rem;
  line-height: 1.4;
}
.study-faq-item summary::-webkit-details-marker {
  display: none;
}
.study-faq-item summary::after {
  content: "+";
  float: inline-end;
  font-weight: 700;
  color: #1a6dff;
  margin-inline-start: 0.5rem;
}
.study-faq-item[open] summary::after {
  content: "–";
}
.study-faq-item p {
  margin: 0;
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.55;
  padding-bottom: 0.25rem;
}
.study-faq-foot {
  justify-content: flex-end;
  gap: 0.65rem;
}
html[dir="rtl"] .study-faq-item summary::after {
  float: left;
}
.study-ctrip-panel {
  display: grid;
  gap: 0.45rem;
  padding: 0.55rem 0.6rem 0.6rem;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 14px 28px rgba(0, 0, 0, 0.18);
  flex: 1 1 auto;
  align-content: start;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.study-ctrip-row {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.25fr) minmax(0, 0.95fr) minmax(0, 0.95fr);
  gap: 0.55rem;
}
.study-ctrip-row-2 {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.1fr) minmax(0, 1.05fr) auto;
  align-items: stretch;
}
.study-ctrip-box {
  display: grid;
  gap: 0.22rem;
  min-width: 0;
  padding: 0.65rem 0.8rem 0.72rem;
  border-radius: 12px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f3f7ff 100%);
  border: 1px solid rgba(11, 31, 58, 0.08);
  min-height: 3.85rem;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 10px 18px rgba(8, 24, 48, 0.16),
    0 2px 4px rgba(8, 24, 48, 0.08);
  transform: translateZ(0);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.study-ctrip-box:focus-within {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 16px 28px rgba(26, 109, 255, 0.22),
    0 0 0 2px rgba(90, 162, 255, 0.45);
}
.study-ctrip-box > span {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(11, 31, 58, 0.5);
}
.study-ctrip-box input,
.study-ctrip-box select {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 740;
  color: #0b1f3a;
  padding: 0;
  min-height: 1.4rem;
  line-height: 1.35;
}
.study-ctrip-box input::placeholder {
  color: rgba(11, 31, 58, 0.42);
  font-weight: 600;
  opacity: 1;
}
.study-ctrip-box select.is-placeholder {
  color: rgba(11, 31, 58, 0.42);
  font-weight: 600;
}
.study-ctrip-box select:not(.is-placeholder) {
  color: #0b1f3a;
  font-weight: 740;
}
@media (min-width: 981px) {
  .study-ctrip-box input,
  .study-ctrip-box select {
    font-size: 0.96rem;
  }
  .study-ctrip-box-lg {
    min-width: 0;
  }
  .study-ctrip-box input:placeholder-shown,
  .study-ctrip-box select.is-placeholder {
    letter-spacing: -0.01em;
  }
}
.study-ctrip-go {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 92px;
  padding: 0.85rem 1.15rem;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, #1e5fd4 0%, #0b3f9e 55%, #083078 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 10px 22px rgba(8, 40, 120, 0.28);
  transition: background 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.study-ctrip-go:hover {
  filter: brightness(1.06);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.28) inset,
    0 14px 28px rgba(8, 40, 120, 0.34);
}
.study-ctrip-go:active {
  filter: brightness(0.96);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.16) inset,
    0 6px 14px rgba(8, 40, 120, 0.28);
}
.study-ctrip-go-ico {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  display: block;
}
.study-portal-tip {
  margin: 0.7rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(226, 238, 255, 0.78);
}
body.page-study-portal .study-school-meta {
  text-align: start;
  margin-top: 0.55rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
}

/* Right ad carousel — tall Ctrip hotel-ad style */
.study-portal-side {
  min-width: 0;
  display: flex;
}
.study-ad-carousel {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 680px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.16) inset,
    0 24px 50px rgba(8, 24, 48, 0.34),
    0 10px 22px rgba(26, 109, 255, 0.16);
  background: #0b1f3a;
}
.study-ad-slides {
  position: relative;
  height: 100%;
  min-height: 680px;
}
.study-ad-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease;
}
.study-ad-slide.is-on {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}
.study-ad-slide[hidden] {
  display: block !important;
}
.study-ad-slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 6s ease;
}
.study-ad-slide.is-on .study-ad-slide-bg {
  transform: scale(1);
}
.study-ad-slide-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 24, 48, 0.45) 0%, rgba(8, 24, 48, 0.12) 38%, rgba(8, 24, 48, 0.55) 100%);
  pointer-events: none;
}
.study-ad-slide-top {
  position: absolute;
  z-index: 2;
  top: 0.85rem;
  inset-inline-start: 0.9rem;
  inset-inline-end: 7.5rem;
  display: grid;
  gap: 0.55rem;
}
.study-ad-dots {
  display: flex;
  gap: 0.28rem;
  align-items: center;
}
.study-ad-dots button {
  width: 0.42rem;
  height: 0.42rem;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}
.study-ad-dots button.is-on {
  width: 1.15rem;
  background: #fff;
}
.study-ad-slide-title {
  margin: 0;
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-weight: 820;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  line-height: 1.25;
}
.study-ad-glass-stack {
  position: absolute;
  z-index: 2;
  top: 4.2rem;
  inset-inline-end: 0.85rem;
  display: grid;
  gap: 0.5rem;
  width: min(48%, 180px);
  max-height: calc(100% - 9.5rem);
  overflow: hidden;
}
.study-ad-slide-title {
  max-width: 14ch;
}
.study-ad-glass {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 0.45rem;
  align-items: center;
  padding: 0.4rem 0.5rem;
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(11, 31, 58, 0.72), rgba(26, 109, 255, 0.48));
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.28) inset,
    0 12px 22px rgba(0, 0, 0, 0.28);
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.study-ad-glass:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 16px 28px rgba(26, 109, 255, 0.28);
}
.study-ad-glass img {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}
.study-ad-glass span {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}
.study-ad-glass strong {
  font-size: 0.74rem;
  font-weight: 780;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.study-ad-glass em {
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 780;
  color: #ffd76a;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}
.study-ad-badge {
  position: absolute;
  z-index: 2;
  left: 0.85rem;
  bottom: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem 0.45rem 0.45rem;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(11, 31, 58, 0.92), rgba(26, 109, 255, 0.78));
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 12px 24px rgba(0, 0, 0, 0.28);
}
.study-ad-badge img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #fff;
}
.study-ad-badge span {
  display: grid;
  line-height: 1.15;
}
.study-ad-badge b {
  font-size: 0.72rem;
  font-weight: 780;
}
.study-ad-badge small {
  font-size: 0.62rem;
  opacity: 0.85;
}

.study-portal-results {
  margin-top: 0;
}
.study-portal-promos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
.study-portal-promos:has(> :nth-child(2)) {
  grid-template-columns: 1.35fr 1fr;
}
.study-portal-promo {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: center;
  text-align: start;
  padding: 0.9rem 1.05rem;
  border-radius: 14px;
  border: 1px solid rgba(11, 31, 58, 0.08);
  background: linear-gradient(180deg, #ffffff, #f5f8ff);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 14px 28px rgba(15, 45, 90, 0.1);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.study-portal-promo:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 18px 34px rgba(26, 109, 255, 0.16);
}
.study-portal-promo img {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
}
.study-portal-promo strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 780;
  color: #0b1f3a;
  margin-bottom: 0.2rem;
}
.study-portal-promo p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: rgba(11, 31, 58, 0.62);
}
.study-portal-promo-blue {
  background: linear-gradient(125deg, #0b1f3a 0%, #1a6dff 52%, #5aa2ff 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  grid-template-columns: 1fr auto;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.28) inset,
    0 16px 32px rgba(26, 109, 255, 0.28);
}
.study-portal-promo-blue strong,
.study-portal-promo-blue p {
  color: #fff;
}
.study-portal-promo-blue p {
  opacity: 0.9;
}
.study-portal-promo-mark {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.18);
  font-size: 1.35rem;
  font-weight: 800;
}
.study-portal-rail {
  overflow: visible;
  z-index: 60;
}
.study-rail-item {
  position: relative;
}
.study-rail-flyout {
  position: absolute;
  top: 50%;
  inset-inline-start: calc(100% + 0.85rem);
  width: 308px;
  padding: 0.95rem 1rem 0.9rem;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
  border: 1px solid rgba(11, 31, 58, 0.08);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 18px 40px rgba(8, 24, 48, 0.2);
  color: #0b1f3a;
  text-align: start;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-50%) translateX(-8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 80;
}
html[dir="rtl"] .study-rail-flyout {
  transform: translateY(-50%) translateX(8px);
}
.study-rail-flyout::before {
  content: "";
  position: absolute;
  top: 50%;
  inset-inline-end: 100%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  background: #fff;
  border-inline-start: 1px solid rgba(11, 31, 58, 0.08);
  border-bottom: 1px solid rgba(11, 31, 58, 0.08);
  transform: rotate(45deg);
  transform-origin: center;
}
html[dir="rtl"] .study-rail-flyout::before {
  border: 0;
  border-inline-end: 1px solid rgba(11, 31, 58, 0.08);
  border-top: 1px solid rgba(11, 31, 58, 0.08);
}
.study-rail-item:hover .study-rail-flyout,
.study-rail-item:focus-visible .study-rail-flyout,
.study-rail-item:focus-within .study-rail-flyout {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0);
}
.study-rail-item:nth-last-child(-n + 2) .study-rail-flyout {
  top: auto;
  bottom: 0;
  transform: translateY(0) translateX(-8px);
}
html[dir="rtl"] .study-rail-item:nth-last-child(-n + 2) .study-rail-flyout {
  transform: translateY(0) translateX(8px);
}
.study-rail-item:nth-last-child(-n + 2):hover .study-rail-flyout,
.study-rail-item:nth-last-child(-n + 2):focus-visible .study-rail-flyout,
.study-rail-item:nth-last-child(-n + 2):focus-within .study-rail-flyout {
  transform: translateY(0) translateX(0);
}
.study-rail-item:nth-last-child(-n + 2) .study-rail-flyout::before {
  top: auto;
  bottom: 1.4rem;
  margin-top: 0;
}
.study-rail-flyout-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.66rem;
  font-weight: 780;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1a6dff;
}
.study-rail-flyout h3 {
  margin: 0 0 0.65rem;
  font-size: 0.98rem;
  font-weight: 820;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: #0b1f3a;
}
.study-rail-flyout ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.study-rail-flyout li {
  padding: 0.55rem 0.6rem;
  border-radius: 10px;
  background: rgba(26, 109, 255, 0.06);
  border: 1px solid rgba(26, 109, 255, 0.08);
}
.study-rail-flyout li strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 780;
  color: #0b1f3a;
  margin-bottom: 0.15rem;
}
.study-rail-flyout li span {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.45;
  color: rgba(11, 31, 58, 0.72);
}
.study-rail-flyout-cta {
  display: inline-flex;
  margin-top: 0.75rem;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #5aa2ff 0%, #1a6dff 60%, #0b4fd6 100%);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  box-shadow: 0 8px 16px rgba(26, 109, 255, 0.24);
}
@media (max-width: 980px) {
  .study-rail-flyout {
    display: none;
  }
}

@media (max-width: 980px) {
  .study-portal-shell {
    grid-template-columns: 1fr;
  }
  .study-portal-rail {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    gap: 0.35rem;
    padding: 0.45rem;
  }
  .study-rail-item {
    min-width: 4.5rem;
  }
  .study-portal-top {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .study-ad-carousel,
  .study-ad-slides {
    min-height: 480px;
  }
  .study-ctrip-row,
  .study-ctrip-row-2 {
    grid-template-columns: 1fr 1fr;
  }
  .study-ctrip-go {
    grid-column: 1 / -1;
    flex-direction: row;
    gap: 0.45rem;
    min-height: 52px;
    border-radius: 12px;
  }
  .study-portal-promos {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .study-ctrip-row,
  .study-ctrip-row-2 {
    grid-template-columns: 1fr;
  }
  .study-ad-glass-stack {
    width: min(52%, 150px);
  }
  .study-ad-slide-title {
    font-size: 1.1rem;
  }
}

/* —— Study portal chrome polish (header / footer) —— */
body.page-study-portal .study-portal-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  overflow: visible;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(11, 31, 58, 0.08);
  box-shadow: 0 8px 24px rgba(15, 45, 90, 0.04);
}
body.page-study-portal .study-portal-nav .nav-links a.is-active {
  color: #1a6dff;
  font-weight: 750;
}
body.page-study-portal .study-portal-footer {
  margin-top: 0;
  border-top: 1px solid rgba(11, 31, 58, 0.08);
}
body.page-study-portal .study-footer-langs,
body.page-study-portal .study-footer-desk {
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(11, 31, 58, 0.55);
}
body.page-study-portal .footer-grid {
  align-items: start;
}
@media (min-width: 981px) {
  body.page-study-portal .study-portal {
    padding-top: 0.65rem;
  }
  body.page-study-portal .study-portal-shell {
    max-width: none;
    width: 100%;
  }
}

/* Teach language toggle in search — OBIC navy panel */
.study-ctrip-teach {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  margin-bottom: 0;
  padding: 0.05rem 0.1rem 0.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.study-ctrip-teach-label {
  font-size: 0.64rem;
  font-weight: 720;
  color: rgba(226, 238, 255, 0.78);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.study-ctrip-teach-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.study-ctrip-teach-opts button {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
  color: rgba(244, 247, 251, 0.92);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 720;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.14);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.study-ctrip-teach-opts button:hover {
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}
.study-ctrip-teach-opts button.is-on {
  background: linear-gradient(180deg, #5aa2ff 0%, #1a6dff 55%, #0b4fd6 100%);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 10px 22px rgba(26, 109, 255, 0.4),
    0 3px 0 #083a9e;
}
.study-ctrip-box select:invalid,
.study-ctrip-box select option[value=""] {
  color: rgba(11, 31, 58, 0.42);
}
.study-ctrip-box select {
  color: #0b1f3a;
}
.study-ctrip-box input:placeholder-shown {
  color: rgba(11, 31, 58, 0.38);
  font-weight: 550;
}

/* Taller Ctrip ads on desktop */
@media (min-width: 981px) {
  .study-portal-top {
    min-height: 680px;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr);
  }
  .study-ad-carousel,
  .study-ad-slides {
    min-height: 680px;
  }
}
@media (max-width: 980px) {
  .study-portal-top {
    min-height: 0;
  }
  .study-ad-carousel,
  .study-ad-slides {
    min-height: 420px;
  }
  .study-ctrip-teach {
    flex-direction: column;
    align-items: stretch;
  }
  .study-ctrip-teach-opts button {
    flex: 1 1 auto;
    text-align: center;
  }
}

/* —— boss6: real Ctrip hotel-search bar —— */
.study-ctrip-bar {
  display: grid;
  grid-template-columns:
    minmax(0, 1.55fr)
    minmax(0, 1.05fr)
    minmax(0, 0.85fr)
    minmax(0, 0.85fr)
    minmax(0, 0.85fr)
    auto;
  align-items: stretch;
  gap: 0;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 18px 36px rgba(8, 24, 48, 0.22),
    0 4px 10px rgba(8, 24, 48, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.55);
}
.study-ctrip-cell {
  position: relative;
  display: grid;
  gap: 0.2rem;
  min-width: 0;
  padding: 0.75rem 0.85rem 0.8rem;
  background: #fff;
  min-height: 4.4rem;
}
.study-ctrip-cell + .study-ctrip-cell::before {
  content: "";
  position: absolute;
  inset-block: 18%;
  inset-inline-start: 0;
  width: 1px;
  background: rgba(11, 31, 58, 0.1);
}
.study-ctrip-cell > span {
  font-size: 0.68rem;
  font-weight: 720;
  letter-spacing: 0.02em;
  color: rgba(11, 31, 58, 0.48);
}
.study-ctrip-cell input,
.study-ctrip-cell select {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 1rem;
  font-weight: 780;
  color: #0b1f3a;
  padding: 0;
  min-height: 1.45rem;
  line-height: 1.3;
}
.study-ctrip-cell input::placeholder {
  color: rgba(11, 31, 58, 0.38);
  font-weight: 600;
  opacity: 1;
}
.study-ctrip-cell select.is-placeholder {
  color: rgba(11, 31, 58, 0.4);
  font-weight: 650;
}
.study-ctrip-cell:focus-within {
  background: linear-gradient(180deg, #f7faff, #fff);
  z-index: 2;
}
.study-ctrip-bar .study-ctrip-go {
  min-width: 104px;
  border-radius: 0;
  align-self: stretch;
  margin: 0;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 -3px 0 rgba(8, 40, 120, 0.25) inset;
}
.study-ctrip-hot {
  display: grid;
  gap: 0.28rem;
  margin-top: 0;
}
.study-ctrip-hot-label {
  font-size: 0.62rem;
  font-weight: 720;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(226, 238, 255, 0.72);
}
.study-ctrip-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
}
.study-ctrip-chips button {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(244, 247, 251, 0.92);
  font: inherit;
  font-size: 0.7rem;
  font-weight: 650;
  padding: 0.22rem 0.52rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.study-ctrip-chips button:hover {
  background: rgba(90, 162, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}
.study-ctrip-chips button.is-on {
  background: linear-gradient(180deg, #5aa2ff, #1a6dff);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  box-shadow: 0 8px 16px rgba(26, 109, 255, 0.35);
}
.study-ctrip-chips-prov button {
  background: rgba(8, 24, 48, 0.28);
}
.study-ctrip-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  margin-top: 0.05rem;
}
.study-ctrip-tool {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 220, 140, 0.14);
  color: #fff8e8;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.22rem 0.52rem;
  border-radius: 999px;
  cursor: pointer;
}
.study-ctrip-tool.is-on {
  background: linear-gradient(180deg, #ffd56a, #f0a202);
  color: #1a1200;
  border-color: rgba(255, 255, 255, 0.35);
}
.study-ctrip-tool-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(244, 247, 251, 0.88);
}
.study-school-state-count {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: #1a6dff;
}
.study-uni-browse {
  display: grid;
  gap: 0.85rem;
  width: 100%;
}
.study-uni-browse-tools {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(140px, 0.7fr);
  gap: 0.65rem;
}
.study-uni-browse-search input,
.study-uni-browse-prov select {
  width: 100%;
  border: 1px solid rgba(11, 31, 58, 0.12);
  border-radius: 12px;
  padding: 0.72rem 0.9rem;
  font: inherit;
  background: #fff;
  color: #0b1f3a;
}
.study-uni-browse-meta {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 650;
  color: rgba(11, 31, 58, 0.62);
}
.study-uni-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
  max-height: 34rem;
  overflow: auto;
  padding: 0.15rem;
}
.study-uni-catalog-card {
  display: grid;
  gap: 0.35rem;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #f7faff);
  border: 1px solid rgba(11, 31, 58, 0.08);
  box-shadow: 0 10px 22px rgba(15, 45, 90, 0.06);
}
.study-uni-catalog-card strong {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0b1f3a;
  line-height: 1.35;
}
.study-uni-catalog-prov,
.study-uni-catalog-n {
  font-size: 0.78rem;
  color: rgba(11, 31, 58, 0.62);
}
.study-uni-catalog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.study-uni-catalog-tags span {
  font-size: 0.7rem;
  font-weight: 700;
  color: #1a6dff;
  background: rgba(26, 109, 255, 0.1);
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
}
.study-uni-catalog-empty {
  margin: 0;
  padding: 1rem;
  color: rgba(11, 31, 58, 0.55);
}
@media (max-width: 720px) {
  .study-uni-browse-tools {
    grid-template-columns: 1fr;
  }
  .study-uni-catalog-grid {
    max-height: 28rem;
  }
}
.study-ctrip-trust {
  list-style: none;
  margin: 0.65rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
}
.study-ctrip-trust li {
  font-size: 0.74rem;
  font-weight: 700;
  color: #fff;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.14);
}
.study-ad-cta-bar {
  position: absolute;
  z-index: 3;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 3.6rem;
  display: flex;
  gap: 0.5rem;
}
.study-ad-cta-bar a {
  flex: 1;
  text-align: center;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(180deg, #5aa2ff 0%, #1a6dff 55%, #0b4fd6 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.3) inset,
    0 12px 22px rgba(0, 0, 0, 0.28);
}
.study-ad-cta-bar a.study-ad-cta-ghost {
  background: rgba(8, 24, 48, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
}
body.page-study-portal .brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}
@media (max-width: 1100px) {
  .study-ctrip-bar {
    grid-template-columns: 1fr 1fr;
  }
  .study-ctrip-cell + .study-ctrip-cell::before {
    display: none;
  }
  .study-ctrip-bar .study-ctrip-go {
    grid-column: 1 / -1;
    min-height: 52px;
    border-radius: 0 0 14px 14px;
  }
}
@media (max-width: 560px) {
  .study-ctrip-bar {
    grid-template-columns: 1fr;
  }
}


/* —— boss7: 2-row search — placeholders never cut off —— */
.study-portal-search-col .study-ctrip-bar {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) 112px !important;
  grid-template-areas:
    "major major major major go"
    "prov nation age intake go"
    "room program program program go" !important;
  align-items: stretch;
  gap: 0 !important;
  overflow: visible !important;
  border-radius: 16px;
  background: #fff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 18px 36px rgba(8, 24, 48, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.55);
}
.study-portal-search-col .study-ctrip-cell-major { grid-area: major; }
.study-portal-search-col .study-ctrip-cell-prov { grid-area: prov; }
.study-portal-search-col .study-ctrip-cell-nation { grid-area: nation; }
.study-portal-search-col .study-ctrip-cell-age { grid-area: age; }
.study-portal-search-col .study-ctrip-cell-intake { grid-area: intake; }
.study-portal-search-col .study-ctrip-cell-room { grid-area: room; }
.study-portal-search-col .study-ctrip-cell-program { grid-area: program; }

/* Birth-year age control: clear Ctrip-style box */
.study-portal-search-col .study-ctrip-cell-age select {
  font-weight: 750;
  color: #0b1f3a;
  min-height: 1.6rem;
}
.study-portal-search-col .study-ctrip-cell-age.is-age-warn {
  background: #fff7ed;
  box-shadow: inset 0 0 0 2px #f97316;
}
.study-age-elig-note {
  display: none;
  margin: 0.35rem 0 0;
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #9a3412;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.35;
}
.study-age-elig-note.is-on {
  display: block;
}

.study-inquiry-age-warn {
  display: none;
  margin: 0.45rem 0 0;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  color: #92400e;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
}

.study-inquiry-age-warn.is-on,
.study-inquiry-age-warn:not([hidden]) {
  display: block;
}

#study-form .field.is-age-soft-warn input#student-dob {
  border-color: #f59e0b;
  background: #fffbeb;
}
#study-form .study-age-computed:not([hidden]) {
  color: #0f766e;
  font-weight: 650;
}

/* Draft toolbar: Autofill button + cyan restore notice */
.study-draft-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.65rem 0.85rem;
  margin: 0 0 1rem;
}
.study-draft-autofill-btn {
  flex: 0 0 auto;
  margin: 0;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(14, 116, 144, 0.35);
  background: linear-gradient(165deg, #ecfeff 0%, #cffafe 55%, #e0f2fe 100%);
  color: #0c4a6e;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 750;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(14, 116, 144, 0.12);
}
.study-draft-autofill-btn:hover,
.study-draft-autofill-btn:focus-visible {
  border-color: rgba(14, 116, 144, 0.55);
  background: linear-gradient(165deg, #cffafe 0%, #a5f3fc 60%, #bae6fd 100%);
  outline: none;
}
html[dir="rtl"] .study-draft-autofill-btn {
  font-weight: 800;
}
.lead-card .study-draft-toolbar > .study-draft-note,
#study-draft-note.study-draft-note {
  flex: 1 1 16rem;
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(14, 116, 144, 0.28);
  border-inline-start: 4px solid #0e7490;
  background: linear-gradient(165deg, #ecfeff 0%, #f0f9ff 55%, #f8fafc 100%);
  color: #0c4a6e;
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.45;
  scroll-margin-top: calc(72px + 16px);
  box-shadow: 0 8px 22px rgba(14, 116, 144, 0.1);
}
.lead-card .study-draft-toolbar > .study-draft-note[hidden],
#study-draft-note.study-draft-note[hidden] {
  display: none !important;
}
html[dir="rtl"] .lead-card .study-draft-toolbar > .study-draft-note,
html[dir="rtl"] #study-draft-note.study-draft-note {
  font-weight: 700;
}
.study-ac-list.is-major-options {
  max-height: 280px;
  z-index: 40;
}
.study-portal-search-col .study-ctrip-bar > .study-ctrip-go {
  grid-area: go !important;
  min-width: 112px !important;
  width: 112px;
  border-radius: 0 16px 16px 0 !important;
  margin: 0 !important;
  align-self: stretch !important;
  min-height: 100% !important;
}
html[dir="rtl"] .study-portal-search-col .study-ctrip-bar > .study-ctrip-go {
  border-radius: 16px 0 0 16px !important;
}
.study-portal-search-col .study-ctrip-cell {
  min-width: 0;
  overflow: visible !important;
  padding: 0.85rem 1rem 0.9rem !important;
}
.study-portal-search-col .study-ctrip-cell-major {
  border-bottom: 1px solid rgba(11, 31, 58, 0.08);
  padding-inline: 1.15rem !important;
}
.study-portal-search-col .study-ctrip-cell input,
.study-portal-search-col .study-ctrip-cell select {
  width: 100% !important;
  max-width: none !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap;
  font-size: 1.05rem !important;
  font-weight: 780 !important;
  /* kill native search field quirks */
  -webkit-appearance: none;
  appearance: none;
}
.study-portal-search-col .study-ctrip-cell input::placeholder {
  opacity: 1 !important;
  color: rgba(11, 31, 58, 0.4) !important;
  font-weight: 650 !important;
  text-overflow: clip !important;
}
.study-portal-search-col .study-ctrip-cell select {
  background-image: linear-gradient(45deg, transparent 50%, #1a6dff 50%),
    linear-gradient(135deg, #1a6dff 50%, transparent 50%);
  background-position: calc(100% - 14px) calc(50% + 2px), calc(100% - 9px) calc(50% + 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-inline-end: 1.4rem !important;
}
html[dir="rtl"] .study-portal-search-col .study-ctrip-cell select {
  background-position: 14px calc(50% + 2px), 9px calc(50% + 2px);
}
@media (max-width: 720px) {
  .study-portal-search-col .study-ctrip-bar {
    grid-template-columns: 1fr 1fr !important;
    grid-template-areas:
      "major major"
      "prov intake"
      "room program"
      "go go" !important;
  }
  .study-portal-search-col .study-ctrip-bar > .study-ctrip-go {
    width: auto !important;
    min-width: 0 !important;
    min-height: 52px !important;
    border-radius: 0 0 16px 16px !important;
  }
}

/* boss7b: give search more width + province room */
@media (min-width: 981px) {
  .study-portal-top {
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.72fr) !important;
  }
  .study-portal-search-col .study-ctrip-bar {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.9fr) minmax(0, 0.9fr) minmax(0, 0.9fr) 118px !important;
  }
}

/* —— boss8: real search chrome + travel ads —— */
.study-portal-search-col .study-ctrip-bar {
  position: relative;
  border-radius: 18px !important;
  border: 1px solid rgba(11, 31, 58, 0.1) !important;
  background:
    linear-gradient(180deg, #ffffff 0%, #f7faff 100%) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 0 0 1px rgba(255, 255, 255, 0.35),
    0 22px 44px rgba(8, 24, 48, 0.2),
    0 6px 14px rgba(26, 109, 255, 0.1) !important;
  overflow: hidden !important;
}
.study-portal-search-col .study-ctrip-cell {
  background: transparent;
}
.study-portal-search-col .study-ctrip-cell > span {
  font-size: 0.72rem !important;
  font-weight: 760 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(11, 31, 58, 0.45) !important;
}
.study-ctrip-field-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}
.study-ctrip-search-ico {
  flex: 0 0 auto;
  color: #1a6dff;
  opacity: 0.9;
}
.study-ctrip-field-row input {
  flex: 1 1 auto;
  min-width: 0;
}
.study-ctrip-field-row input[type="search"]::-webkit-search-decoration,
.study-ctrip-field-row input[type="search"]::-webkit-search-cancel-button,
.study-ctrip-field-row input[type="search"]::-webkit-search-results-button {
  -webkit-appearance: none;
  appearance: none;
}
.study-portal-search-col .study-ctrip-cell + .study-ctrip-cell::before {
  background: rgba(11, 31, 58, 0.09);
}
.study-portal-search-col .study-ctrip-cell-prov,
.study-portal-search-col .study-ctrip-cell-intake,
.study-portal-search-col .study-ctrip-cell-room,
.study-portal-search-col .study-ctrip-cell-program {
  position: relative;
}
.study-portal-search-col .study-ctrip-cell-intake::before,
.study-portal-search-col .study-ctrip-cell-room::before,
.study-portal-search-col .study-ctrip-cell-program::before {
  content: "";
  position: absolute;
  inset-block: 18%;
  inset-inline-start: 0;
  width: 1px;
  background: rgba(11, 31, 58, 0.09);
}
.study-portal-search-col .study-ctrip-bar {
  column-gap: 0 !important;
  padding: 0 !important;
}
.study-portal-search-col .study-ctrip-bar > .study-ctrip-go {
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.4rem !important;
  width: auto !important;
  min-width: 108px !important;
  margin: 0.55rem 0.55rem 0.55rem 0.35rem !important;
  padding: 1rem 1.15rem !important;
  align-self: stretch !important;
  border-radius: 14px !important;
  background:
    linear-gradient(180deg, #2f78f0 0%, #1a5fd4 42%, #0d4bb8 100%) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.38) inset,
    0 -2px 0 rgba(8, 40, 120, 0.22) inset,
    0 10px 20px rgba(26, 109, 255, 0.38),
    0 2px 0 #0a3a8f !important;
  font-size: 1.02rem !important;
  font-weight: 820 !important;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #fff !important;
}
html[dir="rtl"] .study-portal-search-col .study-ctrip-bar > .study-ctrip-go {
  margin: 0.55rem 0.35rem 0.55rem 0.55rem !important;
  border-radius: 14px !important;
}
.study-portal-search-col .study-ctrip-bar > .study-ctrip-go .study-ctrip-go-ico {
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.15));
}
.study-portal-search-col .study-ctrip-bar > .study-ctrip-go:hover {
  background:
    linear-gradient(180deg, #3d85f8 0%, #2269e0 42%, #1356c4 100%) !important;
  transform: translateY(-1px);
  filter: none;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.42) inset,
    0 -2px 0 rgba(8, 40, 120, 0.22) inset,
    0 14px 26px rgba(26, 109, 255, 0.45),
    0 3px 0 #0a3a8f !important;
}
.study-portal-search-col .study-ctrip-bar > .study-ctrip-go:active {
  background:
    linear-gradient(180deg, #1a5fd4 0%, #0d4bb8 100%) !important;
  transform: translateY(1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 6px 12px rgba(26, 109, 255, 0.3),
    0 1px 0 #0a3a8f !important;
}
@media (min-width: 981px) {
  .study-portal-search-col .study-ctrip-bar {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.9fr) minmax(0, 0.9fr) minmax(0, 0.9fr) minmax(118px, 132px) !important;
  }
}
@media (max-width: 720px) {
  .study-portal-search-col .study-ctrip-bar > .study-ctrip-go {
    flex-direction: row !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 50px !important;
    margin: 0.45rem 0.55rem 0.55rem !important;
    border-radius: 12px !important;
    gap: 0.45rem !important;
  }
}

.study-ad-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}
.study-ad-slide-veil-hotel {
  background:
    linear-gradient(180deg, rgba(8, 28, 58, 0.15) 0%, rgba(8, 28, 58, 0.28) 35%, rgba(6, 20, 42, 0.78) 72%, rgba(4, 14, 30, 0.92) 100%),
    linear-gradient(90deg, rgba(10, 48, 110, 0.35), transparent 55%);
}
.study-ad-slide-veil-flight {
  background:
    linear-gradient(180deg, rgba(6, 22, 48, 0.2) 0%, rgba(8, 30, 62, 0.35) 40%, rgba(5, 18, 40, 0.82) 74%, rgba(3, 12, 28, 0.94) 100%),
    linear-gradient(115deg, rgba(26, 109, 255, 0.28), transparent 50%);
}
.study-ad-slide-travel .study-ad-slide-title {
  max-width: 92%;
  font-size: clamp(1.15rem, 2.1vw, 1.45rem);
  line-height: 1.25;
}
.study-ad-slide-travel .study-ad-glass em {
  color: #7eb6ff;
  font-style: normal;
  font-weight: 780;
}
.study-ad-slide-travel .study-ad-cta-bar a:first-child {
  background: linear-gradient(180deg, #ffb347 0%, #f08a1a 55%, #d9730b 100%);
  color: #1a1208;
  text-shadow: none;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.45) inset,
    0 12px 22px rgba(0, 0, 0, 0.28);
}

/* —— boss9b: Ctrip-style hotels + flights ads —— */
.study-travel-ads {
  margin: 0;
  padding: 0.5rem 0 1.5rem;
  background: linear-gradient(180deg, #071526 0%, #0a1c33 100%);
}
.study-travel-ads-wrap {
  max-width: none;
  width: 100%;
  margin-inline: 0;
  padding-inline: 0;
}
.study-travel-ads-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.study-travel-ad {
  position: relative;
  min-height: 340px;
  border-radius: 18px;
  overflow: hidden;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.14) inset,
    0 24px 48px rgba(0, 0, 0, 0.3);
}
.study-travel-ad-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.study-travel-ad-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 18, 38, 0.22) 0%, rgba(6, 18, 38, 0.42) 38%, rgba(4, 12, 28, 0.88) 100%);
}
.study-travel-ad-flight .study-travel-ad-veil {
  background:
    linear-gradient(180deg, rgba(8, 28, 62, 0.28) 0%, rgba(8, 28, 62, 0.48) 40%, rgba(4, 14, 34, 0.9) 100%);
}
.study-travel-ad-top {
  position: relative;
  z-index: 2;
  padding: 1.05rem 1.1rem 0.55rem;
}
.study-travel-ad-kicker {
  margin: 0 0 0.3rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffd59a;
}
.study-travel-ad-flight .study-travel-ad-kicker {
  color: #9ec5ff;
}
.study-travel-ad-title {
  margin: 0;
  max-width: 92%;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  line-height: 1.25;
  font-weight: 820;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}
html[dir="rtl"] .study-travel-ad-kicker {
  letter-spacing: 0;
  text-transform: none;
}
.study-travel-ad-offers {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 0.45rem;
  padding: 0.35rem 0.9rem 0.7rem;
}
.study-travel-offer {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 0.65rem;
  align-items: center;
  padding: 0.45rem 0.55rem;
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
  transition: background 0.15s ease, transform 0.15s ease;
}
.study-travel-offer:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}
.study-travel-offer img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
}
.study-travel-offer span {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}
.study-travel-offer strong {
  font-size: 0.88rem;
  font-weight: 780;
  line-height: 1.25;
}
.study-travel-offer em {
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 760;
  color: #ffe0a8;
}
.study-travel-ad-flight .study-travel-offer em {
  color: #9ec5ff;
}
.study-travel-ad-foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.35rem 0.9rem 0.95rem;
}
.study-travel-ad-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.65rem 1.05rem;
  border-radius: 12px;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 820;
  color: #1a1208;
  background: linear-gradient(180deg, #ffc15d 0%, #f08a1a 55%, #d9730b 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.4) inset,
    0 10px 18px rgba(0, 0, 0, 0.25);
}
.study-travel-ad-flight .study-travel-ad-cta {
  color: #fff;
  background: linear-gradient(180deg, #4f9aff 0%, #1a6dff 55%, #0b4fd6 100%);
}
.study-travel-ad-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.65rem 0.35rem 0.35rem;
  border-radius: 999px;
  background: rgba(8, 24, 48, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}
.study-travel-ad-badge img {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: #fff;
  object-fit: contain;
}
.study-travel-ad-badge span {
  display: grid;
  gap: 0.05rem;
  line-height: 1.15;
}
.study-travel-ad-badge b {
  font-size: 0.72rem;
  font-weight: 800;
}
.study-travel-ad-badge small {
  font-size: 0.62rem;
  color: rgba(236, 244, 255, 0.78);
}
@media (max-width: 900px) {
  .study-travel-ads-grid {
    grid-template-columns: 1fr;
  }
  .study-travel-ad {
    min-height: 320px;
  }
}
@media (max-width: 560px) {
  .study-travel-ad-foot {
    flex-direction: column;
    align-items: stretch;
  }
  .study-travel-ad-cta {
    width: 100%;
  }
  .study-travel-ad-badge {
    width: fit-content;
  }
}


/* —— study portal full-bleed width (Ctrip-like, kill side gutters) —— */
body.page-study-portal {
  --max: 100%;
  --study-bleed-pad: clamp(0.45rem, 0.8vw, 0.75rem);
}
body.page-study-portal .nav-inner {
  width: calc(100% - 2 * var(--study-bleed-pad));
  max-width: none;
  margin-inline: auto;
}
body.page-study-portal .study-portal-shell {
  width: 100% !important;
  max-width: none !important;
  margin-inline: 0 !important;
  padding-inline: var(--study-bleed-pad);
  box-sizing: border-box;
}
body.page-study-portal .study-uni-wrap,
body.page-study-portal .lead-layout,
body.page-study-portal #study-inquiry-gate.wrap,
body.page-study-portal main > section > .wrap,
body.page-study-portal .footer-grid,
body.page-study-portal .footer-bottom {
  width: calc(100% - 2 * var(--study-bleed-pad)) !important;
  max-width: none !important;
  margin-inline: auto;
}
/* Full-bleed navy band behind search + ads (Ctrip hero feel) — all widths */
body.page-study-portal .study-portal {
  background:
    linear-gradient(
      180deg,
      #0b1f3a 0%,
      #122a4a 62%,
      #f5f7fb 62%
    );
  padding-top: 0.45rem;
  padding-bottom: 1rem;
}
body.page-study-portal .study-portal-rail {
  background: rgba(255, 255, 255, 0.96);
}
body.page-study-portal .study-portal-search-col,
body.page-study-portal .study-ad-carousel {
  border-radius: 12px;
}
body.page-study-portal .study-travel-ads {
  margin-top: 0;
}
@media (min-width: 981px) {
  body.page-study-portal {
    --study-bleed-pad: 0.5rem;
  }
  body.page-study-portal .study-portal {
    padding-top: 0.55rem;
    padding-bottom: 1.1rem;
  }
  body.page-study-portal .study-portal-shell {
    padding-inline: 0.5rem;
  }
}
@media (max-width: 980px) {
  body.page-study-portal .study-portal-shell {
    padding: 0 var(--study-bleed-pad);
  }
  body.page-study-portal .study-portal {
    background:
      linear-gradient(
        180deg,
        #0b1f3a 0%,
        #122a4a 72%,
        #f5f7fb 72%
      );
  }
}


/* —— searchads2: clean Ctrip search bar + tall hotel/flight placements —— */
body.page-study-portal .study-portal-search-col .study-ctrip-bar {
  display: grid !important;
  grid-template-columns:
    minmax(0, 1.35fr)
    minmax(0, 0.95fr)
    minmax(0, 0.95fr)
    minmax(0, 0.8fr)
    minmax(0, 0.8fr)
    minmax(0, 0.9fr)
    minmax(108px, 124px) !important;
  grid-template-areas:
    "major major major major major major go"
    "prov nation age intake room program go" !important;
  align-items: stretch !important;
  gap: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  border-radius: 11px !important;
  border: 1px solid rgba(11, 31, 58, 0.1) !important;
  background: #fff !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 18px 40px rgba(8, 24, 48, 0.2) !important;
}
body.page-study-portal .study-portal-search-col .study-ctrip-cell-major { grid-area: major !important; }
body.page-study-portal .study-portal-search-col .study-ctrip-cell-prov { grid-area: prov !important; }
body.page-study-portal .study-portal-search-col .study-ctrip-cell-nation { grid-area: nation !important; }
body.page-study-portal .study-portal-search-col .study-ctrip-cell-intake { grid-area: intake !important; }
body.page-study-portal .study-portal-search-col .study-ctrip-cell-room { grid-area: room !important; }
body.page-study-portal .study-portal-search-col .study-ctrip-cell-program { grid-area: program !important; }
body.page-study-portal .study-portal-search-col .study-ctrip-cell-age { grid-area: age !important; }

body.page-study-portal .study-portal-search-col .study-ctrip-cell {
  position: relative;
  z-index: 1;
  display: grid !important;
  gap: 0.05rem !important;
  min-width: 0 !important;
  overflow: visible !important;
  padding: 0.26rem 0.5rem !important;
  background: transparent !important;
  border: 0 !important;
  border-inline-end: 1px solid rgba(11, 31, 58, 0.08) !important;
}
body.page-study-portal .study-portal-search-col .study-ctrip-cell-major {
  border-bottom: 0 !important;
  padding-inline: 0.55rem !important;
}
body.page-study-portal .study-portal-search-col .study-ctrip-cell-intake::before,
body.page-study-portal .study-portal-search-col .study-ctrip-cell-room::before,
body.page-study-portal .study-portal-search-col .study-ctrip-cell-program::before {
  display: none !important;
}
body.page-study-portal .study-portal-search-col .study-ctrip-cell > span:first-child {
  display: block;
  font-size: 0.54rem !important;
  font-weight: 750 !important;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(11, 31, 58, 0.45) !important;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
html[dir="rtl"] body.page-study-portal .study-portal-search-col .study-ctrip-cell > span:first-child,
html[lang="ar"] body.page-study-portal .study-portal-search-col .study-ctrip-cell > span:first-child {
  letter-spacing: 0;
  text-transform: none;
}
body.page-study-portal .study-ctrip-field-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  width: 100%;
}
body.page-study-portal .study-ctrip-field-row .study-ctrip-search-ico {
  order: 0;
}
html[dir="rtl"] body.page-study-portal .study-ctrip-field-row .study-ctrip-search-ico {
  /* keep icon on inline-end so Arabic value sits clear at inline-start */
  order: 2;
}

body.page-study-portal .study-ctrip-search-ico {
  flex: 0 0 auto;
  color: #1a6dff;
}
body.page-study-portal .study-portal-search-col .study-ctrip-cell input,
body.page-study-portal .study-portal-search-col .study-ctrip-cell select {
  position: relative;
  z-index: 1;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 0.8rem !important;
  font-weight: 720 !important;
  color: #0b1f3a !important;
  line-height: 1.15 !important;
  white-space: nowrap;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
body.page-study-portal .study-portal-search-col .study-ctrip-cell input::placeholder {
  color: rgba(11, 31, 58, 0.38) !important;
  opacity: 1 !important;
  font-weight: 600 !important;
}

/* Autocomplete: dropdown below field only — never paint over inputs */
body.page-study-portal .study-ac-wrap {
  position: relative;
  z-index: 4;
}
body.page-study-portal .study-ac-list {
  position: absolute !important;
  inset-inline: 0 !important;
  top: calc(100% + 6px) !important;
  left: auto !important;
  right: auto !important;
  z-index: 40 !important;
  margin: 0 !important;
  max-height: 240px;
  overflow: auto;
  background: #fff !important;
  border: 1px solid rgba(11, 31, 58, 0.12) !important;
  border-radius: 12px !important;
  box-shadow: 0 18px 40px rgba(15, 45, 90, 0.2) !important;
}
body.page-study-portal .study-ac-list[hidden] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Search CTA: flush end edge, no floating blue pill over fields */
body.page-study-portal .study-portal-search-col .study-ctrip-bar > .study-ctrip-go {
  grid-area: go !important;
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.15rem !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0.35rem 0.45rem !important;
  align-self: stretch !important;
  border: 0 !important;
  border-radius: 0 !important;
  border-start-end-radius: 11px !important;
  border-end-end-radius: 11px !important;
  background: linear-gradient(180deg, #2f78f0 0%, #1a5fd4 48%, #0d4bb8 100%) !important;
  box-shadow: none !important;
  color: #fff !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.01em;
  transform: none !important;
  filter: none !important;
  z-index: 2;
}
html[dir="rtl"] body.page-study-portal .study-portal-search-col .study-ctrip-bar > .study-ctrip-go {
  /* go stays on inline-end (left in RTL); keep end-side radii */
  margin: 0 !important;
  border-radius: 0 !important;
  border-start-start-radius: 0 !important;
  border-end-start-radius: 0 !important;
  border-start-end-radius: 13px !important;
  border-end-end-radius: 13px !important;
}
body.page-study-portal .study-portal-search-col .study-ctrip-bar > .study-ctrip-go:hover,
body.page-study-portal .study-portal-search-col .study-ctrip-bar > .study-ctrip-go:active {
  transform: none !important;
  filter: none !important;
  background: linear-gradient(180deg, #3d85f8 0%, #2269e0 48%, #1356c4 100%) !important;
}
body.page-study-portal .study-portal-search-col .study-ctrip-bar > .study-ctrip-go .study-ctrip-go-ico {
  width: 14px;
  height: 14px;
}

@media (max-width: 980px) {
  body.page-study-portal .study-portal-search-col .study-ctrip-bar {
    grid-template-columns: 1fr 1fr !important;
    grid-template-areas:
      "major major"
      "prov nation"
      "intake age"
      "room program"
      "go go" !important;
  }
  body.page-study-portal .study-portal-search-col .study-ctrip-cell {
    border-inline-end: 0 !important;
    border-bottom: 1px solid rgba(11, 31, 58, 0.08) !important;
  }
  body.page-study-portal .study-portal-search-col .study-ctrip-cell-prov,
  body.page-study-portal .study-portal-search-col .study-ctrip-cell-age,
  body.page-study-portal .study-portal-search-col .study-ctrip-cell-room {
    border-inline-end: 1px solid rgba(11, 31, 58, 0.08) !important;
  }
  body.page-study-portal .study-portal-search-col .study-ctrip-bar > .study-ctrip-go {
    flex-direction: row !important;
    gap: 0.28rem !important;
    min-height: 34px !important;
    border-radius: 0 0 11px 11px !important;
  }
  html[dir="rtl"] body.page-study-portal .study-portal-search-col .study-ctrip-bar > .study-ctrip-go {
    border-radius: 0 0 13px 13px !important;
  }
}

/* IAB skyscraper rails — 160×600, flush L/R, partner ad creatives */
body.page-study-portal .study-travel-ads {
  --study-sky-w: 160px;
  --study-sky-h: 600px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0.75rem 0 1.1rem;
  background: linear-gradient(180deg, #071526 0%, #0a1c33 100%);
  overflow: hidden;
}
body.page-study-portal .study-travel-ads-wrap.wrap,
body.page-study-portal .study-travel-ads-wrap {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  margin-inline: 0 !important;
  padding: 0 !important;
  padding-inline: 0 !important;
  box-sizing: border-box;
}
body.page-study-portal .study-travel-ads-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  margin: 0;
  padding: 0;
  gap: 0.65rem;
  direction: ltr;
}
body.page-study-portal .study-travel-ads-grid > .study-uni-partners {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 1rem 0.85rem 1.15rem;
  border-radius: 16px;
  /* Do not stretch+clip to skyscraper height — that hid most uni cards on desktop */
  align-self: flex-start;
  overflow: visible;
}
body.page-study-portal .study-travel-ads-grid > .study-uni-partners .study-uni-wrap {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
body.page-study-portal .study-travel-ads-grid > .study-uni-partners .study-uni-top {
  grid-template-columns: minmax(0, 1.15fr) minmax(200px, 0.85fr);
  gap: 0.85rem 1rem;
  margin-bottom: 0.85rem;
}
body.page-study-portal .study-travel-ads-grid > .study-uni-partners .study-uni-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0.55rem;
  gap: 0.4rem;
}
body.page-study-portal .study-travel-ads-grid > .study-uni-partners .study-uni-stats li {
  padding: 0.4rem 0.45rem;
}
body.page-study-portal .study-travel-ads-grid > .study-uni-partners .study-uni-stats strong {
  font-size: 1.02rem;
}
body.page-study-portal .study-travel-ads-grid > .study-uni-partners .study-uni-card {
  width: var(--uni-card-w, 300px);
}
body.page-study-portal .study-travel-ads-grid > .study-uni-partners .study-uni-crest {
  /* Tall enough that wide banners (contain) keep logo + Chinese + English fully visible */
  height: 116px;
  padding: 0;
}
@media (max-width: 640px) {
  body.page-study-portal .study-travel-ads-grid > .study-uni-partners .study-uni-card {
    width: var(--uni-card-w, 260px);
  }
  body.page-study-portal .study-travel-ads-grid > .study-uni-partners .study-uni-crest {
    height: 104px;
    padding: 0;
  }
}
body.page-study-portal .study-travel-ads-grid > .study-uni-partners .study-uni-why-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
body.page-study-portal .study-travel-ads-grid > .study-uni-partners .study-uni-foot {
  margin-top: 1rem;
}
body.page-study-portal .study-travel-ad.study-travel-placement {
  position: relative;
  flex: 0 0 var(--study-sky-w);
  width: var(--study-sky-w);
  min-width: var(--study-sky-w);
  max-width: var(--study-sky-w);
  height: var(--study-sky-h);
  min-height: var(--study-sky-h);
  max-height: var(--study-sky-h);
  overflow: hidden;
  background: #0b1f3a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.16) inset,
    0 18px 36px rgba(8, 24, 48, 0.34),
    0 8px 16px rgba(26, 109, 255, 0.14);
  color: #fff;
}
body.page-study-portal .study-travel-ad-hotel.study-travel-placement {
  border-radius: 0 14px 14px 0;
  border-left: 0;
  margin-inline-start: 0;
}
body.page-study-portal .study-travel-ad-flight.study-travel-placement {
  border-radius: 14px 0 0 14px;
  border-right: 0;
  margin-inline-end: 0;
}

/* Flight skyscraper + official-sources ad stacked in one tall column */
body.page-study-portal .study-travel-flight-col {
  flex: 0 0 var(--study-sky-w);
  width: var(--study-sky-w);
  min-width: var(--study-sky-w);
  max-width: var(--study-sky-w);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
  box-sizing: border-box;
}
body.page-study-portal .study-travel-flight-col > .study-travel-ad-flight.study-travel-placement {
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  max-width: none;
  /* keep skyscraper height; width comes from column */
}
body.page-study-portal .study-travel-flight-col > .path-sources-ad.study-travel-sources-ad {
  flex: 0 0 auto;
  width: 100%;
  max-width: none;
  min-height: 0;
  /* Match column width; keep 9:16 readable CTA + External badge */
  aspect-ratio: 9 / 16;
  border-radius: 14px 0 0 14px;
  border-right: 0;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.14) inset,
    0 14px 28px rgba(8, 24, 48, 0.28);
  border-color: rgba(255, 255, 255, 0.12);
}
body.page-study-portal .study-travel-flight-col > .path-sources-ad.study-travel-sources-ad .path-sources-ad-copy {
  min-height: 0;
  padding: 0.7rem 0.55rem 0.75rem;
  gap: 0.28rem;
}
body.page-study-portal .study-travel-flight-col > .path-sources-ad.study-travel-sources-ad .path-sources-ad-copy strong {
  font-size: clamp(0.78rem, 1.1vw, 0.95rem);
  line-height: 1.2;
}
body.page-study-portal .study-travel-flight-col > .path-sources-ad.study-travel-sources-ad .path-sources-ad-sub {
  font-size: 0.68rem;
  line-height: 1.35;
  max-width: none;
}
body.page-study-portal .study-travel-flight-col > .path-sources-ad.study-travel-sources-ad .path-sources-ad-cta {
  padding: 0.38rem 0.55rem;
  font-size: 0.72rem;
  border-radius: 8px;
}
body.page-study-portal .study-travel-flight-col > .path-sources-ad.study-travel-sources-ad .path-sources-ext {
  font-size: 0.58rem;
  padding: 0.12rem 0.38rem;
}
body.page-study-portal .study-travel-placement .study-travel-ad-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
body.page-study-portal .study-travel-ad-hotel.study-travel-placement .study-travel-ad-bg {
  object-position: center 40%;
}
body.page-study-portal .study-travel-ad-flight.study-travel-placement .study-travel-ad-bg {
  object-position: center 35%;
}
body.page-study-portal .study-travel-placement .study-travel-ad-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 24, 48, 0.5) 0%, rgba(8, 24, 48, 0.12) 36%, rgba(8, 24, 48, 0.62) 100%);
}
body.page-study-portal .study-travel-placement .study-travel-ad-top {
  position: absolute;
  z-index: 2;
  top: 0.55rem;
  left: 0.45rem;
  right: 0.45rem;
  display: grid;
  gap: 0.35rem;
  padding: 0;
  inset-inline-start: 0.45rem;
  inset-inline-end: 0.45rem;
}
body.page-study-portal .study-travel-placement .study-travel-ad-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0;
  padding: 0.16rem 0.4rem;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.94);
  background: rgba(8, 24, 48, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
body.page-study-portal .study-travel-placement .study-travel-ad-kicker {
  display: none;
}
body.page-study-portal .study-travel-placement .study-travel-ad-title {
  margin: 0;
  max-width: none;
  font-size: 0.98rem;
  line-height: 1.2;
  font-weight: 820;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}
body.page-study-portal .study-travel-placement .study-travel-glass {
  position: absolute;
  z-index: 2;
  top: 4.4rem;
  left: 0.4rem;
  right: 0.4rem;
  inset-inline-start: 0.4rem;
  inset-inline-end: 0.4rem;
  width: auto;
  max-height: calc(100% - 9.2rem);
  display: grid;
  gap: 0.35rem;
  overflow: hidden;
  padding: 0;
}
body.page-study-portal .study-travel-placement .study-ad-glass {
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 0.32rem;
  padding: 0.32rem 0.35rem;
  border-radius: 10px;
}
body.page-study-portal .study-travel-placement .study-ad-glass img {
  width: 32px;
  height: 32px;
  border-radius: 7px;
}
body.page-study-portal .study-travel-placement .study-ad-glass strong {
  font-size: 0.66rem;
}
body.page-study-portal .study-travel-placement .study-ad-glass em {
  color: #ffd76a;
  font-size: 0.62rem;
}
body.page-study-portal .study-travel-placement .study-travel-cta-bar {
  position: absolute;
  z-index: 3;
  left: 0.4rem;
  right: 0.4rem;
  bottom: 3.15rem;
  display: grid;
  gap: 0.35rem;
}
body.page-study-portal .study-travel-ad-hotel.study-travel-placement .study-travel-cta-bar {
  bottom: 2.85rem;
}
body.page-study-portal .study-travel-placement .study-travel-cta-bar a {
  flex: none;
  width: 100%;
  padding: 0.55rem 0.4rem;
  font-size: 0.7rem;
  border-radius: 10px;
}
body.page-study-portal .study-travel-ad-hotel.study-travel-placement .study-travel-cta-bar a:first-child {
  background: linear-gradient(180deg, #ffb347 0%, #f08a1a 55%, #d9730b 100%);
  color: #1a1208;
  text-shadow: none;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.45) inset,
    0 10px 18px rgba(0, 0, 0, 0.28);
}
body.page-study-portal .study-travel-ad-hotel.study-travel-placement .study-travel-cta-bar a:nth-child(2) {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  text-shadow: none;
}
body.page-study-portal .study-travel-placement .study-travel-badge {
  position: absolute;
  z-index: 3;
  left: 0.4rem;
  right: 0.4rem;
  bottom: 0.45rem;
  width: auto;
  max-width: none;
  padding: 0.32rem 0.4rem 0.32rem 0.32rem;
  gap: 0.32rem;
}
body.page-study-portal .study-travel-placement .study-ad-badge b {
  font-size: 0.62rem;
}
body.page-study-portal .study-travel-placement .study-ad-badge small {
  font-size: 0.54rem;
}
body.page-study-portal .study-travel-placement .study-travel-partner-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: #fff;
  color: #0b1f3a;
  font-size: 0.62rem;
  font-weight: 860;
  line-height: 1;
  flex: 0 0 auto;
}
body.page-study-portal .study-travel-ad-flight.study-travel-placement .study-travel-partner-mark {
  color: #1a6dff;
}
body.page-study-portal .study-travel-placement .study-travel-ad-offers,
body.page-study-portal .study-travel-placement .study-travel-ad-foot {
  display: none !important;
}
@media (max-width: 1100px) {
  body.page-study-portal .study-travel-ads-grid > .study-uni-partners .study-uni-top {
    grid-template-columns: 1fr;
  }
  body.page-study-portal .study-travel-ads-grid > .study-uni-partners .study-uni-head {
    text-align: center;
    max-width: none;
  }
  body.page-study-portal .study-travel-ads-grid > .study-uni-partners .study-uni-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  body.page-study-portal .study-travel-ads-grid > .study-uni-partners .study-uni-toolbar {
    justify-content: center;
  }
}
@media (max-width: 900px) {
  body.page-study-portal .study-travel-ads {
    --study-sky-w: 120px;
    --study-sky-h: 520px;
  }
  body.page-study-portal .study-travel-ads-grid {
    justify-content: space-between;
    gap: 0.45rem;
  }
  body.page-study-portal .study-travel-ads-grid > .study-uni-partners {
    padding: 0.85rem 0.55rem 1rem;
  }
  body.page-study-portal .study-travel-ads-grid > .study-uni-partners .study-uni-stats {
    grid-template-columns: 1fr 1fr;
  }
  body.page-study-portal .study-travel-ads-grid > .study-uni-partners .study-uni-card {
    width: var(--uni-card-w, 280px);
  }
  body.page-study-portal .study-travel-ads-grid > .study-uni-partners .study-uni-crest {
    height: 112px;
  }
  body.page-study-portal .study-travel-flight-col > .path-sources-ad.study-travel-sources-ad .path-sources-ad-copy {
    padding: 0.55rem 0.42rem 0.6rem;
  }
  body.page-study-portal .study-travel-flight-col > .path-sources-ad.study-travel-sources-ad .path-sources-ad-copy strong {
    font-size: 0.74rem;
  }
  body.page-study-portal .study-travel-flight-col > .path-sources-ad.study-travel-sources-ad .path-sources-ad-sub {
    font-size: 0.62rem;
  }
}
@media (max-width: 700px) {
  body.page-study-portal .study-travel-ads {
    --study-sky-w: 100%;
    --study-sky-h: 420px;
    padding-inline: 0;
  }
  body.page-study-portal .study-travel-ads-grid {
    flex-direction: column;
    gap: 0.55rem;
  }
  body.page-study-portal .study-travel-ads-grid > .study-uni-partners {
    order: 0;
    border-radius: 0;
    padding: 1.4rem 0.85rem 1.6rem;
  }
  body.page-study-portal .study-travel-flight-col {
    order: 2;
    width: 100%;
    min-width: 0;
    max-width: none;
    flex-basis: auto;
    gap: 0.55rem;
    padding-inline: 0.85rem;
    box-sizing: border-box;
  }
  body.page-study-portal .study-travel-ad.study-travel-placement,
  body.page-study-portal .study-travel-ad-hotel.study-travel-placement,
  body.page-study-portal .study-travel-ad-flight.study-travel-placement {
    width: 100%;
    min-width: 0;
    max-width: none;
    flex-basis: auto;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
  body.page-study-portal .study-travel-ad-hotel.study-travel-placement { order: 1; }
  body.page-study-portal .study-travel-flight-col > .study-travel-ad-flight.study-travel-placement {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
  }
  body.page-study-portal .study-travel-flight-col > .path-sources-ad.study-travel-sources-ad {
    width: min(100%, 22rem);
    max-width: 22rem;
    margin-inline: auto;
    min-height: 20rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
  }
  body.page-study-portal .study-travel-flight-col > .path-sources-ad.study-travel-sources-ad .path-sources-ad-copy {
    min-height: 20rem;
    padding: 1.05rem 0.95rem 1.1rem;
    gap: 0.4rem;
  }
  body.page-study-portal .study-travel-flight-col > .path-sources-ad.study-travel-sources-ad .path-sources-ad-copy strong {
    font-size: clamp(1.02rem, 4.2vw, 1.22rem);
  }
  body.page-study-portal .study-travel-flight-col > .path-sources-ad.study-travel-sources-ad .path-sources-ad-sub {
    font-size: 0.84rem;
    max-width: 28ch;
  }
  body.page-study-portal .study-travel-flight-col > .path-sources-ad.study-travel-sources-ad .path-sources-ad-cta {
    padding: 0.48rem 0.9rem;
    font-size: 0.84rem;
    border-radius: 10px;
  }
  body.page-study-portal .study-travel-flight-col > .path-sources-ad.study-travel-sources-ad .path-sources-ext {
    font-size: 0.68rem;
    padding: 0.14rem 0.45rem;
  }
}


/* —— states-only search results + nationality readiness —— */
.study-state-card {
  gap: 0.55rem;
}
.study-state-title {
  display: grid;
  gap: 0.15rem;
}
.study-state-kicker {
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(11, 31, 58, 0.45);
}
.study-school-card-top {
  align-items: flex-start;
}
.study-nation-badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  font-size: 0.72rem;
  font-weight: 750;
  color: #8a3b00;
  background: #fff4e6;
  border: 1px solid rgba(180, 90, 20, 0.28);
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  white-space: nowrap;
}
.study-nation-note {
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: #fff8f0;
  border: 1px solid rgba(180, 90, 20, 0.16);
  color: rgba(90, 45, 10, 0.88);
}
.study-school-state-count {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 650;
  color: rgba(11, 31, 58, 0.72);
}
.study-state-programs {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: rgba(11, 31, 58, 0.7);
}
.study-state-programs b {
  display: block;
  font-size: 0.68rem;
  font-weight: 650;
  color: rgba(11, 31, 58, 0.45);
  margin-bottom: 0.12rem;
}
.study-state-grid {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}
@media (max-width: 980px) {
  body.page-study-portal .study-portal-search-col .study-ctrip-bar {
    grid-template-columns: 1fr 1fr !important;
    grid-template-areas:
      "major major"
      "prov nation"
      "intake age"
      "room program"
      "go go" !important;
  }
  body.page-study-portal .study-portal-search-col .study-ctrip-bar > .study-ctrip-go {
    width: auto !important;
    min-width: 0 !important;
    min-height: 34px !important;
    border-radius: 0 0 11px 11px !important;
  }
}

/* Desktop: larger study rail icons/labels + shorter ad carousel (2026-11-17) */
@media (min-width: 901px) {
  .study-portal-shell {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .study-portal-rail {
    gap: 0.28rem;
    padding: 0.6rem 0.4rem;
  }

  .study-rail-item {
    gap: 0.28rem;
    padding: 0.58rem 0.22rem;
    font-size: 0.74rem;
  }

  .study-rail-ico {
    width: 2.35rem;
    height: 2.35rem;
    font-size: 0.98rem;
    border-radius: 11px;
  }
}

/* Wide tablet / narrow desktop: fill empty space in 3×2 guide rail */
@media (min-width: 860px) and (max-width: 900px) {
  .study-portal-rail {
    gap: 0.42rem;
    padding: 0.55rem 0.5rem;
  }

  .study-rail-item {
    gap: 0.3rem;
    padding: 0.55rem 0.25rem;
    font-size: 0.74rem;
  }

  .study-rail-ico {
    width: 2.45rem;
    height: 2.45rem;
    font-size: 1.02rem;
    border-radius: 11px;
  }
}

/* Shorten stacked ad a little on mid desktop (was ~420) */
@media (min-width: 901px) and (max-width: 980px) {
  .study-ad-carousel,
  .study-ad-slides {
    min-height: 360px;
  }
}

/* Shorten side-panel ad a little on wide desktop (was 680) */
@media (min-width: 981px) {
  .study-portal-top {
    min-height: 560px;
  }

  .study-ad-carousel,
  .study-ad-slides {
    min-height: 560px;
  }

  .study-ad-slide-bg {
    object-fit: cover;
    object-position: center;
  }
}

/* ==========================================================================
   Study Major Search form — responsive by FORM width (2026-11-18)
   The search column is only ~480–780px wide on 1000–1500px desktops and the
   viewport media queries above could not see that, so the 7-col row crushed
   Nationality/Intake/Room. The form (#study-ctrip-form) is now a size
   container; tiers (form width):
     >= 1000 one row  (major | go / prov nat intake room program | go)
     480–999 six-col  (major / prov|nat / intake|room|program / go)
     360–479 two-col  (major / prov|nat / intake|room / program / go)
     300–359 prov, nat stacked; intake|room paired
     < 300   everything single column
   Search is always full-width under the fields except in the widest tier.
   ========================================================================== */
body.page-study-portal .study-portal-search-col {
  /* let dropdown lists drop past the panel; only clip sideways bleed */
  overflow: visible;
  overflow-x: clip;
}
body.page-study-portal .study-portal-search-col .study-ctrip-panel {
  container-type: inline-size;
  container-name: studysearch;
  min-width: 0;
  max-width: 100%;
  /* Compact search card — tighter box + inner controls */
  gap: 0.32rem;
  padding: 0.4rem 0.45rem 0.45rem;
  border-radius: 11px;
}
/* an open list must paint above Search, hot picks, trust badges below */
body.page-study-portal .study-portal-search-col .study-ctrip-panel:focus-within {
  z-index: 6;
}
body.page-study-portal .study-portal-search-col .study-ctrip-cell:focus-within,
body.page-study-portal .study-portal-search-col .study-ctrip-cell:has([aria-expanded="true"]) {
  z-index: 30 !important;
}

/* default tier = six-col (also the no-container-support fallback) */
body.page-study-portal .study-portal-search-col .study-ctrip-bar {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  grid-template-areas:
    "major major major major major major"
    "prov prov nation nation age age"
    "intake intake room room program program"
    "go go go go go go" !important;
}
body.page-study-portal .study-portal-search-col .study-ctrip-cell {
  min-height: 36px;
  border-inline-end: 0 !important;
  border-bottom: 1px solid rgba(11, 31, 58, 0.08) !important;
  padding: 0.26rem 0.5rem !important;
  gap: 0.05rem !important;
}
body.page-study-portal .study-portal-search-col .study-ctrip-cell-major {
  padding-inline: 0.55rem !important;
}
body.page-study-portal .study-portal-search-col .study-ctrip-cell-prov,
body.page-study-portal .study-portal-search-col .study-ctrip-cell-nation,
body.page-study-portal .study-portal-search-col .study-ctrip-cell-intake,
body.page-study-portal .study-portal-search-col .study-ctrip-cell-room {
  border-inline-end: 1px solid rgba(11, 31, 58, 0.08) !important;
}
/* age ends the province/nation/age row — no trailing divider */
body.page-study-portal .study-portal-search-col .study-ctrip-cell-age {
  border-inline-end: 0 !important;
}
body.page-study-portal .study-portal-search-col .study-ctrip-bar > .study-ctrip-go {
  flex-direction: row !important;
  gap: 0.25rem !important;
  min-height: 32px !important;
  width: 100% !important;
  padding: 0.3rem 0.65rem !important;
  border-radius: 0 0 11px 11px !important;
  font-size: 0.76rem !important;
}
html[dir="rtl"] body.page-study-portal .study-portal-search-col .study-ctrip-bar > .study-ctrip-go {
  border-radius: 0 0 11px 11px !important;
}

/* chevrons: selects lost theirs to `background: transparent !important`;
   Province / Nationality are pick-lists too, so they get one */
body.page-study-portal .study-portal-search-col .study-ctrip-cell select,
body.page-study-portal .study-portal-search-col .study-ctrip-cell-prov input,
body.page-study-portal .study-portal-search-col .study-ctrip-cell-nation input[type="search"] {
  background-color: transparent !important;
  background-image:
    linear-gradient(45deg, transparent 50%, #1a6dff 50%),
    linear-gradient(135deg, #1a6dff 50%, transparent 50%) !important;
  background-position: calc(100% - 7px) calc(50% + 1px), calc(100% - 2px) calc(50% + 1px) !important;
  background-size: 5px 5px, 5px 5px !important;
  background-repeat: no-repeat !important;
  padding-inline: 0 1.05rem !important;
  min-height: 20px;
  cursor: pointer;
  text-overflow: ellipsis !important;
}
body.page-study-portal .study-portal-search-col .study-ctrip-cell-prov input,
body.page-study-portal .study-portal-search-col .study-ctrip-cell-nation input[type="search"] {
  cursor: text;
}
html[dir="rtl"] body.page-study-portal .study-portal-search-col .study-ctrip-cell select,
html[dir="rtl"] body.page-study-portal .study-portal-search-col .study-ctrip-cell-prov input,
html[dir="rtl"] body.page-study-portal .study-portal-search-col .study-ctrip-cell-nation input[type="search"] {
  background-position: 7px calc(50% + 1px), 2px calc(50% + 1px) !important;
}
body.page-study-portal .study-portal-search-col .study-ctrip-cell select option {
  color: #0b1f3a;
  background: #fff;
}
/* hide the browser's own clear (x) on nationality so it never fights the chevron */
body.page-study-portal .study-portal-search-col .study-ctrip-cell-nation input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

/* option panels: wider than a squeezed cell, capped to the screen, scroll inside */
body.page-study-portal .study-portal-search-col .study-ac-list {
  width: max(100%, 230px);
  max-width: min(92vw, 340px);
  max-height: min(260px, 42vh) !important;
  overscroll-behavior: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.3rem !important;
  box-sizing: border-box;
}
body.page-study-portal .study-portal-search-col .study-ctrip-cell-major .study-ac-list {
  width: 100%;
  max-width: none;
}
body.page-study-portal .study-portal-search-col .study-ctrip-cell-nation .study-ac-list {
  inset-inline: auto 0 !important;
}
body.page-study-portal .study-portal-search-col .study-ac-list button {
  min-height: 40px;
  overflow-wrap: anywhere;
}

/* wide: major on top, six fields in one row (age after nationality), Search on the end */
@container studysearch (min-width: 1000px) {
  body.page-study-portal .study-portal-search-col .study-ctrip-bar {
    grid-template-columns:
      minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, 0.78fr) minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 0.9fr) minmax(118px, 132px) !important;
    grid-template-areas:
      "major major major major major major go"
      "prov nation age intake room program go" !important;
  }
  body.page-study-portal .study-portal-search-col .study-ctrip-bar > .study-ctrip-go {
    flex-direction: column !important;
    width: 100% !important;
    min-height: 0 !important;
    border-radius: 0 !important;
    border-start-end-radius: 13px !important;
    border-end-end-radius: 13px !important;
  }
}

/* two-col: age under nationality (intake | age → age aligns with nation col) */
@container studysearch (max-width: 479px) {
  body.page-study-portal .study-portal-search-col .study-ctrip-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-areas:
      "major major"
      "prov nation"
      "intake age"
      "room program"
      "go go" !important;
  }
  body.page-study-portal .study-portal-search-col .study-ctrip-cell-nation,
  body.page-study-portal .study-portal-search-col .study-ctrip-cell-intake,
  body.page-study-portal .study-portal-search-col .study-ctrip-cell-room {
    border-inline-end: 0 !important;
  }
  body.page-study-portal .study-portal-search-col .study-ctrip-cell-age {
    border-inline-end: 1px solid rgba(11, 31, 58, 0.08) !important;
  }
}

/* narrow phone: province / nationality stack; age under nationality */
@container studysearch (max-width: 359px) {
  body.page-study-portal .study-portal-search-col .study-ctrip-bar {
    grid-template-areas:
      "major major"
      "prov prov"
      "nation nation"
      "intake age"
      "room program"
      "go go" !important;
  }
  body.page-study-portal .study-portal-search-col .study-ctrip-cell-prov {
    border-inline-end: 0 !important;
  }
}

/* very small phone: one column — age still follows nationality */
@container studysearch (max-width: 299px) {
  body.page-study-portal .study-portal-search-col .study-ctrip-bar {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas:
      "major"
      "prov"
      "nation"
      "age"
      "intake"
      "room"
      "program"
      "go" !important;
  }
  body.page-study-portal .study-portal-search-col .study-ctrip-cell-intake,
  body.page-study-portal .study-portal-search-col .study-ctrip-cell-age,
  body.page-study-portal .study-portal-search-col .study-ctrip-cell-room {
    border-inline-end: 0 !important;
  }
}

/* no container-query support: viewport fallback for the roomy desktop row */
@supports not (container-type: inline-size) {
  @media (min-width: 1700px) {
    body.page-study-portal .study-portal-search-col .study-ctrip-bar {
      grid-template-columns:
        minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, 0.78fr) minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 0.9fr) minmax(118px, 132px) !important;
      grid-template-areas:
        "major major major major major major go"
        "prov nation age intake room program go" !important;
    }
    body.page-study-portal .study-portal-search-col .study-ctrip-bar > .study-ctrip-go {
      flex-direction: column !important;
      border-radius: 0 13px 13px 0 !important;
    }
  }
  @media (max-width: 479px) {
    body.page-study-portal .study-portal-search-col .study-ctrip-bar {
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
      grid-template-areas:
        "major major"
        "prov nation"
        "intake age"
        "room program"
        "go go" !important;
    }
  }
}

/* wide tier: separators run between columns, not rows */
@container studysearch (min-width: 1000px) {
  body.page-study-portal .study-portal-search-col .study-ctrip-cell {
    border-bottom: 0 !important;
    border-inline-end: 1px solid rgba(11, 31, 58, 0.08) !important;
  }
  body.page-study-portal .study-portal-search-col .study-ctrip-cell-major {
    border-inline-end: 0 !important;
    border-bottom: 1px solid rgba(11, 31, 58, 0.08) !important;
  }
  /* program sits last before Search */
  body.page-study-portal .study-portal-search-col .study-ctrip-cell-program {
    border-inline-end: 0 !important;
  }
}

/* panel + teach pills: compact (hot picks removed from Study markup) */
body.page-study-portal .study-ctrip-teach {
  gap: 0.28rem 0.45rem;
  margin-bottom: 0;
  padding: 0.02rem 0.05rem 0.22rem;
}
body.page-study-portal .study-ctrip-teach-label {
  font-size: 0.58rem;
}
body.page-study-portal .study-ctrip-teach-opts {
  gap: 0.25rem;
}
body.page-study-portal .study-ctrip-teach-opts button {
  min-height: 28px;
  font-size: 0.72rem;
  font-weight: 720;
  padding: 0.2rem 0.58rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.14);
}
body.page-study-portal .study-ctrip-teach-opts button.is-on {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.3) inset,
    0 6px 14px rgba(26, 109, 255, 0.32),
    0 2px 0 #083a9e;
}
body.page-study-portal .study-portal-search-col .study-ctrip-cell > span:first-child {
  font-size: 0.54rem !important;
}
body.page-study-portal .study-portal-search-col .study-ctrip-cell input,
body.page-study-portal .study-portal-search-col .study-ctrip-cell select {
  font-size: 0.8rem !important;
  font-weight: 720 !important;
  line-height: 1.15 !important;
  min-height: 18px;
}
body.page-study-portal .study-ctrip-search-ico {
  width: 13px;
  height: 13px;
}
body.page-study-portal .study-portal-search-col .study-ctrip-bar > .study-ctrip-go .study-ctrip-go-ico {
  width: 14px;
  height: 14px;
}
@media (max-width: 600px) {
  body.page-study-portal .study-portal-search-col {
    padding: 0.55rem 0.4rem 0.65rem;
  }
  body.page-study-portal .study-portal-search-col .study-ctrip-panel {
    padding: 0.35rem 0.32rem 0.4rem;
    gap: 0.28rem;
  }
  body.page-study-portal .study-portal-tabs {
    flex-wrap: wrap;
    row-gap: 0.35rem;
  }
  body.page-study-portal .study-portal-tabs .study-portal-tab-cta {
    flex: 1 1 auto;
    justify-content: center;
    text-align: center;
    min-height: 2.35rem;
    display: inline-flex;
    align-items: center;
  }
  body.page-study-portal .study-ctrip-teach-opts button {
    min-height: 30px;
  }
}
@media (max-width: 720px) {
  /* 16px stops iOS from zooming the page when a field is focused */
  body.page-study-portal .study-portal-search-col .study-ctrip-cell input,
  body.page-study-portal .study-portal-search-col .study-ctrip-cell select {
    font-size: 1rem !important;
  }
  body.page-study-portal .study-portal-search-col .study-ac-list button {
    min-height: 44px;
    font-size: 0.95rem;
  }
}

/* —— desktop Ctrip glass depth (navy search card; keep compact bar) —— */
@media (min-width: 981px) {
  body.page-study-portal .study-portal-search-col {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: 16px !important;
    border: 1px solid rgba(170, 210, 255, 0.28);
    background:
      radial-gradient(130% 90% at 108% -18%, rgba(120, 185, 255, 0.42), transparent 52%),
      radial-gradient(85% 70% at -12% 108%, rgba(26, 109, 255, 0.34), transparent 55%),
      radial-gradient(60% 50% at 50% 120%, rgba(8, 40, 110, 0.55), transparent 70%),
      linear-gradient(165deg, #07182e 0%, #0d2748 42%, #123a72 78%, #0b4fd6 160%);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.28) inset,
      0 0 0 1px rgba(8, 28, 58, 0.35) inset,
      0 28px 56px rgba(4, 16, 36, 0.48),
      0 10px 22px rgba(26, 109, 255, 0.22),
      0 0 40px rgba(26, 109, 255, 0.12);
    backdrop-filter: blur(18px) saturate(1.15);
    -webkit-backdrop-filter: blur(18px) saturate(1.15);
    padding: 0.85rem 0.95rem 0.9rem;
  }
  body.page-study-portal .study-portal-search-col::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.04) 34%, transparent 58%),
      linear-gradient(90deg, transparent 0%, rgba(90, 162, 255, 0.08) 50%, transparent 100%);
  }
  body.page-study-portal .study-portal-search-col::after {
    content: "";
    position: absolute;
    inset-inline: 10%;
    bottom: -28%;
    height: 55%;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(closest-side, rgba(58, 140, 255, 0.28), transparent 72%);
    filter: blur(2px);
  }
  body.page-study-portal .study-portal-search-col > * {
    position: relative;
    z-index: 1;
  }
  body.page-study-portal .study-portal-search-col #study-ctrip-form,
  body.page-study-portal .study-portal-search-col .study-ctrip-panel {
    flex: 0 0 auto !important;
    gap: 0.4rem;
    padding: 0.5rem 0.55rem 0.55rem !important;
    border-radius: 14px !important;
    border: 1px solid rgba(255, 255, 255, 0.26);
    background:
      linear-gradient(165deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.08) 48%, rgba(180, 210, 255, 0.06) 100%);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.34) inset,
      0 -1px 0 rgba(8, 28, 58, 0.18) inset,
      0 16px 32px rgba(0, 0, 0, 0.22),
      0 0 0 1px rgba(90, 162, 255, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
  body.page-study-portal .study-portal-search-col .study-ctrip-bar {
    border-radius: 12px !important;
    border: 1px solid rgba(11, 31, 58, 0.12) !important;
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.98) inset,
      0 14px 28px rgba(4, 18, 40, 0.28),
      0 4px 10px rgba(8, 24, 48, 0.12) !important;
  }
  body.page-study-portal .study-ctrip-teach-opts button {
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.22) inset,
      0 8px 16px rgba(0, 0, 0, 0.22),
      0 2px 0 rgba(8, 40, 120, 0.25);
  }
  body.page-study-portal .study-ctrip-teach-opts button.is-on {
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.38) inset,
      0 10px 20px rgba(26, 109, 255, 0.4),
      0 2px 0 #083a9e;
  }
  body.page-study-portal .study-search-foot {
    /* sit tight under Search — do not flex-push to column bottom */
    margin-top: 0.25rem;
    display: grid;
    gap: 0.45rem;
    padding: 0.7rem 0.75rem 0.65rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.05) 100%);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.18) inset,
      0 12px 24px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  body.page-study-portal .study-search-foot .study-ctrip-trust {
    margin: 0;
    gap: 0.4rem 0.55rem;
  }
  body.page-study-portal .study-search-foot .study-ctrip-trust li {
    padding: 0.32rem 0.62rem;
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.16) inset,
      0 6px 12px rgba(0, 0, 0, 0.16);
  }
  body.page-study-portal .study-search-foot .study-portal-tip {
    margin: 0;
    font-size: 0.74rem;
    line-height: 1.4;
    color: rgba(230, 240, 255, 0.86);
  }
  body.page-study-portal .study-search-foot .study-school-meta,
  body.page-study-portal .study-portal-search-col .study-school-meta {
    margin: 0;
    padding: 0.48rem 0.7rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.07));
    color: rgba(255, 255, 255, 0.94);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.14) inset;
    font-size: 0.78rem;
    font-weight: 650;
  }
}
@media (max-width: 980px) {
  body.page-study-portal .study-search-foot {
    margin-top: 0.55rem;
    display: grid;
    gap: 0.4rem;
  }
  body.page-study-portal .study-search-foot .study-ctrip-trust {
    margin: 0;
  }
  body.page-study-portal .study-search-foot .study-portal-tip {
    margin: 0;
  }
  body.page-study-portal .study-search-foot .study-school-meta {
    margin: 0;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   co10 — Open a company inquiry form (scoped to #company-form only)
   · red Required docs · option cards (work/residence, inside China)
   · nationality picker · multi-select business activity · inline errors
   ═══════════════════════════════════════════════════════════════════════════ */

/* — Required documents look required (red), optional stays grey — */
#company-form .lead-doc-row.is-required {
  border-color: rgba(220, 38, 38, 0.5);
  background: #fff7f7;
}

#company-form .lead-doc-row.is-required .lead-doc-meta label::after {
  content: " *";
  color: #dc2626;
  font-weight: 800;
}

#company-form .lead-doc-row.is-required .lead-doc-tag:not(.opt) {
  color: #b91c1c;
  background: #fee2e2;
  border: 1px solid #fca5a5;
}

#company-form .lead-doc-row:not(.is-required) .lead-doc-tag:not(.opt) {
  color: #475569;
  background: #eef1f6;
  border: 1px solid transparent;
}

#company-form .lead-doc-tag.opt {
  color: #64748b;
  background: #eef1f6;
}

#company-form .lead-docs-required-note {
  margin: 0.55rem 0 0.35rem;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  border: 1px solid #fca5a5;
  border-inline-start: 4px solid #dc2626;
  background: #fef2f2;
  color: #991b1b;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
}

/* — Inline validation — */
#company-form .lead-field-error {
  margin: 0.4rem 0 0;
  color: #b91c1c;
  font-size: 0.85rem;
  font-weight: 650;
  line-height: 1.35;
}

#company-form .lead-field-error::before {
  content: "! ";
  font-weight: 900;
}

#company-form .is-invalid {
  scroll-margin-top: 6rem;
}

#company-form .field.is-invalid input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
#company-form .field.is-invalid select,
#company-form .field.is-invalid textarea {
  border-color: #dc2626;
  background: #fff5f5;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

#company-form .lead-doc-row.is-invalid {
  border: 2px solid #dc2626;
  background: #fff1f1;
}

#company-form .lead-pay-methods.is-invalid .lead-pay-choice {
  border-color: #dc2626;
  background: #fff5f5;
}

#company-form .field-activity.is-invalid .act-list {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

#company-form .lead-form-error {
  margin-top: 1rem;
  font-weight: 650;
}

/* — Study form inline validation (same pattern as company) — */
#study-form .lead-field-error {
  margin: 0.4rem 0 0;
  color: #b91c1c;
  font-size: 0.85rem;
  font-weight: 650;
  line-height: 1.35;
}
#study-form .lead-field-error::before {
  content: "! ";
  font-weight: 900;
}
#study-form .is-invalid {
  scroll-margin-top: 6rem;
}
@keyframes study-invalid-flash {
  0%,
  100% {
    box-shadow: none;
  }
  35%,
  65% {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.35);
  }
}
#study-form .is-invalid.study-invalid-flash {
  animation: study-invalid-flash 0.95s ease;
}
#study-form .field.is-invalid input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
#study-form .field.is-invalid select,
#study-form .field.is-invalid textarea,
#study-form .field.is-invalid .lead-phone-row,
#study-form .field.is-invalid .nation-combo {
  border-color: #dc2626;
  background: #fff5f5;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}
#study-form .field.is-invalid .lead-phone-row,
#study-form .field.is-invalid .nation-combo {
  border-radius: 10px;
}
#study-form .lead-majors-panel.is-invalid,
#study-form .lead-names.is-invalid {
  border: 2px solid #dc2626;
  border-radius: 12px;
  background: #fff5f5;
  padding: 0.55rem 0.65rem;
}
/* Shared name error — one line under the grid, not under every name box */
#study-form .lead-names > .lead-field-error {
  margin: 0.1rem 0 0;
  grid-column: 1 / -1;
}
#study-form .lead-names-grid .field.is-invalid > .lead-field-error {
  display: none;
}
#study-form .lead-pay-methods.is-invalid .lead-pay-choice {
  border-color: #dc2626;
  background: #fff5f5;
}
#study-form .lead-terms.is-invalid,
#study-form .field-span.is-invalid:has(#accept-terms) {
  outline: 2px solid #dc2626;
  outline-offset: 4px;
  border-radius: 10px;
}

/* — Study partners form inline validation — */
#study-partner-form .lead-field-error {
  margin: 0.4rem 0 0;
  color: #b91c1c;
  font-size: 0.85rem;
  font-weight: 650;
  line-height: 1.35;
}
#study-partner-form .lead-field-error::before {
  content: "! ";
  font-weight: 900;
}
#study-partner-form .is-invalid {
  scroll-margin-top: 6rem;
}
#study-partner-form .field.is-invalid input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
#study-partner-form .field.is-invalid select,
#study-partner-form .field.is-invalid textarea,
#study-partner-form .study-partners-phone-field.is-invalid .study-partners-phone {
  border-color: #dc2626;
  background: #fff5f5;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}
#study-partner-form .study-partners-phone-field.is-invalid .study-partners-phone {
  border-radius: 12px;
  padding: 0.35rem;
  border: 2px solid #dc2626;
  box-sizing: border-box;
}
#study-partner-form label.study-partners-accept.is-invalid {
  outline: 2px solid #dc2626;
  outline-offset: 3px;
  border-radius: 10px;
  background: #fff5f5;
}

/* — Success panel — */
#company-form .lead-success.is-on {
  scroll-margin-top: 6rem;
  outline: none;
}

#company-form .lead-success-msg {
  margin: 0;
  font-weight: 700;
}

#company-form .lead-success-id {
  margin: 0.55rem 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
}

#company-form .lead-success-id[hidden],
#company-form .lead-success-note[hidden] {
  display: none !important;
}

#company-form .lead-success-id strong {
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

#company-form .lead-success-id small {
  color: #166534;
  opacity: 0.8;
  overflow-wrap: anywhere;
}

#company-form .lead-success-note {
  margin: 0.55rem 0 0;
}

#company-form .lead-success-note a {
  font-weight: 800;
  text-decoration: underline;
  color: #0b4fd6;
}

/* — Option cards (work / residence · inside China) — */
#company-form .lead-opt-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

#company-form .lead-opt-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "mark body"
    "mark price";
  gap: 0.35rem 0.85rem;
  align-items: start;
  margin: 0;
  padding: 1rem 1.05rem;
  min-height: 7.5rem;
  border: 2px solid var(--line, #d8e0ec);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

#company-form .lead-opt-card:hover {
  border-color: #8eb6ff;
  transform: translateY(-1px);
}

#company-form .lead-opt-card input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

#company-form .lead-opt-card:has(input:focus-visible) {
  outline: 3px solid rgba(26, 109, 255, 0.45);
  outline-offset: 2px;
}

#company-form .lead-opt-mark {
  grid-area: mark;
  width: 1.65rem;
  height: 1.65rem;
  margin-top: 0.1rem;
  border-radius: 8px;
  border: 2px solid #b8c4d6;
  background: #fff;
  display: grid;
  place-items: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}

#company-form .lead-opt-card.is-on .lead-opt-mark,
#company-form .lead-opt-card:has(input:checked) .lead-opt-mark {
  background: var(--blue, #1a6dff);
  border-color: var(--blue, #1a6dff);
}

#company-form .lead-opt-card.is-on .lead-opt-mark::after,
#company-form .lead-opt-card:has(input:checked) .lead-opt-mark::after {
  content: "";
  width: 0.5rem;
  height: 0.85rem;
  margin-top: -0.12rem;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

#company-form .lead-opt-card.is-on,
#company-form .lead-opt-card:has(input:checked) {
  border-color: var(--blue, #1a6dff);
  background: #f2f7ff;
  box-shadow: 0 0 0 4px rgba(26, 109, 255, 0.1);
}

#company-form .lead-opt-body {
  grid-area: body;
  min-width: 0;
}

#company-form .lead-opt-body strong {
  display: block;
  color: var(--navy, #0b1f3a);
  font-size: 1rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

#company-form .lead-opt-desc {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted, #64748b);
  font-size: 0.82rem;
  font-weight: 450;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

#company-form .lead-opt-state {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  background: #eef1f6;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 700;
}

#company-form .lead-opt-card.is-on .lead-opt-state {
  background: var(--blue-soft, #e8f1ff);
  color: var(--blue-deep, #0b4fd6);
}

#company-form .lead-opt-price {
  grid-area: price;
  justify-self: start;
  color: var(--navy, #0b1f3a);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

#company-form .lead-opt-price.is-desk {
  padding: 0.3rem 0.6rem;
  border: 1px solid #f2d28b;
  border-radius: 10px;
  background: #fff8e8;
  color: #92560a;
  font-size: 0.82rem;
  font-weight: 700;
}

@media (max-width: 639px) {
  #company-form .lead-opt-cards {
    grid-template-columns: 1fr;
  }
}

/* — Nationality picker (EN / AR / 中文) — */
#company-form .field-nation .nation-combo {
  position: relative;
}

#company-form .field-nation #nationality-search {
  width: 100%;
  padding-inline-end: 2.6rem;
  text-overflow: ellipsis;
}

#company-form .nation-toggle {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  width: 2.6rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: #64748b;
}

#company-form .nation-toggle::before {
  content: "";
  display: block;
  width: 0.5rem;
  height: 0.5rem;
  margin: -0.15rem auto 0;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

#company-form .field-nation .nation-list {
  max-height: 15rem;
  overscroll-behavior: auto;
  -webkit-overflow-scrolling: touch;
}

#company-form .field-nation .nation-list li[role="option"] {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.15rem 0.75rem;
  min-height: 2.75rem;
  align-content: center;
}

#company-form .field-nation .nation-list li[aria-selected="true"] {
  background: rgba(26, 109, 255, 0.07);
  font-weight: 700;
}

#company-form .nation-alt {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 450;
}

/* — Business activity: multi-select with removable chips — */
#company-form .act-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}

#company-form .act-chips:empty {
  display: none;
}

#company-form .act-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  max-width: 100%;
  padding: 0.25rem 0.3rem 0.25rem 0.7rem;
  padding-inline: 0.7rem 0.3rem;
  border: 1px solid #b7d0ff;
  border-radius: 999px;
  background: var(--blue-soft, #e8f1ff);
  color: var(--blue-deep, #0b4fd6);
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1.3;
}

#company-form .act-chip-text {
  min-width: 0;
  overflow-wrap: anywhere;
}

#company-form .act-chip-main {
  flex: none;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: var(--blue, #1a6dff);
  color: #fff;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

#company-form .act-chip-x {
  flex: none;
  width: 1.55rem;
  height: 1.55rem;
  border: 0;
  border-radius: 999px;
  background: rgba(11, 79, 214, 0.14);
  color: inherit;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

#company-form .act-chip-x:hover,
#company-form .act-chip-x:focus-visible {
  background: #dc2626;
  color: #fff;
  outline: none;
}

#company-form .act-none {
  margin: 0 0 0.45rem;
  color: #64748b;
  font-size: 0.84rem;
}

#company-form .act-none.is-count {
  color: var(--blue-deep, #0b4fd6);
  font-weight: 700;
}

#company-form .act-list {
  max-height: 15rem;
  margin-top: 0.45rem;
  overflow-y: auto;
  overscroll-behavior: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line, #d8e0ec);
  border-radius: 12px;
  background: #fff;
}

#company-form .act-row {
  display: grid;
  grid-template-columns: 1.4rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.5rem 0.85rem;
  border: 0;
  border-bottom: 1px solid #eef1f6;
  background: #fff;
  color: var(--navy, #0b1f3a);
  font: inherit;
  font-size: 0.9rem;
  line-height: 1.35;
  text-align: start;
  cursor: pointer;
}

#company-form .act-row:last-child {
  border-bottom: 0;
}

#company-form .act-row:hover,
#company-form .act-row:focus-visible {
  background: rgba(26, 109, 255, 0.07);
  outline: none;
}

#company-form .act-row-mark {
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 6px;
  border: 2px solid #b8c4d6;
  background: #fff;
  display: grid;
  place-items: center;
}

#company-form .act-row.is-picked {
  background: var(--blue-soft, #e8f1ff);
  font-weight: 650;
}

#company-form .act-row.is-picked .act-row-mark {
  background: var(--blue, #1a6dff);
  border-color: var(--blue, #1a6dff);
}

#company-form .act-row.is-picked .act-row-mark::after {
  content: "";
  width: 0.3rem;
  height: 0.55rem;
  margin-top: -0.1rem;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

#company-form .act-row-name {
  min-width: 0;
  overflow-wrap: anywhere;
}

#company-form .act-row-code {
  color: #64748b;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

#company-form .act-empty {
  margin: 0;
  padding: 0.85rem;
  color: #64748b;
  font-size: 0.88rem;
}

@media (max-width: 639px) {
  #company-form .act-list {
    max-height: 13rem;
  }
}

/* co10 — keep radios/checkboxes small and beside their text inside the pay / accountant choice rows */
#company-form .lead-pay-choice input[type="radio"],
#company-form .lead-pay-choice input[type="checkbox"] {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  margin: 0.15rem 0 0;
  accent-color: var(--blue, #1a6dff);
}

/* prog1 — Program first (required), then Major — wide tiers only (never crush phones) */
@container studysearch (min-width: 769px) {
  body.page-study-portal .study-portal-search-col .study-ctrip-bar {
    grid-template-columns:
      minmax(0, 0.95fr) minmax(0, 1.45fr) minmax(0, 0.95fr) minmax(0, 0.95fr) minmax(0, 0.85fr) minmax(0, 0.85fr) !important;
    grid-template-areas:
      "program major major major major major"
      "prov nation age intake room go" !important;
  }
}
@media (min-width: 769px) {
  body.page-study-portal .study-portal-search-col .study-ctrip-bar {
    grid-template-columns:
      minmax(0, 0.95fr) minmax(0, 1.45fr) minmax(0, 0.95fr) minmax(0, 0.95fr) minmax(0, 0.85fr) minmax(0, 0.85fr) !important;
    grid-template-areas:
      "program major major major major major"
      "prov nation age intake room go" !important;
  }
}
body.page-study-portal .study-portal-search-col .study-ctrip-cell-program {
  border-inline-end: 1px solid rgba(11, 31, 58, 0.08) !important;
}
body.page-study-portal .study-portal-search-col .study-ctrip-cell-program select.is-invalid {
  outline: 2px solid #d9480f;
  outline-offset: 1px;
}
@container studysearch (min-width: 1000px) {
  body.page-study-portal .study-portal-search-col .study-ctrip-bar {
    grid-template-columns:
      minmax(0, 0.9fr) minmax(0, 1.35fr) minmax(0, 0.95fr) minmax(0, 0.95fr) minmax(0, 0.8fr) minmax(0, 0.85fr) minmax(118px, 132px) !important;
    grid-template-areas:
      "program major major major major major go"
      "prov nation age intake room room go" !important;
  }
}
@media (max-width: 980px) and (min-width: 769px) {
  body.page-study-portal .study-portal-search-col .study-ctrip-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-areas:
      "program major"
      "prov nation"
      "intake age"
      "room room"
      "go go" !important;
  }
}
@container studysearch (max-width: 479px) {
  body.page-study-portal .study-portal-search-col .study-ctrip-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-areas:
      "program program"
      "major major"
      "prov nation"
      "intake age"
      "room room"
      "go go" !important;
  }
}
@container studysearch (max-width: 359px) {
  body.page-study-portal .study-portal-search-col .study-ctrip-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-areas:
      "program program"
      "major major"
      "prov prov"
      "nation nation"
      "intake age"
      "room room"
      "go go" !important;
  }
}
@container studysearch (max-width: 299px) {
  body.page-study-portal .study-portal-search-col .study-ctrip-bar {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas:
      "program"
      "major"
      "prov"
      "nation"
      "age"
      "intake"
      "room"
      "go" !important;
  }
}

/* prog1-phone — viewport overrides (prog1 base had 6 cols on all widths) */
@media (max-width: 768px) {
  body.page-study-portal .study-portal-search-col .study-ctrip-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-areas:
      "program program"
      "major major"
      "prov nation"
      "intake age"
      "room room"
      "go go" !important;
  }
  body.page-study-portal .study-portal-search-col .study-ctrip-cell {
    border-inline-end: 0 !important;
    border-bottom: 1px solid rgba(11, 31, 58, 0.08) !important;
    padding: 0.42rem 0.62rem !important;
    min-height: 44px;
  }
  body.page-study-portal .study-portal-search-col .study-ctrip-cell-prov,
  body.page-study-portal .study-portal-search-col .study-ctrip-cell-age {
    border-inline-end: 1px solid rgba(11, 31, 58, 0.08) !important;
  }
  body.page-study-portal .study-portal-search-col .study-ctrip-cell > span:first-child {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    font-size: 0.62rem !important;
  }
  body.page-study-portal .study-portal-search-col .study-ctrip-cell input,
  body.page-study-portal .study-portal-search-col .study-ctrip-cell select {
    white-space: normal !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  body.page-study-portal .study-portal-search-col .study-ctrip-bar > .study-ctrip-go {
    flex-direction: row !important;
    gap: 0.35rem !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 46px !important;
    margin: 0 !important;
    padding: 0.55rem 0.85rem !important;
    border-radius: 0 0 11px 11px !important;
    grid-column: 1 / -1 !important;
  }
}
@media (max-width: 480px) {
  body.page-study-portal .study-portal-search-col .study-ctrip-bar {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas:
      "program"
      "major"
      "prov"
      "nation"
      "age"
      "intake"
      "room"
      "go" !important;
  }
  body.page-study-portal .study-portal-search-col .study-ctrip-cell-prov,
  body.page-study-portal .study-portal-search-col .study-ctrip-cell-age {
    border-inline-end: 0 !important;
  }
}
