/* ==========================================================================
   FindingUni — Modern theme (FlexJobs-inspired system)
   One brand hue (teal-blue, two depths), one hot accent (orange) reserved for
   primary actions, slate text, pale tints, flat surfaces, 4px radius.
   Loaded after style.css / footer.css; only overrides.
   ========================================================================== */
:root {
  --fj-deep: #004F6D; --fj-deep-2: #003B52; --fj-brand: #007CAD; --fj-brand-dark: #005F86;
  --fj-tint: #F1F9FE; --fj-tint-2: #E8EDF2; --fj-orange: #FF532A; --fj-orange-hover: #FF6843;
  --fj-text: #343A40; --fj-muted: #6B7280; --fj-border: #DCE3EA; --fj-page: #FFFFFF; --fj-section: #F8F9FA;
  --blue: var(--fj-brand); --blue-dark: var(--fj-deep); --navy: var(--fj-deep); --orange: var(--fj-orange); --orange2: var(--fj-orange-hover);
  --text: var(--fj-text); --muted: var(--fj-muted); --border: var(--fj-border); --bg: var(--fj-page); --card: #fff; --card-border: var(--fj-border);
  --radius: 4px; --r: 4px; --r-lg: 6px;
  --font-display: "Outfit", "Open Sans", system-ui, sans-serif; --font-body: "Open Sans", system-ui, sans-serif;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .05); --shadow-md: 0 6px 18px rgba(0, 79, 109, .10); --ease: cubic-bezier(.2, .7, .2, 1);
}
html, body { overflow-x: clip; }
html { -webkit-font-smoothing: antialiased; }
body { background: var(--fj-page); color: var(--fj-text); font-family: var(--font-body); font-size: 16px; line-height: 1.6; }
h1, h2, h3, h4, .results-title, .section-header h2, .section-header-center h2, .cta-content h2, .filter-title, .program-title, .uni-name, .metric strong, .ft-cta-copy h2 {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; color: var(--fj-text);
}
a { color: var(--fj-brand); }
:focus-visible { outline: 2px solid var(--fj-brand); outline-offset: 2px; }
::selection { background: rgba(0, 124, 173, .18); }

