/* Highbrow course finder */
.cf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cf-hero { padding: 56px 0 48px; background: linear-gradient(180deg, rgba(8,18,32,.78), rgba(8,18,32,.92)), url('video/study-abroad-hero-poster.jpg?v=1') center / cover no-repeat, #0a1626; }
.cf-hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.cf-hero .ca-breadcrumb { align-self: flex-start; }
.cf-count { margin: 18px 0 14px; padding: 6px 14px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(255,255,255,.07); color: rgba(255,255,255,.86); font-size: 13px; font-weight: 700; }
.cf-hero h1 { max-width: 820px; font-size: clamp(36px, 5.4vw, 64px); }
.cf-hero h1 span { display: inline; }
.cf-lead { max-width: 640px; margin: 16px 0 28px; color: rgba(255,255,255,.82); font-size: 17px; line-height: 1.65; }

.cf-panel { width: 100%; max-width: 920px; padding: 18px; border: 1px solid rgba(255,255,255,.14); border-radius: 20px; background: rgba(255,255,255,.08); backdrop-filter: blur(10px); text-align: left; }
.cf-search { position: relative; display: flex; gap: 10px; }
.cf-search-icon { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: #6b7685; pointer-events: none; }
.cf-search input { flex: 1; min-width: 0; height: 54px; padding: 0 16px 0 46px; border: 0; border-radius: 14px; background: #fff; color: #132133; font: inherit; font-size: 16px; }
.cf-search input:focus { outline: 3px solid color-mix(in srgb, var(--gold) 60%, transparent); }
.cf-search .ca-btn { height: 54px; padding: 0 26px; border: 0; border-radius: 14px; font: inherit; font-weight: 800; cursor: pointer; }
.cf-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.cf-filters label { display: flex; flex-direction: column; gap: 6px; color: rgba(255,255,255,.72); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.cf-filters select, .cf-bar select { height: 46px; padding: 0 12px; border: 1px solid rgba(255,255,255,.16); border-radius: 12px; background: rgba(8,18,32,.55); color: #fff; font: inherit; font-size: 15px; text-transform: none; letter-spacing: 0; }
.cf-filters select option { color: #132133; background: #fff; }

.cf-popular { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; max-width: 920px; margin-top: 18px; }
.cf-popular > span { color: rgba(255,255,255,.6); font-size: 13px; font-weight: 700; margin-right: 4px; }
.cf-pill { padding: 7px 14px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(255,255,255,.06); color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s; }
.cf-pill:hover, .cf-pill[aria-pressed="true"] { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 22%, transparent); }

.cf-results { padding-top: 40px; }
.cf-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.cf-status { margin: 0; color: var(--ink); font-size: 18px; font-weight: 800; }
.cf-bar-right { display: flex; align-items: center; gap: 12px; }
.cf-bar select { border-color: var(--line); background: var(--surface); color: var(--ink); }
.cf-reset { padding: 0; border: 0; background: none; color: var(--gold-strong, var(--gold)); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; }

.cf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cf-card { display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); transition: border-color .15s, transform .15s, box-shadow .15s; }
.cf-card:hover { border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(10,22,38,.08); }
.cf-where { margin: 0; color: var(--ink-soft); font-size: 13px; font-weight: 700; }
.cf-card h3 { margin: 10px 0 4px; color: var(--ink); font-size: 19px; line-height: 1.3; }
.cf-uni { margin: 0; color: var(--gold-strong, var(--gold)); font-weight: 700; font-size: 15px; }
.cf-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; padding: 0; list-style: none; }
.cf-meta li { padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--gold) 10%, var(--paper)); color: var(--ink); font-size: 12.5px; font-weight: 700; }
.cf-fee { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.cf-fee strong { display: block; color: var(--ink); font-size: 20px; }
.cf-fee em { color: var(--ink-soft); font-size: 14px; font-style: normal; font-weight: 600; }
.cf-fee small { color: var(--ink-soft); font-size: 13px; }
.cf-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; }
.cf-actions .ca-btn { padding: 10px 16px; font-size: 14px; }
.cf-link { color: var(--ink-soft); font-size: 13.5px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.cf-empty { padding: 36px; border: 1px dashed var(--line); border-radius: 18px; text-align: center; }
.cf-empty h3 { margin: 0 0 8px; color: var(--ink); }
.cf-empty p { max-width: 520px; margin: 0 auto 18px; color: var(--ink-soft); }
.cf-more { display: block; margin: 28px auto 0; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; font-weight: 800; }
.cf-note { max-width: 820px; margin: 28px 0 0; color: var(--ink-soft); font-size: 13.5px; line-height: 1.6; }

@media (max-width: 1000px) {
  .cf-grid { grid-template-columns: repeat(2, 1fr); }
  .cf-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .cf-hero { padding: 28px 0 32px; }
  .cf-lead { font-size: 15.5px; margin-bottom: 20px; }
  .cf-panel { padding: 12px; border-radius: 16px; }
  .cf-search .ca-btn { padding: 0 16px; }
  .cf-filters { gap: 8px; }
  .cf-filters select { height: 44px; font-size: 14px; }
  .cf-grid { grid-template-columns: 1fr; }
  .cf-bar { flex-direction: column; align-items: flex-start; }
  .cf-actions { flex-direction: column; align-items: stretch; text-align: center; }
}
.cf-filters label { min-width: 0; }
.cf-filters select { width: 100%; min-width: 0; }

/* v3: states, active filters, skeletons, clearer buttons */
.cf-more[hidden], .cf-empty[hidden], .cf-reset[hidden], .cf-active:empty, .cf-shown:empty { display: none !important; }
.cf-active { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 18px; }
.cf-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 8px 7px 14px; border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--line)); border-radius: 999px; background: color-mix(in srgb, var(--gold) 10%, var(--surface)); color: var(--ink); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.cf-chip b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: color-mix(in srgb, var(--ink) 10%, transparent); font-size: 14px; line-height: 1; }
.cf-chip:hover b { background: var(--gold); color: #111; }
.cf-reset { padding: 9px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); text-decoration: none; }
.cf-reset:hover { border-color: var(--gold); }

