/*
 * PusatLesen.my — style.css (v2)
 * Custom styles to complement Tailwind CSS.
 * Preserves all original design; adds new sections & components.
 */

/* ================================================
   BASE
================================================ */
html { scroll-behavior: smooth; }
body { font-family: 'Plus Jakarta Sans', sans-serif; }

/* ================================================
   NAVBAR
================================================ */
#navbar.scrolled {
  box-shadow: 0 1px 16px rgba(0,0,0,0.08);
}

/* ================================================
   LANGUAGE TOGGLE  — Apple-style segmented control
================================================ */

/* The pill track */
.lang-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: #E9ECF0;
  border-radius: 50px;
  padding: 3px;
  gap: 0;
  /* subtle inner shadow like iOS control */
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.12);
}

/* Buttons sit on top of the sliding indicator */
.lang-btn {
  position: relative;
  z-index: 1;
  font-family: 'Sora', sans-serif;
  font-size: 0.6875rem;   /* 11px — crisp like iOS */
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  border: none;
  background: transparent;
  color: #6B7280;
  cursor: pointer;
  /* smooth color cross-fade */
  transition: color 0.22s ease;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
  line-height: 1.4;
}

/* Active label turns white (sits over the sliding pill) */
.lang-btn.active {
  color: #1A56DB;
}

/* Non-active hover */
.lang-btn:hover:not(.active) {
  color: #374151;
}

/* The animated white "thumb" pill — injected by CSS ::before on the wrapper.
   We use a sibling combinator trick: the wrapper gets a data attribute
   driven by JS, and ::before slides left/right accordingly.            */
.lang-toggle::before {
  content: '';
  position: absolute;
  top: 3px;
  bottom: 3px;
  /* width = one half of the inner area; JS override not needed because
     both buttons are equal width and the track is exactly 2× one button */
  width: calc(50% - 3px);
  border-radius: 50px;
  background: #ffffff;
  box-shadow:
    0 1px 4px rgba(0,0,0,0.14),
    0 0 0 0.5px rgba(0,0,0,0.06);
  /* slide animation */
  transition: transform 0.28s cubic-bezier(0.34, 1.2, 0.64, 1);
  /* default: left position (BM) */
  transform: translateX(0);
}

/* When EN is active, slide the thumb to the right */
.lang-toggle[data-active="en"]::before {
  transform: translateX(calc(100% + 3px));
}

/* Mobile variant — slightly narrower padding */
.lang-toggle-sm .lang-btn {
  padding: 0.275rem 0.625rem;
  font-size: 0.625rem;
}