/* ---------- Header: white bar + teal utility bar ---------- */
.site-header { background: #fff; border-bottom: 0 !important; box-shadow: none; }
.site-header .container.nav { padding: 10px 0; gap: 16px; }
.site-header .logo { flex: 0 0 auto; }
.site-header .nav-links { flex: 0 1 auto; justify-content: flex-end; }
.site-header .nav-links > a, .site-header .nav-dropdown-trigger { white-space: nowrap; }
.logo-img { height: 38px; }
.fj-tagline { display: none; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--fj-deep); font-weight: 600; white-space: nowrap; }
.fj-tagline b { color: var(--fj-orange); font-weight: 700; }
@media (min-width: 1200px) { .fj-tagline { display: inline-block; } }
.fj-search { display: none; flex: 0 1 380px; min-width: 220px; max-width: 460px; height: 44px; }
.fj-search input { flex: 1; min-width: 0; height: 44px; border: 1px solid var(--fj-border); border-right: 0; border-radius: 4px 0 0 4px; background: var(--fj-tint); padding: 0 14px; font: 15px var(--font-body); color: var(--fj-text); }
.fj-search input:focus { outline: none; border-color: var(--fj-brand); background: #fff; }
.fj-search button { width: 46px; height: 44px; border: 0; border-radius: 0 4px 4px 0; background: var(--fj-orange); color: #fff; display: grid; place-items: center; cursor: pointer; }
.fj-search button:hover { background: var(--fj-orange-hover); }
@media (min-width: 900px) { .fj-search { display: flex; } }
.nav-links { font-size: 15px; font-weight: 600; color: var(--fj-text); gap: 2px; }
.nav-links > a, .nav-dropdown-trigger { border-radius: 4px; padding: 8px 12px; color: var(--fj-text); }
.nav-links > a:hover, .nav-item-dropdown:hover .nav-dropdown-trigger { background: var(--fj-tint); color: var(--fj-brand); }
.dropdown-menu, .mega-menu, .degree-dropdown__menu { border-radius: 6px; border: 1px solid var(--fj-border); box-shadow: var(--shadow-md); }
.mega-menu-title { font-family: var(--font-display); color: var(--fj-deep); font-weight: 600; }
.degree-dropdown__trigger { border: 1px solid var(--fj-border); border-radius: 4px; background: #fff; color: var(--fj-text); font-weight: 600; padding: 8px 12px; }
.degree-dropdown__trigger:hover { border-color: var(--fj-brand); }
.degree-dropdown__option.is-active { background: var(--fj-tint); color: var(--fj-brand); }
.nav-profile-link, .nav-profile-dropdown .nav-dropdown-trigger { border-radius: 4px; }
.fj-auth { display: flex; align-items: center; gap: 14px; margin-left: 6px; flex: 0 0 auto; }
.fj-auth a { white-space: nowrap; }
.fj-auth .fj-login { color: var(--fj-text); font-weight: 600; font-size: 15px; text-decoration: none; }
.fj-auth .fj-login:hover { color: var(--fj-brand); }
.fj-auth .fj-signup { background: var(--fj-orange); color: #fff; font-weight: 700; font-size: 15px; padding: 10px 18px; border-radius: 4px; text-decoration: none; }
.fj-auth .fj-signup:hover { background: var(--fj-orange-hover); }
.fj-utility { background: var(--fj-deep); }
.fj-utility .container { display: flex; align-items: center; gap: 4px; height: 44px; overflow-x: auto; scrollbar-width: none; }
.fj-utility .container::-webkit-scrollbar { display: none; }
.fj-utility a { color: #fff; font-size: 15px; font-weight: 600; text-decoration: none; padding: 0 14px; height: 44px; display: inline-flex; align-items: center; white-space: nowrap; border-bottom: 3px solid transparent; }
.fj-utility a:hover, .fj-utility a.is-active { background: rgba(255, 255, 255, .08); border-bottom-color: var(--fj-orange); }
.fj-utility a:first-child { padding-left: 0; }

/* ---------- Buttons ---------- */
.button { border-radius: 4px; font-weight: 700; font-family: var(--font-body); letter-spacing: 0; transition: background .15s, transform .15s var(--ease); }
.button-primary, .search-button, .filter-apply-btn, .mobile-filter-btn, .cta-actions .button-primary, .search-card .button-primary, .newsletter-button {
  background: var(--fj-orange) !important; background-image: none !important; color: #fff !important; border-color: transparent !important; box-shadow: none !important;
}
.button-primary:hover, .search-button:hover, .filter-apply-btn:hover, .mobile-filter-btn:hover, .cta-actions .button-primary:hover { background: var(--fj-orange-hover) !important; transform: none; }
.button-outline { border: 1px solid var(--fj-brand); color: var(--fj-brand); background: #fff; }
.button-outline:hover { background: var(--fj-tint); }
.button-outline-white { border-radius: 4px; }

/* ---------- Hero: light, deep-teal headline, orange numbers ---------- */
.hero { padding: 64px 0 120px; color: var(--fj-text); background-color: var(--fj-tint) !important; background-size: 52% auto !important; background-position: right center !important; background-repeat: no-repeat; }
.hero::before { background: linear-gradient(90deg, var(--fj-tint) 0%, var(--fj-tint) 50%, rgba(241, 249, 254, .92) 60%, rgba(241, 249, 254, .35) 82%, rgba(241, 249, 254, .05) 100%); }
@media (max-width: 900px) { .hero { background-size: cover !important; background-position: center !important; } .hero::before { background: rgba(241, 249, 254, .93); } }
.hero::after { content: none; }
.hero-grid { grid-template-columns: 1.2fr .8fr; }
.eyebrow { background: #fff; color: var(--fj-deep); border: 1px solid var(--fj-border); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; padding: 6px 12px; border-radius: 4px; }
.hero h1 { color: var(--fj-deep); font-size: clamp(34px, 4.4vw, 55px); font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; }
.hero h1 .fj-num, .hero h1 em { color: var(--fj-orange); font-style: normal; }
.hero p { color: var(--fj-text); font-size: 18px; max-width: 58ch; }
.search-card { background: #fff; border: 1px solid var(--fj-border); border-radius: 6px; padding: 10px; box-shadow: var(--shadow-md); }
.search-card .select-search__trigger, .search-card .select { border-radius: 4px; border-color: var(--fj-border); background: var(--fj-tint); font-weight: 600; }
.search-card .select-search__trigger:hover { border-color: var(--fj-brand); background: #fff; }
.search-card .select-search__panel { border-radius: 6px; border: 1px solid var(--fj-border); box-shadow: var(--shadow-md); }
.search-card .button-primary { border-radius: 4px; min-height: 46px; }
.chip-row { margin-top: 16px; gap: 8px; }
.pill-light { background: #fff; color: var(--fj-deep); border: 1px solid var(--fj-border); border-radius: 999px; font-weight: 600; }
a.pill-light:hover { border-color: var(--fj-brand); color: var(--fj-brand); }

/* ---------- Metrics strip ---------- */
.metrics { margin-top: -56px; }
.metrics .card { border-radius: 6px; border: 1px solid var(--fj-border); box-shadow: var(--shadow-md); padding: 22px 28px; }
.metric-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--fj-tint); color: var(--fj-brand); }
.metric strong { font-size: 24px; color: var(--fj-deep); }
.metric .muted { color: var(--fj-muted); font-size: 13.5px; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-bg-white { background: #fff; }
.section-bg-gray, main.search-page { background: var(--fj-section) !important; }
.section-header { margin-bottom: 36px; }
.section-header h2, .section-header-center h2 { font-size: clamp(28px, 3.2vw, 45px); font-weight: 600; color: var(--fj-text); }
.section-header h2 .fj-mark { position: relative; color: var(--fj-deep); }
.section-subtitle { color: var(--fj-muted); font-size: 17px; }
.link-small { color: var(--fj-brand); font-weight: 700; }
.link-small:hover { color: var(--fj-brand-dark); text-decoration: underline; }

/* Disciplines grid */
.disciplines-subjects-grid { gap: 12px; }
.discipline-subject-card { border: 1px solid var(--fj-border) !important; border-radius: 6px; background: #fff; padding: 24px 14px; box-shadow: none; transition: border-color .15s, box-shadow .15s; }
.discipline-subject-card:hover { border-color: var(--fj-brand) !important; box-shadow: var(--shadow-md); transform: none; }
.discipline-subject-icon { width: 54px; height: 54px; border-radius: 6px; background: var(--fj-tint); display: grid; place-items: center; }
.discipline-subject-icon img, .discipline-subject-icon svg { width: 28px; height: 28px; }
.discipline-subject-title { font-weight: 600; font-size: 14.5px; color: var(--fj-text); }

/* ---------- Cards: flat, hairline, blue title links ---------- */
.card { background: #fff; border: 1px solid var(--fj-border); border-radius: 6px; box-shadow: none; }
.program-card { border-radius: 6px !important; border: 1px solid var(--fj-border) !important; box-shadow: none !important; padding: 20px 22px !important; position: relative; transition: border-color .15s, box-shadow .15s; }
.program-card::before { content: none !important; }
.program-card:hover { transform: none !important; border-color: var(--fj-brand) !important; box-shadow: var(--shadow-md) !important; }
.program-title { color: var(--fj-brand) !important; font-size: 20px !important; font-weight: 600 !important; line-height: 1.3 !important; }
.program-card:hover .program-title { text-decoration: underline; }
.program-card > div:nth-of-type(2) { margin: 6px 0 14px !important; }
.program-card > div:nth-of-type(2), .program-card .muted { color: var(--fj-muted) !important; font-size: 13px !important; text-transform: none !important; letter-spacing: 0 !important; font-weight: 500; }
.program-university { font-size: 15px !important; font-weight: 700 !important; color: var(--fj-text); }
.program-card p[style*="font-size: 16px"] { font-family: var(--font-display); font-size: 20px !important; font-weight: 600 !important; color: var(--fj-text) !important; }
.program-card p[style*="font-size: 14px"] { display: inline-block; background: var(--fj-tint-2); color: var(--fj-text) !important; font-size: 12.5px !important; font-weight: 600 !important; padding: 3px 10px; border-radius: 4px; }
.program-card .link-small, .scholarship-card .link-small, .uni-card .link-small {
  display: inline-flex !important; align-items: center; gap: 6px; margin-top: 16px !important; padding: 9px 16px; border-radius: 4px;
  background: var(--fj-orange) !important; color: #fff !important; border: 0 !important; font-size: 14px; font-weight: 700; box-shadow: none;
}
.program-card .link-small::after { content: '→'; }
.program-card:hover .link-small, .scholarship-card:hover .link-small { background: var(--fj-orange-hover) !important; }
.save-toggle-plain, .program-favorite { width: 36px; height: 36px; border-radius: 4px; color: var(--fj-muted); }
.save-toggle-plain:hover, .program-favorite:hover { background: var(--fj-tint); color: var(--fj-brand); }
.uni-card { background: #fff; border: 1px solid var(--fj-border); border-radius: 6px; box-shadow: none; }
.uni-card:hover { transform: none; border-color: var(--fj-brand); box-shadow: var(--shadow-md); background: #fff; }
.uni-list-link { padding: 16px 18px; gap: 16px; }
.uni-name { color: var(--fj-brand); font-size: 16px; }
.scholarship-card { border: 1px solid var(--fj-border); border-radius: 6px; box-shadow: none; }
.scholarship-card:hover { transform: none; border-color: var(--fj-brand); box-shadow: var(--shadow-md); }
.scholarship-card--featured .scholarship-card-image::after { content: none; }
.scholarship-card h3, .scholarship-card .scholarship-title { color: var(--fj-brand); }

/* University logos: framed, legible */
.program-logo-wrapper, .program-h-logo-wrapper, .uni-logo-wrapper, .uni-h-logo-wrapper, .uni-v1-logo, .uni-v2-logo, .uni-v3-logo {
  width: 72px !important; height: 72px !important; min-width: 72px; flex-shrink: 0; display: grid !important; place-items: center; padding: 6px !important; box-sizing: border-box;
  background: #fff !important; border: 1px solid var(--fj-border) !important; border-radius: 6px !important; overflow: hidden;
}
.program-logo-wrapper img, .program-h-logo-wrapper img, .uni-logo-wrapper img, .uni-h-logo-wrapper img, .uni-v1-logo img, .uni-v2-logo img, .uni-v3-logo img, .program-logo, .program-h-logo, .uni-logo, .uni-h-logo {
  width: 100% !important; height: 100% !important; max-width: 100% !important; max-height: 100% !important; object-fit: contain !important; border-radius: 0 !important; display: block;
}
@media (max-width: 640px) { .program-logo-wrapper, .program-h-logo-wrapper, .uni-logo-wrapper, .uni-h-logo-wrapper { width: 60px !important; height: 60px !important; min-width: 60px; } }

/* Destinations */
.country-slide { border-radius: 6px; overflow: hidden; position: relative; }
.country-slide img { transition: transform .4s var(--ease); }
.country-slide:hover img { transform: scale(1.04); }
.country-slide-name { position: absolute; left: 12px; bottom: 12px; z-index: 1; background: #fff; color: var(--fj-deep); padding: 6px 12px; border-radius: 4px; font-weight: 700; font-size: 14px; }
.countries-slider:not(.slick-initialized) { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
.countries-slider:not(.slick-initialized) .country-slide { flex: 0 0 min(300px, 78vw); scroll-snap-align: start; }

/* Partners / "as seen" strip */
.partners-section { background: #fff; }
.partner-logo { border: 0; padding: 12px; background: transparent; box-shadow: none; }
.partner-logo img { filter: grayscale(1); opacity: .65; }
.partner-logo:hover img { filter: none; opacity: 1; }

/* CTA band */
.cta-section { background: var(--fj-deep); }
.cta-content h2 { color: #fff; font-size: clamp(30px, 3.4vw, 45px); }
.cta-image { border-radius: 6px; box-shadow: var(--shadow-md); }
.cta-image img { border-radius: 6px; }
.cta-stat strong { color: var(--fj-orange); font-family: var(--font-display); }

/* ---------- Search page ---------- */
main.search-page { padding-top: 28px; }
.search-layout > *, .search-results, .results-header { min-width: 0; }
.results-title { overflow-wrap: anywhere; font-size: 28px; color: var(--fj-text); }
.breadcrumbs { overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.breadcrumbs::-webkit-scrollbar { display: none; }
.search-filters .card, .filter-card { border-radius: 6px; border: 1px solid var(--fj-border); box-shadow: none; background: #fff; }
.filter-section-header { padding: 12px 16px; }
.filter-section-title { font-weight: 700; color: var(--fj-text); }
.filter-section-title svg { color: var(--fj-brand); }
.filter-search-input { border-radius: 4px; background: var(--fj-tint); }
.filter-search-input:focus { background: #fff; border-color: var(--fj-brand); }
.filter-checkbox { font-size: 14px; }
.filter-checkbox input[type="checkbox"] { accent-color: var(--fj-brand); }
.selected-filter-chip, .selected-filter, .selected-filters .chip, .pill { background: var(--fj-tint) !important; color: var(--fj-deep) !important; border: 1px solid #BFDDEC !important; border-radius: 4px; font-weight: 600; }
.search-input-wrapper { display: flex; }
.search-input { border: 1px solid var(--fj-border); border-radius: 4px; padding: 12px 130px 12px 44px; background: var(--fj-tint); box-shadow: none; font-family: var(--font-body); }
.search-input:focus { border-color: var(--fj-brand); background: #fff; box-shadow: none; }
.search-button { border-radius: 4px; padding: 9px 16px; font-family: var(--font-body); }
.search-tabs { display: inline-flex !important; width: max-content; max-width: 100%; gap: 0; padding: 0; background: transparent !important; border-radius: 0; border-bottom: 1px solid var(--fj-border) !important; margin: 10px 0 20px; }
.tab-button { padding: 10px 18px !important; border-radius: 0 !important; margin: 0 0 -1px !important; border-bottom: 3px solid transparent !important; color: var(--fj-muted) !important; font-weight: 600; background: transparent !important; box-shadow: none !important; font-family: var(--font-body); }
.tab-button:hover { color: var(--fj-brand) !important; }
.tab-button.tab-active { color: var(--fj-deep) !important; font-weight: 700 !important; border-bottom-color: var(--fj-orange) !important; }
.tab-button.tab-active::after { content: none; }
.results-grid { gap: 12px; }
.results-grid > .frontend-ad, .search-results > .frontend-ad, .results-grid > .google-auto-placed { margin: 0 !important; }
.load-more-btn { border-radius: 4px; padding: 12px 32px; }
.no-results { border: 1px dashed var(--fj-border); border-radius: 6px; background: #fff; }
.mobile-filter-btn { border-radius: 4px; }
@media (max-width: 640px) {
  .search-tabs { display: flex !important; width: 100%; }
  .tab-button { flex: 1; justify-content: center; min-width: 0; padding: 10px 6px !important; font-size: 14px; }
  .search-input { padding-right: 112px; }
  .search-button { padding: 9px 12px; font-size: 13px; }
  .results-title { font-size: 24px; }
  .hero h1 { font-size: 34px; }
  .hero { padding: 48px 0 100px; }
  .hero-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* Detail-page tabs: FlexJobs sub-nav style */
.tab-navigation, .scholarship-tabs-nav, .scholarship-sub-tabs { display: inline-flex !important; flex-wrap: wrap; gap: 0; padding: 0; width: auto; max-width: 100%; background: transparent !important; border: 0 !important; border-bottom: 1px solid var(--fj-border) !important; border-radius: 0 !important; box-shadow: none !important; }
.tab-navigation-wrapper { border-bottom: 0 !important; background: transparent !important; }
.tab-btn, .scholarship-tabs-nav button, .scholarship-sub-tabs button { position: relative; padding: 10px 18px !important; border-radius: 0 !important; border: 0 !important; border-bottom: 3px solid transparent !important; margin-bottom: -1px; background: transparent !important; color: var(--fj-muted) !important; font-family: var(--font-body); font-weight: 600 !important; font-size: 14.5px; box-shadow: none !important; }
.tab-btn:hover, .scholarship-tabs-nav button:hover { color: var(--fj-brand) !important; }
.tab-btn.active, .tab-btn.is-active, .tab-btn[aria-selected="true"], .scholarship-tabs-nav button.active, .scholarship-sub-tabs button.active { color: var(--fj-deep) !important; font-weight: 700 !important; border-bottom-color: var(--fj-orange) !important; }
.tab-btn.active::after { content: none; }

/* Collection blocks */
.collection-intro, .collection-outro .rich-content { color: var(--fj-text) !important; font-size: 16px; line-height: 1.7 !important; }
.collection-outro { border-top: 1px solid var(--fj-border); padding-top: 24px; margin-top: 32px !important; }
.collection-outro h2 { font-size: 24px !important; font-weight: 600 !important; margin: 24px 0 12px !important; }
.collection-outro details { border: 1px solid var(--fj-border) !important; border-radius: 6px !important; padding: 14px 18px !important; background: #fff !important; box-shadow: none; }
.collection-outro details[open] { border-color: var(--fj-brand) !important; }
.collection-outro summary { font-weight: 700 !important; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--fj-deep); }
.collection-outro summary::-webkit-details-marker { display: none; }
.collection-outro summary::after { content: '+'; font-size: 20px; line-height: 1; color: var(--fj-orange); }
.collection-outro details[open] summary::after { content: '–'; }
.collection-related a { border-radius: 4px !important; border: 1px solid var(--fj-border) !important; background: #fff !important; color: var(--fj-brand) !important; font-weight: 600; padding: 8px 14px !important; box-shadow: none; }
.collection-related a:hover { border-color: var(--fj-brand) !important; background: var(--fj-tint) !important; transform: none; }
.collection-related a span { color: var(--fj-muted) !important; }

/* ---------- Ads: contained, centred, collapse when empty ---------- */
.google-auto-placed { margin-left: auto; margin-right: auto; }
.google-auto-placed { margin-top: 24px !important; margin-bottom: 24px !important; }
.search-results .google-auto-placed, article .google-auto-placed { max-width: 100%; }
.frontend-ad, .frontend-ad-code { text-align: center; }
/* An unfilled unit has no height of its own; the slot around it is what collapses. */
.frontend-ad:has(> .frontend-ad-code > ins.adsbygoogle[data-ad-status="unfilled"]), .frontend-ad:has(> .frontend-ad-code > ins.adsbygoogle[data-ad-status="unfill-optimized"]), .frontend-ad:has(> .frontend-ad-code:empty), .google-auto-placed:has(> ins[data-ad-status="unfilled"]) { display: none !important; margin: 0 !important; }
.program-card .google-anno-sc, .uni-card .google-anno-sc, .scholarship-card .google-anno-sc, .results-grid .google-anno-sc, .results-header .google-anno-sc, .collection-outro .google-anno-sc, .ft .google-anno-sc, .hero .google-anno-sc { display: none !important; }

/* ---------- Share rail ---------- */
.fj-share { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 14px 0 6px; }
.fj-share a, .fj-share button { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; border: 0; cursor: pointer; text-decoration: none; transition: transform .15s var(--ease), opacity .15s; }
.fj-share a:hover, .fj-share button:hover { transform: translateY(-2px); opacity: .92; }
.fj-share svg { width: 18px; height: 18px; fill: currentColor; }
.fj-share .fb { background: #1877F2; } .fj-share .x { background: #111; } .fj-share .ln { background: #0A66C2; } .fj-share .wa { background: #25D366; } .fj-share .pin { background: #E60023; } .fj-share .mail { background: var(--fj-deep); } .fj-share .copy { background: var(--fj-brand); }
.fj-share .fj-share-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--fj-muted); margin-right: 4px; }
@media (min-width: 1300px) {
  .fj-share--rail { position: fixed; left: max(12px, calc((100vw - 1200px) / 2 - 64px)); top: 42%; flex-direction: column; margin: 0; z-index: 50; }
  .fj-share--rail .fj-share-label { display: none; }
}

/* ---------- Signup popup ---------- */
.fj-pop { position: fixed; inset: 0; z-index: 12000; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(0, 59, 82, .55); }
.fj-pop.is-open { display: flex; }
.fj-pop__card { width: min(560px, 100%); background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 30px 60px rgba(0, 0, 0, .3); display: grid; grid-template-columns: 1fr; }
.fj-pop__head { background: var(--fj-deep); color: #fff; padding: 22px 26px; position: relative; }
.fj-pop__head h3 { color: #fff; font-family: var(--font-display); font-size: 24px; font-weight: 600; margin: 0 0 4px; }
.fj-pop__head p { margin: 0; color: rgba(255, 255, 255, .85); font-size: 14.5px; }
.fj-pop__close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 20px; cursor: pointer; }
.fj-pop__body { padding: 22px 26px 26px; }
.fj-pop__body ul { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.fj-pop__body li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--fj-text); }
.fj-pop__body li::before { content: '✓'; color: var(--fj-orange); font-weight: 800; flex: 0 0 auto; }
.fj-pop__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.fj-pop__actions .button-primary { flex: 1; justify-content: center; }
.fj-pop__actions .button-outline { flex: 1; justify-content: center; }
.fj-pop__fine { margin: 12px 0 0; font-size: 12.5px; color: var(--fj-muted); }

/* ---------- Footer (three decks, teal) ---------- */
.ft { position: relative; color: #D7E6EE; font-family: var(--font-body); overflow: hidden; margin-top: 56px; }
.ft-deck { position: relative; }
.ft-deck > .container { position: relative; }
.ft-deck-1 { background: var(--fj-tint); color: var(--fj-text); border-top: 1px solid var(--fj-border); }
.ft-deck-1-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; padding: 48px 0; }
.ft-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--fj-brand); margin-bottom: 12px; }
.ft-kicker::before { content: ''; width: 22px; height: 3px; background: var(--fj-orange); border-radius: 2px; }
.ft-cta-copy h2 { color: var(--fj-deep); font-size: clamp(26px, 3vw, 40px); margin: 0 0 8px; line-height: 1.12; }
.ft-cta-copy p { color: var(--fj-text); font-size: 16.5px; max-width: 52ch; margin: 0 0 20px; }
.ft-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.ft-cta-actions .button-ghost { background: #fff; color: var(--fj-brand); border: 1px solid var(--fj-brand); border-radius: 4px; }
.ft-cta-actions .button-ghost:hover { background: var(--fj-tint); }
.ft-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ft-stat { background: #fff; border: 1px solid var(--fj-border); border-radius: 6px; padding: 16px 18px; }
.ft-stat strong { display: block; font-family: var(--font-display); font-size: 26px; font-weight: 600; color: var(--fj-deep); line-height: 1.1; }
.ft-stat span { font-size: 13px; color: var(--fj-muted); font-weight: 600; }
.ft-deck-2 { background: var(--fj-deep); }
.ft-main { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 40px; padding: 52px 0 44px; }
.ft-brand img { display: block; width: min(190px, 100%); max-height: 60px; object-fit: contain; object-position: left; margin-bottom: 16px; background: #fff; padding: 8px 12px; border-radius: 4px; }
.ft-brand-name { font-family: var(--font-display); font-size: 26px; font-weight: 600; color: #fff; display: inline-block; margin-bottom: 12px; }
.ft-brand p { color: #B9D3DF; font-size: 15px; line-height: 1.7; margin: 0 0 18px; max-width: 40ch; }
.ft-col h3 { color: #fff; font-size: 15px; font-weight: 700; margin: 0 0 16px; font-family: var(--font-display); letter-spacing: 0; text-transform: none; }
.ft-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.ft-col a { color: #D7E6EE; text-decoration: none; font-size: 14.5px; display: inline-block; }
.ft-col a:hover { color: #fff; text-decoration: underline; }
.ft-col a small { color: #8FB4C5; font-size: 12.5px; margin-left: 4px; }
.ft-col a::before { content: none; }
.ft-social { display: flex; gap: 10px; }
.ft-social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--fj-deep); background: #fff; border: 0; transition: background .15s, transform .15s var(--ease); }
.ft-social a:hover { background: var(--fj-orange); color: #fff; transform: translateY(-2px); }
.ft-social svg { width: 17px; height: 17px; fill: currentColor; }
.ft-deck-3 { background: var(--fj-deep-2); }
.ft-bottom { padding: 18px 0 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.ft-copy, .ft-note, .ft-credit { font-size: 13px; color: #9CBFCF; margin: 0; }
.ft-credit a { color: #fff; text-decoration: none; font-weight: 600; }
.ft-credit a:hover { text-decoration: underline; }
.ft-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.ft-legal a { color: #D7E6EE; font-size: 13px; text-decoration: none; }
.ft-legal a:hover { color: #fff; text-decoration: underline; }
.ft .back-to-top-container { position: fixed !important; right: 22px; bottom: 22px; left: auto !important; top: auto !important; transform: none !important; z-index: 900; }
.ft .back-to-top { background: var(--fj-orange) !important; border: 0; width: 44px; height: 44px; box-shadow: var(--shadow-md); }
@media (max-width: 1100px) { .ft-main { grid-template-columns: 1fr 1fr 1fr; } .ft-brand { grid-column: 1 / -1; } .ft-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 900px) { .ft-deck-1-inner { grid-template-columns: 1fr; padding: 36px 0; } }
@media (max-width: 640px) { .ft-main { grid-template-columns: 1fr 1fr; gap: 26px; } .ft-stats { grid-template-columns: 1fr 1fr; } .ft-bottom { flex-direction: column; align-items: flex-start; } .ft .back-to-top-container { right: 14px; bottom: 14px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }


/* ---------- Header v2: nav lives in the teal bar (FlexJobs layout) ---------- */
@media (min-width: 900px) {
  .site-header .container.nav > .nav-links { display: none !important; }
}
.site-header .container.nav { flex-wrap: nowrap; }
.fj-logo { height: 40px; width: auto; display: block; }
.fj-utility .container { gap: 0; }
.fj-utility .nav-links { display: flex; flex: 1; gap: 0; color: #fff; font-size: 15px; justify-content: flex-start; }
.fj-utility .nav-links > a, .fj-utility .nav-dropdown-trigger { color: #fff; border-radius: 0; padding: 0 14px; height: 44px; display: inline-flex; align-items: center; border-bottom: 3px solid transparent; font-weight: 600; }
.fj-utility .nav-links > a:hover, .fj-utility .nav-item-dropdown:hover .nav-dropdown-trigger { background: rgba(255, 255, 255, .08); color: #fff; border-bottom-color: var(--fj-orange); }
.fj-utility .nav-dropdown-trigger::after { filter: invert(1); opacity: .9; }
.fj-utility .nav-links > a:first-child, .fj-utility .nav-item-dropdown:first-child .nav-dropdown-trigger { padding-left: 0; }
.fj-utility .dropdown-menu, .fj-utility .mega-menu { color: var(--fj-text); }
.fj-utility .dropdown-list a, .fj-utility .mega-menu-list a { color: var(--fj-text); }
.fj-utility .degree-switcher--mobile, .fj-utility .nav-mobile-footer { display: none !important; }
.fj-utility .fj-quick { margin-left: auto; display: flex; gap: 0; }
.fj-utility .fj-quick a { padding: 0 12px; font-weight: 600; font-size: 14px; opacity: .92; }
@media (max-width: 899px) {
  .fj-utility { display: none; }
  .fj-tagline, .fj-search { display: none !important; }
  .fj-auth { gap: 8px; margin-left: auto; }
  .fj-auth .fj-login { display: none; }
  .fj-auth .fj-signup { padding: 8px 12px; font-size: 14px; }
  .site-header .mobile-menu-btn { display: flex !important; margin-left: 6px; }
  .fj-logo { height: 34px; }
}

.fj-logo { height: 46px; }
@media (max-width: 899px) { .fj-logo { height: 38px; } }

/* ---------- Utility-bar menu must stay a normal row on desktop (classic CSS turns .nav-links into a drawer) ---------- */
@media (min-width: 900px) {
  .fj-utility .nav-links { position: static !important; transform: none !important; display: flex !important; width: auto !important; height: auto !important; max-height: none !important; background: transparent !important; box-shadow: none !important; padding: 0 !important; overflow: visible !important; opacity: 1 !important; visibility: visible !important; flex-direction: row !important; align-items: center; }
  .fj-utility .nav-links > * { display: inline-flex !important; }
  .fj-utility .nav-item-dropdown { position: relative; }
  .fj-utility .dropdown-menu, .fj-utility .mega-menu { top: 100%; }
  .site-header .mobile-menu-btn { display: none !important; }
}

/* ---------- Content tables (blog / program / scholarship bodies) ---------- */
.html-content table, .rich-content table, .blog-content table, .program-content table, .content table {
  width: 100%; border-collapse: separate; border-spacing: 0; margin: 22px 0; font-size: 15px; line-height: 1.5;
  border: 1px solid var(--fj-border); border-radius: 6px; overflow: hidden; background: #fff;
}
.html-content table thead th, .rich-content table thead th, .blog-content table thead th, .content table thead th,
.html-content table tr:first-child th, .rich-content table tr:first-child th, .blog-content table tr:first-child th {
  background: var(--fj-deep); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 14px; letter-spacing: .01em; text-align: left; padding: 12px 16px;
}
.html-content table td, .rich-content table td, .blog-content table td, .content table td,
.html-content table th, .rich-content table th, .blog-content table th { padding: 12px 16px; border-bottom: 1px solid var(--fj-border); vertical-align: top; }
.html-content table tr:last-child td, .rich-content table tr:last-child td, .blog-content table tr:last-child td { border-bottom: 0; }
.html-content table tbody tr:nth-child(even) td, .rich-content table tbody tr:nth-child(even) td, .blog-content table tbody tr:nth-child(even) td { background: var(--fj-section); }
.html-content table tbody tr:hover td, .rich-content table tbody tr:hover td, .blog-content table tbody tr:hover td { background: var(--fj-tint); }
.html-content table td:first-child, .rich-content table td:first-child, .blog-content table td:first-child { font-weight: 700; color: var(--fj-deep); white-space: nowrap; }
.html-content table a, .rich-content table a, .blog-content table a { color: var(--fj-brand); font-weight: 600; }
.html-content .table-wrap, .rich-content .table-wrap { overflow-x: auto; }
@media (max-width: 640px) {
  .html-content table, .rich-content table, .blog-content table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* ---------- Subjects block ---------- */
.disciplines-subjects-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.discipline-subject-card {
  flex-direction: row !important; align-items: center !important; justify-content: flex-start !important; gap: 14px !important; text-align: left;
  padding: 16px 18px !important; border: 1px solid var(--fj-border) !important; border-radius: 6px; background: #fff; position: relative;
}
.discipline-subject-card::after { content: '→'; margin-left: auto; color: var(--fj-brand); font-weight: 700; opacity: 0; transform: translateX(-6px); transition: opacity .15s, transform .15s var(--ease); }
.discipline-subject-card:hover { border-color: var(--fj-brand) !important; background: var(--fj-tint); box-shadow: none; }
.discipline-subject-card:hover::after { opacity: 1; transform: translateX(0); }
.discipline-subject-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--fj-tint); flex: 0 0 auto; transition: background .15s; }
.discipline-subject-card:hover .discipline-subject-icon { background: #fff; transform: none; }
.discipline-subject-icon img:not(.tx-flag) { width: 24px; height: 24px; filter: hue-rotate(195deg) saturate(.85) brightness(.85); }
.discipline-subject-icon svg { width: 24px; height: 24px; color: var(--fj-brand); }
.discipline-subject-title { font-size: 15px; font-weight: 600; color: var(--fj-text); line-height: 1.3; }
.section-header--centered { text-align: center; }
.section-header--centered h2 { font-size: clamp(26px, 3vw, 40px); }
@media (max-width: 1024px) { .disciplines-subjects-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .disciplines-subjects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .discipline-subject-card { padding: 12px 14px !important; gap: 10px !important; } .discipline-subject-icon { width: 38px; height: 38px; } .discipline-subject-title { font-size: 13.5px; } }

/* Rank-style first columns shrink to fit instead of taking a third of the table */
.html-content table td:first-child, .rich-content table td:first-child, .blog-content table td:first-child, .html-content table th:first-child, .blog-content table th:first-child { width: 1%; }
.html-content table th:first-child, .blog-content table th:first-child { white-space: nowrap; }

/* ---------- Blog "Top 10" components: flat, teal, orange for #1 ---------- */
.blog-items-toc { border: 1px solid var(--fj-border) !important; border-radius: 6px !important; background: var(--fj-tint) !important; padding: 1.5rem 1.6rem !important; }
.blog-items-toc-title { font-family: var(--font-display); font-weight: 600 !important; font-size: 1.35rem !important; color: var(--fj-deep) !important; }
.blog-items-toc-link { color: var(--fj-text) !important; font-weight: 600; font-size: 15.5px !important; padding: 4px 6px; margin: -4px -6px; border-radius: 4px; transition: background .15s, color .15s; }
.blog-items-toc-link:hover { background: #fff; color: var(--fj-brand) !important; }
.blog-items-toc-badge, .blog-item-badge {
  background: var(--fj-deep) !important; background-image: none !important; color: #fff !important;
  border-radius: 4px !important; min-width: 1.85rem !important; height: 1.85rem !important; font-family: var(--font-display); font-weight: 600 !important; font-size: .9rem !important;
}
/* TOC badges: orange on hover and for the item currently in view */
.blog-items-toc-link:hover .blog-items-toc-badge, .blog-items-toc-link.is-current .blog-items-toc-badge, .blog-item-card.is-current .blog-item-badge { background: var(--fj-orange) !important; }
.blog-items-toc-link.is-current { background: #fff; color: var(--fj-brand) !important; }
.blog-items-toc-badge, .blog-item-badge { transition: background .2s; }
.blog-item-card { border: 1px solid var(--fj-border) !important; border-radius: 6px !important; background: #fff !important; box-shadow: none !important; padding: 1.4rem 1.6rem !important; margin: 1.25rem 0 !important; transition: border-color .15s; }
.blog-item-card:hover { border-color: var(--fj-brand) !important; }
.blog-item-header { display: flex; align-items: center; gap: .8rem; }
.blog-item-badge { width: 2.2rem !important; height: 2.2rem !important; font-size: 1rem !important; }
.blog-item-title { font-family: var(--font-display); font-weight: 600 !important; font-size: 1.45rem !important; color: var(--fj-deep) !important; margin: 0 !important; line-height: 1.25; }
.blog-item-slogan { color: var(--fj-brand) !important; font-weight: 600 !important; font-size: 15.5px !important; margin: .5rem 0 .75rem !important; }
.blog-item-view { background: var(--fj-orange) !important; background-image: none !important; color: #fff !important; border-radius: 4px !important; text-transform: none !important; letter-spacing: 0 !important; font-size: 14px !important; padding: .7rem 1.1rem !important; }
.blog-item-view:hover { background: var(--fj-orange-hover) !important; }
.blog-item-card .html-content ul li::marker, .blog-content li::marker { color: var(--fj-brand); }

/* Blog sidebar cards */
.sidebar-cta { background: var(--fj-deep) !important; background-image: none !important; border-radius: 6px !important; box-shadow: none !important; }
.sidebar-cta .button, .sidebar-cta a.button { background: var(--fj-orange) !important; color: #fff !important; border-radius: 4px; }
.newsletter-card { background: var(--fj-tint) !important; background-image: none !important; border: 1px solid var(--fj-border) !important; border-radius: 6px !important; }
.newsletter-title, .sidebar-card-title, .related-title { font-family: var(--font-display); font-weight: 600 !important; color: var(--fj-deep) !important; }
.sidebar-card, .related-card, .quick-facts { border: 1px solid var(--fj-border) !important; border-radius: 6px !important; box-shadow: none !important; background: #fff; }
.blog-content h2, .blog-content h3, .html-content h2, .html-content h3 { font-family: var(--font-display); font-weight: 600; color: var(--fj-deep); letter-spacing: -0.01em; }
.blog-content h2 { font-size: 1.75rem; margin-top: 2.2rem; }
.blog-content blockquote, .html-content blockquote { border-left: 4px solid var(--fj-orange); background: var(--fj-tint); margin: 1.5rem 0; padding: 1rem 1.25rem; border-radius: 0 6px 6px 0; color: var(--fj-text); }
.blog-tag, .blog-tags a, .tag-chip { background: var(--fj-tint) !important; color: var(--fj-deep) !important; border: 1px solid #BFDDEC !important; border-radius: 4px !important; font-weight: 600; }
@media (max-width: 640px) { .blog-items-toc-grid { grid-template-columns: 1fr !important; } .blog-item-title { font-size: 1.2rem !important; } }

/* Logos: absolute-fit inside the frame so tall/wide marks can never overflow */
.program-logo-wrapper, .program-h-logo-wrapper, .uni-logo-wrapper, .uni-h-logo-wrapper, .uni-v1-logo, .uni-v2-logo, .uni-v3-logo { position: relative !important; display: block !important; padding: 0 !important; }
.program-logo-wrapper img, .program-h-logo-wrapper img, .uni-logo-wrapper img, .uni-h-logo-wrapper img, .uni-v1-logo img, .uni-v2-logo img, .uni-v3-logo img, .program-logo, .program-h-logo, .uni-logo, .uni-h-logo {
  position: absolute !important; inset: 7px !important; width: calc(100% - 14px) !important; height: calc(100% - 14px) !important; max-width: none !important; max-height: none !important; object-fit: contain !important; object-position: center !important;
}
/* Footer brand: white SVG straight on the teal, no white box */
.ft-brand img { background: transparent !important; padding: 0 !important; box-shadow: none !important; border-radius: 0 !important; width: min(230px, 100%) !important; max-height: 52px !important; }

/* ---------- FAQ accordion (blog / detail pages) ---------- */
.fu-faq-title { font-family: var(--font-display); font-weight: 600 !important; color: var(--fj-deep) !important; font-size: 1.6rem !important; }
.fu-faq-wrap { border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 0 !important; display: grid; gap: 10px; }
.fu-faq-item { border: 1px solid var(--fj-border) !important; border-radius: 6px !important; background: #fff !important; overflow: hidden; transition: border-color .15s; }
.fu-faq-item:hover, .fu-faq-item.active { border-color: var(--fj-brand) !important; }
.fu-faq-question { padding: 16px 18px !important; font-family: var(--font-body); font-weight: 700 !important; font-size: 16px !important; color: var(--fj-deep) !important; line-height: 1.4; display: flex; align-items: center; justify-content: space-between; gap: 14px; cursor: pointer; background: #fff !important; border: 0 !important; width: 100%; text-align: left; }
.fu-faq-item.active .fu-faq-question { background: var(--fj-tint) !important; }
.fu-faq-icon { width: 26px !important; height: 26px !important; flex: 0 0 auto; border-radius: 50%; background: var(--fj-tint); color: var(--fj-orange) !important; padding: 5px; stroke-width: 2.5 !important; transition: transform .2s var(--ease), background .15s; }
.fu-faq-item.active .fu-faq-icon { background: var(--fj-orange); color: #fff !important; transform: rotate(180deg); }
.fu-faq-answer-content { padding: 4px 18px 18px !important; color: var(--fj-text); font-size: 15.5px; line-height: 1.7; border-top: 1px solid var(--fj-border); }
.fu-faq-answer-content p:first-child { margin-top: 12px; }

/* Footer stats: never squeeze to 4 narrow columns */
.ft-stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important; }
.ft-stat span { display: block; overflow-wrap: anywhere; }
@media (max-width: 1100px) { .ft-stats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }

/* ---------- Responsive audit fixes (pass 1) ---------- */
/* Content tables: let columns size to content; never force a 1% first column; scroll only as a last resort */
.html-content table col, .blog-content table col, .rich-content table col { width: auto !important; }
.html-content table, .blog-content table, .rich-content table { table-layout: auto !important; width: 100% !important; max-width: 100%; }
.html-content table td:first-child, .rich-content table td:first-child, .blog-content table td:first-child, .html-content table th:first-child, .blog-content table th:first-child { width: auto !important; white-space: nowrap; }
.html-content table td p, .blog-content table td p, .html-content table th p, .blog-content table th p { margin: 0 !important; }
@media (max-width: 640px) {
  .html-content table, .rich-content table, .blog-content table { display: table !important; white-space: normal !important; font-size: 13.5px; }
  .html-content table td, .blog-content table td, .html-content table th, .blog-content table th { padding: 9px 10px !important; }
  .html-content table td:first-child, .blog-content table td:first-child { white-space: normal; }
  .blog-content, .html-content { overflow-x: auto; }
}
/* Hero search card: two columns before it gets cramped */
@media (max-width: 1100px) {
  .search-card { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .search-card .button-primary { grid-column: 1 / -1; }
}
@media (max-width: 640px) { .search-card { grid-template-columns: 1fr !important; } }
/* Carousel controls stay inside the viewport; dots get a real tap target */
.countries-slider-shell .slick-prev, .countries-slider-shell .slick-next, .slick-prev, .slick-next { z-index: 5; }
.countries-slider .slick-next, .countries-slider-desktop-controls .slick-next, .countries-slider-mobile-controls .slick-next { right: 8px !important; left: auto !important; }
.countries-slider .slick-prev, .countries-slider-mobile-controls .slick-prev { left: 8px !important; }
.slick-dots li, .slick-dots li button { width: 24px !important; height: 24px !important; }
.slick-dots li button::before { line-height: 24px !important; width: 24px !important; height: 24px !important; }
.cta-section, .hero, .partners-section { overflow: hidden; }
/* Tap targets on small screens */
@media (max-width: 640px) {
  .ft-col a { display: block; padding: 6px 0; }
  .ft-col ul { gap: 2px; }
  .breadcrumbs a, .breadcrumb a, nav[aria-label="Breadcrumb"] a, nav[aria-label="breadcrumb"] a, .blog-breadcrumbs a, .program-breadcrumb a, .scholarship-breadcrumb a, .uni-breadcrumb a { display: inline-block; padding: 6px 2px; }
  .link-small, .read-more, .blog-item-view, .filter-clear, .selected-filters button, .clear-filters, .explore-all, .view-all, .uni-h-view, .program-university a { display: inline-flex; align-items: center; min-height: 36px; }
  .fu-faq-question { min-height: 48px; }
}

/* Headline highlight word (tagline treatment) */
.hero h1 em.fj-hl, .eyebrow em.fj-hl, .section-header h2 em.fj-hl { color: var(--fj-orange); font-style: normal; font-weight: inherit; }
.eyebrow em.fj-hl { font-weight: 800; }

/* ---------- Responsive audit fixes (pass 2) ---------- */
.countries-section .slick-arrow { width: 36px !important; height: 36px !important; z-index: 6; }
.countries-section .slick-arrow.slick-next { right: 8px !important; left: auto !important; }
.countries-section .slick-arrow.slick-prev { left: 8px !important; right: auto !important; }
.countries-slider-desktop-controls { right: 16px !important; position: static !important; transform: none !important; display: flex; justify-content: flex-end; gap: 8px; }
.countries-slider-desktop-controls .slick-arrow { position: static !important; transform: none !important; }
.countries-section-header { padding-right: 0 !important; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
@media (max-width: 640px) {
  main a:not(.button):not(.tab-button):not(.tab-btn):not(.card):not([class*="-card"]):not(.pill):not(.pill-light):not(.country-slide):not(.discipline-subject-card):not(.fj-signup):not(.fj-login) { padding-top: 5px; padding-bottom: 5px; }
  .ft-credit a, .ft-legal a, .ft-copy a { display: inline-block; padding: 8px 0; }
  .search-filters button, .selected-filters button, [class*="clear-filter"], [class*="filter-clear"] { min-height: 36px; padding: 6px 10px; }
}

/* Scholarship one-flow sections */
.scholarship-section-title { font-family: var(--font-display); font-weight: 600 !important; color: var(--fj-deep) !important; font-size: 1.6rem !important; border-bottom-color: var(--fj-border) !important; }
.scholarship-section-title::after { background: var(--fj-orange) !important; }
.scholarship-section-count { color: var(--fj-muted) !important; }
.coverage-highlight { background: var(--fj-tint) !important; border: 1px solid var(--fj-border) !important; border-radius: 6px !important; }
.coverage-highlight-value { color: var(--fj-deep) !important; font-family: var(--font-display); }

/* Homepage cards: identical image boxes for scholarships and blog tiles */
.destination-grid { align-items: stretch; }
.destination-grid > .card, .destination-grid > .scholarship-card, .destination-card { display: flex; flex-direction: column; height: 100%; }
.destination-image, .scholarship-card--featured .scholarship-card-image, .scholarship-card .scholarship-card-image {
  aspect-ratio: 16 / 10 !important; height: auto !important; min-height: 0 !important; overflow: hidden; background: var(--fj-tint); flex: 0 0 auto;
}
.destination-image img, .scholarship-card-image img { width: 100% !important; height: 100% !important; object-fit: cover !important; display: block; }
.destination-body, .scholarship-card-body { flex: 1 1 auto; display: flex; flex-direction: column; }
.destination-body .link-arrow, .scholarship-card-body .link-small { margin-top: auto; }

/* Coverage block was dark-with-white-text; on the pale tint the label must be dark */
.coverage-highlight-label { color: var(--fj-brand) !important; opacity: 1 !important; }
.coverage-highlight * { color: var(--fj-deep); }
.coverage-highlight .coverage-highlight-value { color: var(--fj-deep) !important; }

/* ---------- Brand-colour accents (no stray greens), badge contrast ---------- */
.coverage-details-list li::before { background: var(--fj-tint) !important; color: var(--fj-brand) !important; }
.highlights-list li svg, .tuition-notes li svg, .scholarship-sub-pane li svg, .benefit-list li svg { stroke: var(--fj-brand) !important; color: var(--fj-brand) !important; }
.scholarship-sub-pane [style*="#f0fdf4"], .scholarship-sub-pane [style*="#f0f4ff"] { background: var(--fj-tint) !important; border: 1px solid var(--fj-border); border-radius: 6px !important; }
.scholarship-sub-pane [style*="#059669"], .scholarship-sub-pane [style*="#1a3a6b"] { color: var(--fj-deep) !important; }
.reviews-stars-large, .review-stars, .rating-stars { color: #E9A23B !important; }
.rating-badge { background: var(--fj-deep) !important; color: #fff !important; }
.program-hero-badge, .scholarship-hero-badge, .uni-hero-badge { background: var(--fj-deep) !important; color: #fff !important; border: 1px solid rgba(255, 255, 255, .25) !important; border-radius: 4px !important; }
.button-outline-white { background: rgba(255, 255, 255, .12) !important; color: #fff !important; border: 1px solid rgba(255, 255, 255, .75) !important; }
.button-outline-white:hover { background: #fff !important; color: var(--fj-deep) !important; }

/* ---------- Featured images: one Discover-friendly 16:9 box everywhere ---------- */
.blog-hero-image { aspect-ratio: 16 / 9; max-height: 560px; background: var(--fj-tint); border-radius: 6px !important; }
.blog-hero-image img { width: 100% !important; height: 100% !important; object-fit: cover !important; }
.blog-card-image, .destination-image, .scholarship-card-image, .blog-tile-image, .related-card-image {
  aspect-ratio: 16 / 9 !important; height: auto !important; min-height: 0 !important; max-height: none !important; overflow: hidden; background: var(--fj-tint);
}
.blog-card-image img, .destination-image img, .scholarship-card-image img, .blog-tile-image img, .related-card-image img { width: 100% !important; height: 100% !important; object-fit: cover !important; display: block; }

/* Country tiles: label is a pill, not a full-width bar */
.country-slide-name { right: auto !important; width: auto !important; max-width: calc(100% - 24px); left: 12px !important; bottom: 12px !important; padding: 6px 12px !important; }
/* Blog tiles: 3:2 box, faces kept in frame */
.destination-image { aspect-ratio: 3 / 2 !important; background-position: center 35% !important; background-size: cover !important; }
.blog-card-image, .related-card-image { aspect-ratio: 3 / 2 !important; }
.blog-card-image img, .related-card-image img { object-position: center 35% !important; }
.scholarship-card-image { aspect-ratio: 16 / 9 !important; }
.scholarship-card-image img { object-position: center 40% !important; }

/* Share strip: sits under the hero as a content-width row; rail on wide screens */
.fj-share-strip { width: min(1200px, 92vw); margin: 18px auto 0; }
.fj-share-strip .fj-share { margin: 0; }
@media (min-width: 1300px) { .fj-share-strip { height: 0; margin: 0 auto; overflow: visible; } }

/* Share: always a side rail */
.fj-share, .fj-share--rail { position: fixed !important; left: 12px; top: 45%; transform: translateY(-50%); flex-direction: column; gap: 8px; margin: 0 !important; z-index: 60; }
.fj-share .fj-share-label { display: none; }
.fj-share-strip { height: 0 !important; margin: 0 !important; overflow: visible; }
@media (min-width: 1300px) { .fj-share, .fj-share--rail { left: max(12px, calc((100vw - 1200px) / 2 - 64px)); } }
@media (max-width: 767px) { .fj-share, .fj-share--rail { left: 8px; gap: 6px; } .fj-share a, .fj-share button { width: 34px; height: 34px; } .fj-share svg { width: 15px; height: 15px; } }

/* Share rail: left gutter only when there is a gutter; otherwise right edge, away from content */
@media (max-width: 1299px) {
  .fj-share, .fj-share--rail { left: auto !important; right: 10px; top: 42%; gap: 6px; }
  .fj-share a, .fj-share button { width: 36px; height: 36px; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
  .fj-share svg { width: 16px; height: 16px; }
}

/* Generated cards are 1200×630 — show them whole, never cropped */
.scholarship-card-image, .program-card-image, .featured-card-image { aspect-ratio: 1200 / 630 !important; }
.scholarship-card-image img, .program-card-image img { object-fit: cover !important; object-position: center !important; }
.blog-hero-image.is-card, .scholarship-hero-image { aspect-ratio: 1200 / 630 !important; }
/* card ratio must beat the earlier two-class rule */
.scholarship-card--featured .scholarship-card-image, .scholarship-card .scholarship-card-image, .destination-grid .scholarship-card-image { aspect-ratio: 1200 / 630 !important; height: auto !important; }

/* Utility bar must not clip its dropdowns */
.fj-utility, .fj-utility .container, .fj-utility .nav-links { overflow: visible !important; }
.fj-utility .nav-item-dropdown .dropdown-menu, .fj-utility .nav-item-dropdown .mega-menu { z-index: 1200; margin-top: 0; }
.fj-utility .nav-item-dropdown:hover .dropdown-menu, .fj-utility .nav-item-dropdown.is-open .dropdown-menu, .fj-utility .nav-item-dropdown:hover .mega-menu { opacity: 1; visibility: visible; pointer-events: auto; }
.fj-utility .dropdown-menu, .fj-utility .mega-menu { background: #fff; color: var(--fj-text); }
.fj-utility .mega-menu-title { color: var(--fj-deep); }

/* No ads inside the filter sidebar (Google auto-placed units land there on scroll) */
.search-filters .google-auto-placed, .search-filters .frontend-ad, .search-filters ins.adsbygoogle, .filter-card ins.adsbygoogle, aside.search-filters > ins { display: none !important; }

/* Program sidebar "Relevant Scholarships": titles only, no thumbnails */
.sidebar-scholarship-thumb { display: none !important; }
.sidebar-scholarship-list { display: grid; gap: 0; }
.sidebar-scholarship-item { display: block !important; padding: 12px 0 12px 16px !important; border-bottom: 1px solid var(--fj-border); position: relative; margin: 0 !important; }
.sidebar-scholarship-item:last-child { border-bottom: 0; }
.sidebar-scholarship-item::before { content: ''; position: absolute; left: 0; top: 19px; width: 6px; height: 6px; border-radius: 50%; background: var(--fj-orange); }
.sidebar-scholarship-item h4, .sidebar-scholarship-item .sidebar-scholarship-title, .sidebar-scholarship-item strong { font-family: var(--font-display); font-size: 15px !important; font-weight: 600 !important; color: var(--fj-brand) !important; line-height: 1.35; margin: 0 0 2px !important; }
.sidebar-scholarship-item:hover h4, .sidebar-scholarship-item:hover .sidebar-scholarship-title { text-decoration: underline; }
.sidebar-scholarship-item p, .sidebar-scholarship-item span, .sidebar-scholarship-item small { font-size: 13px !important; color: var(--fj-muted) !important; margin: 0 !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Share: below 1300px a compact bottom-centre pill bar, never over the sidebar */
@media (max-width: 1299px) {
  .fj-share, .fj-share--rail { left: 50% !important; right: auto !important; top: auto !important; bottom: 14px; transform: translateX(-50%); flex-direction: row; gap: 8px; background: #fff; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--fj-border); box-shadow: 0 10px 24px rgba(0, 79, 109, .18); }
  .fj-share a, .fj-share button { width: 34px; height: 34px; box-shadow: none; }
  .fj-share .fj-share-label { display: inline; font-size: 11px; margin: 0 4px 0 2px; }
}

/* Dropdown / mega-menu items: flat tint hover, no curved underline */
.mega-menu-list a, .dropdown-list a, .fj-utility .mega-menu a, .fj-utility .dropdown-menu a {
  border-bottom: 0 !important; border-radius: 4px !important; height: auto !important; padding: 8px 12px !important; display: block !important;
  color: var(--fj-text) !important; background: transparent !important; text-decoration: none !important; box-shadow: none !important;
}
.mega-menu-list a::after, .dropdown-list a::after { content: none !important; }
.mega-menu-list a:hover, .dropdown-list a:hover, .fj-utility .mega-menu a:hover, .fj-utility .dropdown-menu a:hover { background: var(--fj-tint) !important; color: var(--fj-brand) !important; }
.fj-utility .mega-menu-title, .fj-utility .mega-menu-title a { color: var(--fj-deep) !important; font-weight: 700 !important; }
.mega-menu hr, .mega-menu .divider { border-color: var(--fj-border); }

/* Mega menu: anchored to its trigger's left edge, capped to the viewport, columns wrap */
.fj-utility .nav-item-dropdown .mega-menu, .fj-utility .nav-item-dropdown .dropdown-menu {
  left: 0; right: auto !important; transform: none !important; margin-top: 0 !important;
  width: max-content !important; min-width: 260px; max-width: min(860px, calc(100vw - 32px)) !important; overflow: visible !important;
  padding: 18px 20px !important; box-sizing: border-box;
}
.fj-utility .mega-menu-content { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)) !important; gap: 8px 28px !important; width: auto !important; }
.fj-utility .mega-menu-column { min-width: 0; }
.fj-utility .mega-menu-list li, .fj-utility .mega-menu-list a { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; }
.fj-utility .mega-menu-title { border-bottom: 1px solid var(--fj-border); padding-bottom: 8px; margin-bottom: 8px; }
/* Menu must sit above the sticky header contents and page content */
.fj-utility { position: relative; z-index: 1150; }
.fj-utility .nav-item-dropdown .mega-menu, .fj-utility .nav-item-dropdown .dropdown-menu { z-index: 1300 !important; }

.fj-utility .nav-item-dropdown.is-open .mega-menu, .fj-utility .nav-item-dropdown.is-open .dropdown-menu { opacity: 1 !important; visibility: visible !important; pointer-events: auto !important; }

/* Mobile share: one slim full-width bar at the bottom, never two rows */
@media (max-width: 767px) {
  .fj-share, .fj-share--rail { left: 10px !important; right: 10px !important; bottom: 10px !important; top: auto !important; transform: none !important; width: auto; flex-wrap: nowrap !important; justify-content: space-between; gap: 4px; padding: 6px 10px; border-radius: 14px; }
  .fj-share .fj-share-label { display: none !important; }
  .fj-share a, .fj-share button { width: 34px !important; height: 34px !important; flex: 0 0 auto; }
  .fj-share svg { width: 15px; height: 15px; }
  .ft .back-to-top-container { bottom: 66px !important; right: 12px !important; }
  .ft .back-to-top { width: 40px !important; height: 40px !important; }
}

/* Leading universities marquee (trust strip under the hero metrics) */
.fj-leading { padding: 26px 0 10px; background: #fff; overflow: hidden; }
.fj-leading-title { text-align: center; margin: 0 0 18px; font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--fj-muted); }
.fj-leading-track { display: flex; width: max-content; gap: 0; animation: fj-marquee 55s linear infinite; }
.fj-leading-track:hover { animation-play-state: paused; }
.fj-leading-row { display: flex; align-items: center; gap: 40px; padding: 0 20px; }
.fj-leading-item { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--fj-text); white-space: nowrap; }
.fj-leading-logo { width: 54px; height: 54px; border-radius: 10px; border: 1px solid var(--fj-border); background: #fff; display: grid; place-items: center; overflow: hidden; }
.fj-leading-logo img { width: 42px; height: 42px; object-fit: contain; }
.fj-leading-name { font-family: var(--font-display); font-weight: 600; font-size: 19px; color: var(--fj-text); }
.fj-leading-rank { font-size: 12px; font-weight: 700; color: var(--fj-brand); background: var(--fj-tint); border-radius: 4px; padding: 3px 7px; }
.fj-leading-item:hover .fj-leading-name { color: var(--fj-brand); }
@keyframes fj-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .fj-leading-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } .fj-leading-row[aria-hidden] { display: none; } }
@media (max-width: 640px) { .fj-leading-name { font-size: 16px; } .fj-leading-logo { width: 44px; height: 44px; } .fj-leading-row { gap: 26px; } }

/* Results pagination */
.fu-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 0 8px; padding-top: 16px; border-top: 1px solid var(--fj-border); }
.fu-pagination-summary { font-size: 13.5px; color: var(--fj-muted); }
.fu-pagination-list { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.fu-page { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 12px; border: 1px solid var(--fj-border); border-radius: 4px; background: #fff; color: var(--fj-text); font-weight: 600; font-size: 14px; text-decoration: none; transition: border-color .15s, background .15s, color .15s; }
.fu-page:hover { border-color: var(--fj-brand); color: var(--fj-brand); }
.fu-page.is-current { background: var(--fj-brand); border-color: var(--fj-brand); color: #fff; }
.fu-page.is-disabled { opacity: .45; pointer-events: none; }
.fu-page-gap { color: var(--fj-muted); padding: 0 4px; }
@media (max-width: 640px) { .fu-pagination { justify-content: center; } .fu-page span { display: none; } .fu-page-prev, .fu-page-next { padding: 0 10px; } }
.fj-leading-logo.is-broken img { display: none; }
.fj-leading-logo.is-broken::after { content: attr(data-initials); font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--fj-brand); }

/* Subject click → small degree chooser */
.fu-degree-pop { position: absolute; z-index: 60; width: 260px; background: #fff; border: 1px solid var(--fj-border); border-radius: 6px; box-shadow: 0 12px 32px rgba(0,79,109,.16); padding: 12px 12px 10px; }
.fu-degree-pop-title { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--fj-deep); }
.fu-degree-pop-sub { font-size: 12.5px; color: var(--fj-muted); margin: 2px 0 10px; }
.fu-degree-pop-options { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.fu-degree-pop-options a { display: block; text-align: center; padding: 8px 6px; border: 1px solid var(--fj-border); border-radius: 4px; font-weight: 600; font-size: 13.5px; color: var(--fj-text); text-decoration: none; }
.fu-degree-pop-options a:hover { border-color: var(--fj-brand); color: var(--fj-brand); background: var(--fj-tint); }
.fu-degree-pop-options a.is-all { grid-column: 1 / -1; background: var(--fj-orange); border-color: var(--fj-orange); color: #fff; }
.fu-degree-pop-options a.is-all:hover { background: #e8471f; border-color: #e8471f; color: #fff; }

/* Rankings pages + home block */
.rk-hero { background: var(--fj-tint); padding: 34px 0 26px; border-bottom: 1px solid var(--fj-border); }
.rk-hero h1 { font-family: var(--font-display); font-size: clamp(26px, 3.4vw, 40px); color: var(--fj-deep); margin: 8px 0 10px; }
.rk-crumbs { font-size: 13px; color: var(--fj-muted); display: flex; gap: 6px; flex-wrap: wrap; }
.rk-sep { color: var(--fj-muted); }
.rk-lead { max-width: 78ch; color: var(--fj-text); line-height: 1.6; font-size: 15.5px; }
.rk-stats { display: flex; flex-wrap: wrap; gap: 18px 34px; margin-top: 16px; }
.rk-stats div { display: grid; }
.rk-stats strong { font-family: var(--font-display); font-size: 24px; color: var(--fj-brand); }
.rk-stats span { font-size: 12.5px; color: var(--fj-muted); }
.rk-body { padding: 24px 0 40px; }
.rk-tabs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 18px; }
.rk-tab { padding: 8px 14px; border: 1px solid var(--fj-border); border-radius: 4px; font-weight: 600; font-size: 14px; color: var(--fj-text); text-decoration: none; background: #fff; }
.rk-tab:hover { border-color: var(--fj-brand); color: var(--fj-brand); }
.rk-tab.is-active { background: var(--fj-brand); border-color: var(--fj-brand); color: #fff; }
.rk-more, .rk-home-more { position: relative; }
.rk-more summary, .rk-home-more summary { list-style: none; cursor: pointer; padding: 8px 14px; border: 1px dashed var(--fj-border); border-radius: 4px; font-weight: 600; font-size: 14px; color: var(--fj-brand); background: #fff; }
.rk-more summary::-webkit-details-marker, .rk-home-more summary::-webkit-details-marker { display: none; }
.rk-more-menu { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; min-width: 260px; max-height: 320px; overflow: auto; background: #fff; border: 1px solid var(--fj-border); border-radius: 6px; box-shadow: 0 12px 32px rgba(0,79,109,.14); padding: 6px; display: grid; }
.rk-more-menu a { padding: 7px 10px; border-radius: 4px; color: var(--fj-text); text-decoration: none; font-size: 14px; display: flex; justify-content: space-between; }
.rk-more-menu a small { color: var(--fj-muted); }
.rk-more-menu a:hover, .rk-more-menu a.is-active { background: var(--fj-tint); color: var(--fj-brand); }
.rk-table-wrap { overflow-x: auto; border: 1px solid var(--fj-border); border-radius: 6px; background: #fff; }
.rk-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.rk-table th { text-align: left; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--fj-muted); padding: 12px 14px; border-bottom: 1px solid var(--fj-border); background: var(--fj-tint); }
.rk-table td { padding: 12px 14px; border-bottom: 1px solid var(--fj-border); vertical-align: middle; }
.rk-table tr:last-child td { border-bottom: 0; }
.rk-table tr:hover td { background: #fbfdff; }
.rk-c-pos { width: 48px; font-family: var(--font-display); font-weight: 700; color: var(--fj-deep); }
.rk-c-num { text-align: right; white-space: nowrap; }
.rk-c-rank { white-space: nowrap; }
.rk-c-cta { text-align: right; }
.rk-uni { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--fj-text); }
.rk-uni strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 15.5px; color: var(--fj-deep); }
.rk-uni small, .rk-home-name small { display: block; color: var(--fj-muted); font-size: 12.5px; }
.rk-uni:hover strong { color: var(--fj-brand); }
.rk-logo { width: 44px; height: 44px; flex: 0 0 44px; border: 1px solid var(--fj-border); border-radius: 8px; background: #fff; display: grid; place-items: center; overflow: hidden; }
.rk-logo img { width: 34px; height: 34px; object-fit: contain; }
.rk-badge { display: inline-block; padding: 4px 9px; border-radius: 4px; font-size: 12.5px; font-weight: 700; background: var(--fj-tint); color: var(--fj-brand); white-space: nowrap; }
.rk-badge-qs { background: var(--fj-orange); color: #fff; }
.rk-badge-the { background: var(--fj-deep); color: #fff; }
.rk-badge-arwu { background: #5b6b7a; color: #fff; }
.rk-badge-listed, .rk-badge-band { background: #eef1f4; color: var(--fj-text); }
.rk-alt { display: block; color: var(--fj-muted); font-size: 11.5px; margin-top: 3px; }
.rk-btn { padding: 6px 12px !important; font-size: 13px !important; }
.rk-links, .rk-method, .rk-unranked { margin-top: 34px; }
.rk-links h2, .rk-method h2, .rk-unranked h2 { font-family: var(--font-display); font-size: 22px; color: var(--fj-deep); margin-bottom: 8px; }
.rk-links p, .rk-method p, .rk-method li { color: var(--fj-text); line-height: 1.65; font-size: 15px; }
.rk-method ol { padding-left: 20px; margin: 8px 0 12px; }
.rk-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.rk-chips a { padding: 8px 12px; border: 1px solid var(--fj-border); border-radius: 4px; background: #fff; color: var(--fj-text); font-size: 14px; font-weight: 600; text-decoration: none; }
.rk-chips a small { color: var(--fj-muted); font-weight: 500; margin-left: 4px; }
.rk-chips a:hover { border-color: var(--fj-brand); color: var(--fj-brand); }
.rk-chips-muted a { font-weight: 500; color: var(--fj-muted); }
.rk-empty { padding: 30px; text-align: center; color: var(--fj-muted); border: 1px dashed var(--fj-border); border-radius: 6px; }
.rk-home-tabs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 16px; }
.rk-home-tab { padding: 8px 16px; border: 1px solid var(--fj-border); border-radius: 4px; font-weight: 600; font-size: 14px; color: var(--fj-text); background: #fff; cursor: pointer; }
.rk-home-tab.is-active { background: var(--fj-brand); border-color: var(--fj-brand); color: #fff; }
.rk-home-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rk-home-item { display: grid; grid-template-columns: 28px 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 14px; background: #fff; border: 1px solid var(--fj-border); border-radius: 6px; text-decoration: none; color: var(--fj-text); transition: border-color .15s; }
.rk-home-item:hover { border-color: var(--fj-brand); }
.rk-home-pos { font-family: var(--font-display); font-weight: 700; color: var(--fj-deep); font-size: 17px; }
.rk-home-name strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 15.5px; color: var(--fj-deep); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rk-home-foot { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
@media (max-width: 760px) { .rk-home-list { grid-template-columns: 1fr; } .rk-home-item { grid-template-columns: 24px 40px minmax(0, 1fr); } .rk-home-item .rk-badge { grid-column: 3; justify-self: start; } }
.uni-rank-badge { margin-top: 6px; font-size: 11.5px; padding: 3px 7px; }

/* Worth-it briefs */
.wi-hero { background: var(--fj-deep); color: #fff; padding: 34px 0 30px; }
.wi-hero .rk-crumbs, .wi-hero .rk-crumbs a, .wi-hero .rk-sep { color: rgba(255,255,255,.75); }
.wi-hero h1 { font-family: var(--font-display); font-size: clamp(26px, 3.4vw, 40px); color: #fff; margin: 6px 0 12px; }
.wi-kicker { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--fj-orange); font-weight: 700; margin: 10px 0 0; }
.wi-verdict { font-size: 17px; line-height: 1.6; max-width: 76ch; color: rgba(255,255,255,.92); }
.wi-hero .rk-stats strong { color: #fff; } .wi-hero .rk-stats span { color: rgba(255,255,255,.7); }
.wi-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; align-items: start; }
.wi-hero-links { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.wi-hero-links .button-outline { border-color: rgba(255,255,255,.5); color: #fff; }
.wi-card { background: #fff; border: 1px solid var(--fj-border); border-radius: 6px; padding: 18px; color: var(--fj-text); }
.wi-card h3 { font-family: var(--font-display); font-size: 16px; color: var(--fj-deep); margin: 0 0 8px; }
.wi-card p { font-size: 14px; color: var(--fj-muted); margin: 0 0 10px; }
.wi-card .button { display: block; text-align: center; margin-top: 8px; }
.wi-card > a:not(.button) { display: block; padding: 7px 0; border-top: 1px solid var(--fj-border); color: var(--fj-brand); font-weight: 600; font-size: 14px; text-decoration: none; }
.wi-card-verdict { text-align: center; }
.wi-grade { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 12px; font-family: var(--font-display); font-weight: 700; font-size: 40px; color: #fff; background: #5b6b7a; }
.wi-grade-A { background: #1a9a5b; } .wi-grade-B { background: #2fa26b; } .wi-grade-C { background: #d9a400; } .wi-grade-D { background: #e2711d; } .wi-grade-F { background: #c0392b; } .wi-grade-none { background: #9aa5b1; }
.wi-grade-word { font-weight: 700; color: var(--fj-deep); margin: 8px 0 4px; }
.wi-big { font-family: var(--font-display); font-size: 34px; color: var(--fj-brand); font-weight: 700; line-height: 1.1; }
.wi-big small { display: block; font-size: 12.5px; color: var(--fj-muted); font-weight: 500; }
.wi-pos { font-size: 12.5px; color: var(--fj-muted); margin-top: 8px; }
.wi-body { padding: 28px 0 44px; }
.wi-cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; }
.wi-main h2 { font-family: var(--font-display); font-size: 22px; color: var(--fj-deep); margin: 26px 0 10px; }
.wi-main h2:first-child { margin-top: 0; }
.wi-main p, .wi-list li { font-size: 15.5px; line-height: 1.65; color: var(--fj-text); }
.wi-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0 18px; }
.wi-stats div { background: var(--fj-tint); border-radius: 6px; padding: 12px 14px; display: grid; gap: 4px; }
.wi-stats span { font-size: 12px; color: var(--fj-muted); } .wi-stats strong { font-family: var(--font-display); font-size: 18px; color: var(--fj-deep); }
.wi-bar { margin: 6px 0 10px; }
.wi-bar-row { display: grid; grid-template-columns: 220px minmax(0, 1fr) 90px; align-items: center; gap: 10px; font-size: 13.5px; margin: 6px 0; }
.wi-bar-row i { display: block; height: 14px; border-radius: 3px; background: var(--fj-brand); }
.wi-bar-row i.is-debt { background: var(--fj-orange); }
.wi-bar-row b { text-align: right; }
.wi-bar-note { font-size: 13px; color: var(--fj-muted); }
.wi-list { padding-left: 20px; margin: 0; } .wi-list li { margin: 6px 0; }
.wi-list-check { list-style: none; padding-left: 0; } .wi-list-check li { padding-left: 26px; position: relative; }
.wi-list-check li::before { content: '✓'; position: absolute; left: 0; color: #1a9a5b; font-weight: 700; }
.wi-table tr.is-self td { background: var(--fj-tint); }
.wi-table a { color: var(--fj-brand); font-weight: 600; text-decoration: none; }
.wi-muted { color: var(--fj-muted); }
.wi-pill { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 6px; font-weight: 700; color: #fff; background: #5b6b7a; font-size: 13px; }
.wi-pill-A { background: #1a9a5b; } .wi-pill-B { background: #2fa26b; } .wi-pill-C { background: #d9a400; } .wi-pill-D { background: #e2711d; } .wi-pill-F { background: #c0392b; }
.wi-source { font-size: 13px; color: var(--fj-muted); margin-top: 20px; }
.wi-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.wi-mini { list-style: none; margin: 0; padding: 0; counter-reset: m; }
.wi-mini li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--fj-border); font-size: 14px; counter-increment: m; }
.wi-mini li::before { content: counter(m) '.'; color: var(--fj-muted); margin-right: 6px; }
.wi-mini a { flex: 1; color: var(--fj-text); font-weight: 600; text-decoration: none; } .wi-mini a:hover { color: var(--fj-brand); }
.wi-mini b { color: var(--fj-brand); white-space: nowrap; }
.wi-panel-section { padding: 0 0 8px; }
.wi-panel { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; gap: 18px; align-items: center; background: var(--fj-tint); border: 1px solid var(--fj-border); border-radius: 8px; padding: 18px 20px; }
.wi-panel h2 { font-family: var(--font-display); font-size: 20px; color: var(--fj-deep); margin: 0 0 6px; }
.wi-panel p { margin: 0 0 8px; font-size: 14.5px; line-height: 1.55; }
.wi-panel-stats { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--fj-muted); }
.wi-panel-stats b { color: var(--fj-deep); }
.rk-method code { background: var(--fj-tint); padding: 4px 8px; border-radius: 4px; font-size: 14px; }
@media (max-width: 900px) { .wi-hero-grid, .wi-cols { grid-template-columns: 1fr; } .wi-stats, .wi-trio { grid-template-columns: 1fr 1fr; } .wi-panel { grid-template-columns: 1fr; text-align: left; } .wi-bar-row { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .wi-stats, .wi-trio { grid-template-columns: 1fr; } }

/* Cost pages + program cost card */
.cs-h2 { font-family: var(--font-display); font-size: 22px; color: var(--fj-deep); margin: 26px 0 10px; }
.cs-h2 small { font-size: 13px; color: var(--fj-muted); font-weight: 500; }
.pc-section { padding: 0 0 6px; }
.pc-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 20px; background: var(--fj-tint); border: 1px solid var(--fj-border); border-radius: 8px; padding: 18px 20px; }
.pc-label { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--fj-muted); font-weight: 700; }
.pc-amount { font-family: var(--font-display); font-size: 30px; color: var(--fj-deep); font-weight: 700; margin-top: 4px; }
.pc-amount small { font-size: 13px; color: var(--fj-muted); font-weight: 500; }
.pc-usd { color: var(--fj-brand); font-weight: 600; }
.pc-diff { font-family: var(--font-display); font-size: 20px; font-weight: 700; margin-top: 4px; }
.pc-diff.is-below { color: #1a9a5b; } .pc-diff.is-above { color: #c0392b; } .pc-diff.is-even { color: var(--fj-deep); }
.pc-meta { font-size: 13px; color: var(--fj-muted); margin: 4px 0 6px; }
@media (max-width: 720px) { .pc-card { grid-template-columns: 1fr; } }
.tx-explore { padding: 14px 0 4px; }

/* Program card: nothing may reach the screen edge on a phone */
.pcard-fee small { display: inline-block; white-space: nowrap; }
@media (max-width: 620px) {
    .pcard-row { flex-direction: column !important; gap: 10px !important; }
    .pcard-price { text-align: left !important; width: 100%; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
    .pcard-price p { margin: 0 !important; }
    .pcard-fee { font-size: 15px !important; }
    .pcard-fee small { display: inline; }
    .pcard-uni { width: 100%; }
    .program-card, .card { overflow-wrap: anywhere; }
}

/* Ads never wider than their column, on any screen */
.frontend-ad, .frontend-ad-code { max-width: 100%; }
/* Nothing is applied to ins.adsbygoogle: the ad code stays exactly as Google ships it. */

@media (max-width: 620px) {
    .frontend-ad, .fu-inline-ad, .google-auto-placed { max-width: calc(100vw - 24px); margin-left: auto; margin-right: auto; }
}
/* Auto-placed slots that came back empty leave no gap */
.google-auto-placed:has(> ins[data-ad-status="unfill-optimized"]), .google-auto-placed:has(> ins[data-ad-status="unfilled"]) { display: none !important; height: 0 !important; margin: 0 !important; }

/* Sticky sidebar advert: the container positions, Google's snippet is untouched.
   Default offset clears the 110px sticky header with a 16px breath. */
.fu-side-ad { display: none; }
@media (min-width: 1024px) {
    .fu-side-ad { display: block; position: sticky; top: var(--fu-side-ad-top, 126px); margin: 0 0 20px; }

}

/* A sticky ad only travels if its column is as tall as the article beside it */
@media (min-width: 1024px) {
    .blog-sidebar, .tab-sidebar, .overview-sidebar, .wi-side, .scholarship-sidebar { align-self: stretch !important; }
    .blog-sidebar > .fu-side-ad, .tab-sidebar > .fu-side-ad, .overview-sidebar > .fu-side-ad, .wi-side > .fu-side-ad, .scholarship-sidebar > .fu-side-ad { z-index: 2; }
}

/* In-content ad between sections */
.fu-inline-ad { margin: 22px 0; max-width: 100%; }


/* Country flags: small, round, cropped from the middle of the flag */
.tx-flag-icon { width: 44px; height: 44px; }
.tx-flag { width: 44px !important; height: 44px !important; border-radius: 50%; object-fit: cover !important; filter: none !important; opacity: 1 !important; border: 1px solid var(--fj-border); background: #fff; display: block; flex: none; }
.discipline-subject-card:hover .tx-flag { border-color: var(--fj-brand); }
.tx-flag-hero { width: 40px !important; height: 40px !important; display: inline-block; vertical-align: -6px; margin-right: 10px; border-color: rgba(255,255,255,.55); }
@media (max-width: 640px) { .tx-flag-hero { width: 32px !important; height: 32px !important; vertical-align: -4px; margin-right: 8px; } }