.cf-skel { min-height: 280px; gap: 12px; pointer-events: none; }
.cf-skel span { display: block; height: 14px; border-radius: 8px; background: linear-gradient(90deg, color-mix(in srgb, var(--ink) 6%, transparent) 25%, color-mix(in srgb, var(--ink) 12%, transparent) 50%, color-mix(in srgb, var(--ink) 6%, transparent) 75%); background-size: 200% 100%; animation: cf-shimmer 1.2s infinite linear; }
.cf-skel span:nth-child(1) { width: 45%; } .cf-skel span:nth-child(2) { width: 85%; height: 22px; } .cf-skel span:nth-child(3) { width: 60%; } .cf-skel span:nth-child(4) { width: 100%; height: 44px; margin-top: auto; }
@keyframes cf-shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .cf-skel span { animation: none; } }

.cf-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.cf-actions .ca-btn { justify-content: center; }
.cf-wa { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; }
.cf-wa svg { width: 18px; height: 18px; color: #1f9d55; }
.cf-wa:hover { border-color: #1f9d55; }
.cf-link { grid-column: 1 / -1; justify-self: start; }

.cf-more-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 30px; }
.cf-shown { margin: 0; color: var(--ink-soft); font-size: 14px; }
.cf-more { margin: 0; padding: 14px 28px; border: 2px solid var(--gold); border-radius: 999px; background: transparent; color: var(--ink); font-size: 15px; }
.cf-more:hover { background: var(--gold); color: #111; }
.cf-status { font-size: 20px; }
.cf-status small { display: block; color: var(--ink-soft); font-size: 13.5px; font-weight: 600; }
@media (max-width: 640px) {
  .cf-actions { grid-template-columns: 1fr 1fr; }
  .cf-bar-right { width: 100%; justify-content: space-between; }
}
.cf-kicker { margin: 16px 0 6px; color: var(--gold); font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.cf-count { margin-top: 10px; }
.cf-dest { margin-top: 40px; }
.cf-dest h3 { margin: 0 0 14px; color: var(--ink); font-size: 20px; }
.cf-dest-links { display: flex; flex-wrap: wrap; gap: 10px; }
.cf-dest-links a { padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-weight: 700; text-decoration: none; }
.cf-dest-links a:hover { border-color: var(--gold); }

/* v5: bright hero with Poppins headings */
.cf-hero { color: #132133; background:
  radial-gradient(900px 420px at 12% 0%, rgba(120,190,255,.35), transparent 60%),
  radial-gradient(700px 380px at 92% 20%, rgba(255,200,110,.38), transparent 60%),
  linear-gradient(180deg, #f3f8ff 0%, #fffaf1 100%); }
.cf-hero .ca-breadcrumb, .cf-hero .ca-breadcrumb a { color: #4a5668; }
.cf-hero h1 { color: #10213a; font-family: "Poppins", "Manrope", sans-serif; font-weight: 800; letter-spacing: -.02em; }
.cf-hero h1 span { color: #c48a1d; }
.cf-kicker { color: #b37a12; }
.cf-lead { color: #3d4a5c; }
.cf-count { border-color: rgba(16,33,58,.12); background: #fff; color: #10213a; box-shadow: 0 4px 14px rgba(16,33,58,.06); }
.cf-panel { border: 1px solid rgba(16,33,58,.08); background: #fff; backdrop-filter: none; box-shadow: 0 18px 50px rgba(16,33,58,.10); }
.cf-search input { border: 1px solid #dfe6ef; background: #f7f9fc; }
.cf-filters label { color: #5a6678; }
.cf-filters select { border-color: #dfe6ef; background: #fff; color: #10213a; }
.cf-popular > span { color: #5a6678; }
.cf-pill { border-color: #dfe6ef; background: #fff; color: #10213a; }
.cf-pill:hover, .cf-pill[aria-pressed="true"] { border-color: var(--gold); background: #fff4dc; }
.cf-results .ca-head h2, .cf-info h2, #faq h2, .cf-status { font-family: "Poppins", "Manrope", sans-serif; letter-spacing: -.01em; }
.cf-card h3 { font-family: "Poppins", "Manrope", sans-serif; font-weight: 600; }

/* v6: lighter Poppins heading, floating education icons */
.cf-hero { position: relative; overflow: hidden; }
.cf-hero-inner { position: relative; z-index: 1; }
.cf-hero h1 { font-weight: 500; letter-spacing: -.01em; line-height: 1.12; }
.cf-hero h1 span { font-weight: 500; }
.cf-fx { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.cf-fx-i { position: absolute; width: 46px; height: 46px; opacity: .22; animation: cf-float 14s ease-in-out infinite; }
.cf-fx-1 { left: 6%; top: 18%; color: #2f7fd8; animation-duration: 13s; }
.cf-fx-2 { left: 14%; top: 64%; color: #c48a1d; width: 38px; animation-duration: 16s; animation-delay: -4s; }
.cf-fx-3 { left: 26%; top: 8%; color: #3aa17e; width: 34px; animation-duration: 18s; animation-delay: -8s; }
.cf-fx-4 { right: 8%; top: 14%; color: #c48a1d; width: 52px; animation-name: cf-fly; animation-duration: 20s; }
.cf-fx-5 { right: 16%; top: 62%; color: #2f7fd8; width: 34px; animation-duration: 15s; animation-delay: -6s; }
.cf-fx-6 { right: 27%; top: 6%; color: #e0a12a; width: 36px; animation-duration: 17s; animation-delay: -3s; }
.cf-fx-7 { left: 4%; top: 86%; color: #7a5bd6; width: 40px; animation-duration: 19s; animation-delay: -10s; }
.cf-fx-8 { right: 4%; top: 84%; color: #e0a12a; width: 28px; animation-duration: 12s; animation-delay: -2s; }
.cf-fx-9 { right: 38%; top: 90%; color: #3aa17e; width: 30px; animation-duration: 21s; animation-delay: -12s; }
.cf-fx-10 { left: 36%; top: 88%; color: #2f7fd8; width: 30px; animation-duration: 16s; animation-delay: -7s; }
@keyframes cf-float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-18px) rotate(8deg); } }
@keyframes cf-fly { 0% { transform: translate(0, 0) rotate(-8deg); } 50% { transform: translate(-40px, -14px) rotate(4deg); } 100% { transform: translate(0, 0) rotate(-8deg); } }
@media (max-width: 640px) {
  .cf-fx-i { width: 28px; height: 28px; opacity: .16; }
  .cf-fx-3, .cf-fx-6, .cf-fx-9, .cf-fx-10 { display: none; }
}
@media (prefers-reduced-motion: reduce) { .cf-fx-i { animation: none; } }