/* ================================================
   HERO
================================================ */
.hero-section {
  background: linear-gradient(160deg, #F0F6FF 0%, #FFFFFF 60%);
  position: relative;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  pointer-events: none;
}
.blob-1 { width:500px; height:500px; background:#1A56DB; top:-150px; right:-100px; }
.blob-2 { width:300px; height:300px; background:#E3232C; bottom:-80px; left:-60px; }

@media (max-width: 640px) {
  .blob-1 { width:300px; height:300px; top:-80px; right:-80px; opacity:0.15; }
  .blob-2 { display:none; }
}

/* ================================================
   BUTTONS
================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #1A56DB;
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(26,86,219,0.3);
}
.btn-primary:hover {
  background: #1242AD;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(26,86,219,0.38);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  color: #1A56DB;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  border: 2px solid #1A56DB;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.btn-secondary:hover {
  background: #EBF2FF;
  transform: translateY(-1px);
}

/* ================================================
   TRUST BADGES
================================================ */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: #fff;
  border: 1px solid #E5E7EB;
  color: #374151;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 0.875rem;
  border-radius: 50px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

/* ================================================
   HERO CARD (illustration panel)
================================================ */
.stat-float-card {
  position: absolute;
  background: #fff;
  border-radius: 0.875rem;
  padding: 0.625rem 0.875rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  z-index: 20;
}

@keyframes floatSlow {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@keyframes floatFast {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-5px); }
}
.animate-float-slow { animation: floatSlow 4s ease-in-out infinite; }
.animate-float-fast { animation: floatFast 3s ease-in-out infinite 1s; }

/* ================================================
   FILTER TABS
================================================ */
.filter-tab {
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.8125rem;
  font-weight: 600;
  border: 1.5px solid #E5E7EB;
  background: #fff;
  color: #6B7280;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-tab:hover { border-color:#1A56DB; color:#1A56DB; }
.filter-tab.active { background:#1A56DB; color:#fff; border-color:#1A56DB; }

/* ================================================
   SCHOOL CARDS
================================================ */
.tag-auto {
  display: inline-block;
  background: #EBF2FF; color: #1A56DB;
  font-size: 0.6875rem; font-weight: 700;
  padding: 0.2rem 0.625rem; border-radius: 50px;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.tag-manual {
  display: inline-block;
  background: #FFF7ED; color: #C2410C;
  font-size: 0.6875rem; font-weight: 700;
  padding: 0.2rem 0.625rem; border-radius: 50px;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.school-card.hidden-by-filter { display: none; }

/* ================================================
   HOW IT WORKS
================================================ */
.step-card { padding: 2rem 1.5rem; }
.step-icon {
  width: 4.5rem; height: 4.5rem;
  border-radius: 1.25rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.step-number {
  font-family: 'Sora', sans-serif;
  font-weight: 800; font-size: 2.5rem;
  color: #F3F4F6; line-height: 1; margin-bottom: 0.5rem;
}

/* ================================================
   WHY US CARDS
================================================ */
/* Defined inline via Tailwind; hover handled there */

/* ================================================
   HELP CHOOSING CARDS
================================================ */
.help-card {
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.help-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(26,86,219,0.08);
}

/* ================================================
   PRICE TABLE
================================================ */
/* Responsive wrapper defined inline; table itself uses Tailwind */

/* ================================================
   POPULAR SEARCH CHIPS
================================================ */
.search-chip {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border: 1.5px solid #E5E7EB;
  color: #374151;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.4rem 0.875rem;
  border-radius: 50px;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.search-chip:hover {
  border-color: #1A56DB;
  color: #1A56DB;
  background: #EBF2FF;
}

/* ================================================
   INQUIRY FORM
================================================ */
.form-input {
  width: 100%;
  border: 1.5px solid #E5E7EB;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #1F2937;
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}
.form-input:focus {
  border-color: #1A56DB;
  box-shadow: 0 0 0 3px rgba(26,86,219,0.12);
}
.form-input.error {
  border-color: #E3232C;
  box-shadow: 0 0 0 3px rgba(227,35,44,0.1);
}

/* License radio buttons */
.license-option { cursor: pointer; }
.license-btn {
  text-align: center;
  padding: 0.75rem 0.5rem;
  border: 1.5px solid #E5E7EB;
  border-radius: 0.875rem;
  font-size: 0.75rem; font-weight: 600;
  color: #6B7280;
  transition: all 0.2s;
}
.license-option input:checked + .license-btn {
  border-color: #1A56DB;
  background: #EBF2FF;
  color: #1A56DB;
}
.license-option:hover .license-btn { border-color:#1A56DB; color:#1A56DB; }

/* ================================================
   FAQ ACCORDION
================================================ */
.faq-item { transition: box-shadow 0.2s; }
.faq-item:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.06); }

.faq-body {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.25s ease;
}
.faq-body.open { max-height: 300px; opacity: 1; }
.faq-trigger[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
  color: #1A56DB;
}

/* ================================================
   FOOTER SOCIAL ICONS
================================================ */
.social-icon {
  width: 2.25rem; height: 2.25rem;
  background: #374151; border-radius: 0.5rem;
  display: flex; align-items: center; justify-content: center;
  color: #9CA3AF;
  transition: background 0.2s, color 0.2s;
}
.social-icon:hover { background: #1A56DB; color: #fff; }

/* ================================================
   FLOATING CONTACT BUTTONS  — always visible, labeled
================================================ */

.floating-contacts {
  position: fixed;
  bottom: 1.75rem;
  right: 1.5rem;
  z-index: 9999;          /* above everything */
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  align-items: flex-end;  /* labels + button flush right */
}

/* Each row: label + circle button */
.float-btn-wrap {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

/* Hover label */
.float-label {
  background: #1F2937;
  color: #F9FAFB;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  white-space: nowrap;
  /* hidden by default; slide in on hover */
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

/* Small triangle arrow pointing right */
.float-label::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -5px;
  transform: translateY(-50%);
  border-width: 5px 0 5px 5px;
  border-style: solid;
  border-color: transparent transparent transparent #1F2937;
}
.float-label { position: relative; }

/* Show label on row hover */
.float-btn-wrap:hover .float-label {
  opacity: 1;
  transform: translateX(0);
}

/* The circle button itself */
.float-btn {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  /* Prominent shadow so it stands out on any background */
  box-shadow:
    0 4px 12px rgba(0,0,0,0.25),
    0 1px 3px  rgba(0,0,0,0.18);
  transition: transform 0.22s cubic-bezier(0.34,1.4,0.64,1),
              box-shadow 0.22s ease;
  /* subtle pulse to draw attention on load */
  animation: btnPop 0.5s cubic-bezier(0.34,1.4,0.64,1) both;
}

.float-btn:hover {
  transform: scale(1.14) translateY(-2px);
  box-shadow:
    0 8px 24px rgba(0,0,0,0.28),
    0 2px 6px  rgba(0,0,0,0.18);
}

/* Staggered pop-in */
.float-btn-wrap:nth-child(1) .float-btn { animation-delay: 0.3s; }
.float-btn-wrap:nth-child(2) .float-btn { animation-delay: 0.45s; }

@keyframes btnPop {
  from { opacity: 0; transform: scale(0.6); }
  to   { opacity: 1; transform: scale(1); }
}

/* Messenger gradient (official brand colours) */
.float-btn-messenger {
  background: linear-gradient(135deg, #0084FF 0%, #A033FF 100%);
}
.float-btn-messenger:hover {
  background: linear-gradient(135deg, #006FD6 0%, #8A1FE0 100%);
}

/* WhatsApp green */
.float-btn-wa {
  background: #25D366;
}
.float-btn-wa:hover {
  background: #1DA851;
}

/* Mobile: smaller, stay visible, don't overlap form */
@media (max-width: 480px) {
  .floating-contacts {
    bottom: 1rem;
    right: 1rem;
    gap: 0.75rem;
  }
  .float-btn {
    width: 3rem;
    height: 3rem;
  }
  /* Hide text labels on mobile — icons are enough */
  .float-label { display: none; }
}

/* ================================================
   ANIMATIONS — page-load fade
================================================ */
@keyframes fadeInUp {
  from { opacity:0; transform:translateY(20px); }
  to   { opacity:1; transform:translateY(0); }
}
.hero-text         { animation: fadeInUp 0.7s ease both; }
.hero-illustration { animation: fadeInUp 0.7s 0.2s ease both; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity:1; transform:translateY(0); }

/* ================================================
   SCHOOL DETAIL PAGES
================================================ */

/* Facility item row */
.facility-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #F9FAFB;
  border: 1px solid #F3F4F6;
  border-radius: 0.875rem;
  font-size: 0.875rem;
  color: #374151;
  font-weight: 500;
  transition: border-color 0.2s, background 0.2s;
}
.facility-item:hover {
  background: #EBF2FF;
  border-color: #C7D9F9;
}

.facility-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  shrink: 0;
  flex-shrink: 0;
}

/* Package rows */
.package-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #F9FAFB;
  border: 1.5px solid #F3F4F6;
  border-radius: 1rem;
  transition: border-color 0.2s, background 0.2s;
}
.package-row:hover {
  border-color: #C7D9F9;
  background: #F5F8FF;
}

/* ================================================
   BLOG PAGES
================================================ */

/* Category filter buttons (same style as filter-tab) */
.blog-filter {
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.8125rem;
  font-weight: 600;
  border: 1.5px solid #E5E7EB;
  background: #fff;
  color: #6B7280;
  cursor: pointer;
  transition: all 0.2s;
}
.blog-filter:hover  { border-color: #1A56DB; color: #1A56DB; }
.blog-filter.active { background: #1A56DB; color: #fff; border-color: #1A56DB; }

/* Category badge inside card */
.blog-cat-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.2rem 0.625rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Blog card thumbnail emoji centering already handled by Tailwind */

/* ================================================
   VOCATIONAL SUBTYPE — finder + form
   Slide-open conditional panel + chip grid
================================================ */

/* Slide-open wrapper — shared by finder + form */
.finder-voc-wrap,
.form-voc-wrap {
  overflow: hidden;
  /* Slide in from top */
  animation: slideDown 0.28s cubic-bezier(0.34, 1.1, 0.64, 1) both;
  background: #F9FAFB;
  border: 1.5px solid #E5E7EB;
  border-radius: 0.875rem;
  padding: 1rem;
  margin-top: 0.625rem;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.finder-voc-wrap.hidden,
.form-voc-wrap.hidden {
  display: none;
}

/* ---- Vocational chip grid ---- */
.voc-chips-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

@media (min-width: 480px) {
  .voc-chips-grid { grid-template-columns: repeat(4, 1fr); }
}

.voc-chip-label { cursor: pointer; }

.voc-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.625rem 0.375rem;
  border: 1.5px solid #E5E7EB;
  border-radius: 0.875rem;
  background: #fff;
  text-align: center;
  transition: all 0.18s ease;
  min-height: 4.5rem;
}

.voc-chip-icon {
  font-size: 1.375rem;
  line-height: 1;
}

.voc-chip-text {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #374151;
  line-height: 1.3;
}

.voc-chip-text small {
  font-size: 0.625rem;
  font-weight: 500;
  color: #9CA3AF;
}

/* Selected chip */
.voc-chip-label input:checked + .voc-chip {
  border-color: #1A56DB;
  background: #EBF2FF;
}

.voc-chip-label input:checked + .voc-chip .voc-chip-text {
  color: #1A56DB;
}

.voc-chip-label:hover .voc-chip {
  border-color: #1A56DB;
}

/* ---- Finder voc wrap — slightly different padding ---- */
.finder-voc-wrap {
  padding: 0.875rem;
  margin-bottom: 0;
}
   Used in blog-post.html (single post template).
   Duplicate this file for each new article.
================================================ */

/* Article body prose styles */
.post-body {
  font-size: 1rem;
  line-height: 1.8;
  color: #374151;
}

.post-body p {
  margin-bottom: 1.25rem;
}

/* Headings */
.post-body h2 {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #111827;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #EBF2FF;
}

.post-body h3 {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  color: #1F2937;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

/* Lists */
.post-body ul,
.post-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.post-body ul { list-style-type: disc; }
.post-body ol { list-style-type: decimal; }

.post-body li {
  margin-bottom: 0.4rem;
}

/* Inline links */
.post-link {
  color: #1A56DB;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.post-link:hover { color: #1242AD; }

/* ── TIP BOX (blue) ── */
.post-tip {
  background: #EBF2FF;
  border-left: 4px solid #1A56DB;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
  color: #1E3A6E;
}

/* ── WARNING BOX (amber) ── */
.post-warning {
  background: #FFFBEB;
  border-left: 4px solid #F59E0B;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
  color: #78350F;
}

/* ── HIGHLIGHT / KEY TAKEAWAY BOX (green) ── */
.post-highlight {
  background: #F0FDF4;
  border: 1.5px solid #86EFAC;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #166534;
}

/* ── COMPARISON TABLE ── */
.post-table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: 0.875rem;
  border: 1px solid #E5E7EB;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.post-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  min-width: 400px;
}

.post-table-wrap thead tr {
  background: #1A56DB;
  color: #fff;
}

.post-table-wrap th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}

.post-table-wrap td {
  padding: 0.75rem 1rem;
  color: #374151;
  border-bottom: 1px solid #F3F4F6;
}

.post-table-wrap tbody tr:last-child td { border-bottom: none; }
.post-table-wrap tbody tr:hover { background: #F9FAFB; }

/* ── TAGS ── */
.post-tag {
  display: inline-block;
  background: #F3F4F6;
  color: #6B7280;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.post-tag:hover {
  background: #EBF2FF;
  color: #1A56DB;
}

/* ── TABLE OF CONTENTS ── */
.toc-nav ol { counter-reset: none; }
.toc-link {
  color: #6B7280;
  text-decoration: none;
  display: block;
  padding: 0.2rem 0;
  transition: color 0.2s;
  font-size: 0.8125rem;
  line-height: 1.5;
}
.toc-link:hover { color: #1A56DB; }

/* ================================================
   SMART FINDER FORM  (hero section)
   3-field card: Kawasan · Lesen · Bajet
   + female/install toggles + submit button
================================================ */

.finder-card {
  background: #fff;
  border: 1.5px solid #E5E7EB;
  border-radius: 1.25rem;
  padding: 1.25rem 1.25rem 1rem;
  box-shadow:
    0 4px 20px rgba(26, 86, 219, 0.08),
    0 1px 4px rgba(0,0,0,0.05);
}

.finder-fields {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

@media (max-width: 540px) {
  .finder-fields { flex-direction: column; gap: 0.5rem; }
}

.finder-field-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.finder-field-label {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.finder-select-wrap { position: relative; }

.finder-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: #F9FAFB;
  border: 1.5px solid #E5E7EB;
  border-radius: 0.75rem;
  padding: 0.6rem 2rem 0.6rem 0.75rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.finder-select:focus {
  border-color: #1A56DB;
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
  background: #fff;
}

.finder-chevron {
  position: absolute;
  right: 0.625rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0.875rem;
  height: 0.875rem;
  color: #9CA3AF;
  pointer-events: none;
}

.finder-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.875rem;
}

.finder-toggle-label { cursor: pointer; }

.finder-toggle-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.finder-toggle-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  border: 1.5px solid #E5E7EB;
  background: #F9FAFB;
  color: #6B7280;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.18s ease;
  user-select: none;
}

.finder-toggle-input:checked + .finder-toggle-pill {
  border-color: #1A56DB;
  background: #EBF2FF;
  color: #1A56DB;
}

.finder-toggle-label:hover .finder-toggle-pill {
  border-color: #1A56DB;
  color: #1A56DB;
}

.finder-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  background: #1A56DB;
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 0.75rem 1rem;
  border-radius: 0.875rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(26, 86, 219, 0.3);
}

.finder-submit-btn:hover {
  background: #1242AD;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26, 86, 219, 0.36);
}

.finder-submit-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

/* ---- Result states ---- */

.finder-result-banner {
  background: #EBF2FF;
  border: 1.5px solid #BFDBFE;
  border-radius: 1rem;
  padding: 0.875rem 1.25rem;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.3s ease both;
}

.finder-reset-btn {
  font-size: 0.75rem;
  font-weight: 700;
  color: #1A56DB;
  background: #fff;
  border: 1.5px solid #1A56DB;
  border-radius: 50px;
  padding: 0.25rem 0.875rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.finder-reset-btn:hover {
  background: #1A56DB;
  color: #fff;
}

.card-match-badge {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  background: #10B981;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.25rem 0.625rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  animation: fadeInUp 0.25s ease both;
}

.school-card.finder-hidden { display: none; }

.school-card.finder-match {
  border-color: #1A56DB;
  box-shadow:
    0 0 0 2px rgba(26, 86, 219, 0.12),
    0 4px 20px rgba(26, 86, 219, 0.10);
}

.finder-empty {
  text-align: center;
  padding: 3rem 1rem;
  animation: fadeInUp 0.3s ease both;
}

/* Hide filter tabs while finder is active */
.finder-active .filter-tabs-wrap { display: none; }
