/* Homepage Smart College Search Bar — Scoped to #home-smart-search-section */
#home-smart-search-section {
  position: relative;
  z-index: 40;
  padding: 40px 20px 12px;
  background: transparent !important;
  box-sizing: border-box;
}

#home-smart-search-section .hss-container {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

#app-root #home-smart-search-section .hss-eyebrow,
#app-root #home-smart-search-section .hss-eyebrow span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 210, 51, 0.14) !important;
  border: 1.5px solid rgba(255, 215, 64, 0.72);
  box-shadow: 0 0 14px rgba(255, 210, 51, 0.24), inset 0 1px 0 rgba(255, 245, 190, 0.35);
  color: #FFD233 !important;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 14px;
}

#app-root #home-smart-search-section .hss-eyebrow span {
  padding: 0;
  border: none;
  box-shadow: none;
  background: transparent !important;
  margin-bottom: 0;
}

#home-smart-search-section .hss-title {
  margin: 0 0 8px 0;
  font-size: clamp(24px, 3.6vw, 36px);
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff !important;
  letter-spacing: -0.02em;
}

#app-root #home-smart-search-section .hss-title-accent {
  color: #FFD233 !important;
}

#home-smart-search-section .hss-subtitle {
  margin: 0 0 22px 0;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.86) !important;
  font-weight: 400;
}

/* Search Box Wrapper */
#home-smart-search-section .hss-search-wrap {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}

#home-smart-search-section .hss-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff !important;
  border-radius: 18px;
  padding: 7px 7px 7px 18px;
  border: 2px solid #FACC15;
  box-shadow:
    0 0 22px rgba(255, 210, 51, 0.32),
    0 14px 36px rgba(17, 5, 44, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

#home-smart-search-section .hss-search-box:hover {
  border-color: #FFD233;
  box-shadow:
    0 0 28px rgba(255, 210, 51, 0.48),
    0 18px 42px rgba(17, 5, 44, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  transform: translateY(-1px);
}

#home-smart-search-section .hss-search-box:focus-within {
  border-color: #FFD233;
  box-shadow:
    0 0 0 4px rgba(255, 210, 51, 0.32),
    0 0 32px rgba(255, 210, 51, 0.52),
    0 18px 42px rgba(17, 5, 44, 0.36);
  transform: translateY(-1px);
}

#app-root #home-smart-search-section .hss-search-icon,
#app-root #home-smart-search-section .hss-search-icon i {
  color: #6D28D9 !important;
  font-size: 18px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#home-smart-search-section .hss-input {
  flex: 1;
  min-width: 0;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 500;
  color: #0F172A !important;
  padding: 10px 4px;
  box-shadow: none !important;
}

#home-smart-search-section .hss-input::placeholder {
  color: #64748B !important;
  font-weight: 400;
}

#home-smart-search-section .hss-clear-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: #F1F5F9 !important;
  color: #475569 !important;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.18s ease, color 0.18s ease;
}

#home-smart-search-section .hss-clear-btn.visible {
  display: inline-flex;
}

#home-smart-search-section .hss-clear-btn:hover {
  background: #E2E8F0 !important;
  color: #0F172A !important;
}

#home-smart-search-section .hss-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 13px;
  border: 2px solid #FFD233;
  background: linear-gradient(135deg, #4C1D95 0%, #6D28D9 100%) !important;
  color: #ffffff !important;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 0 14px rgba(255, 210, 51, 0.35), 0 4px 14px rgba(76, 29, 149, 0.35), inset 0 1px 0 rgba(255, 240, 170, 0.45);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

#home-smart-search-section .hss-submit-btn i {
  color: #FFD233 !important;
  font-size: 13.5px;
}

#home-smart-search-section .hss-submit-btn:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 18px rgba(76, 29, 149, 0.45), 0 0 0 2px rgba(255, 210, 51, 0.35);
  transform: translateY(-1px);
}

#home-smart-search-section .hss-submit-btn:active {
  transform: translateY(0);
}

/* Autocomplete Dropdown */
#home-smart-search-section .hss-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: #ffffff !important;
  border-radius: 16px;
  border: 1.5px solid #FACC15;
  box-shadow: 0 0 24px rgba(255, 210, 51, 0.25), 0 22px 50px rgba(15, 23, 42, 0.28);
  max-height: 400px;
  overflow-y: auto;
  z-index: 999;
  text-align: left;
}

#home-smart-search-section .hss-dropdown.open {
  display: block;
}

#app-root #home-smart-search-section .hss-dropdown-header {
  padding: 10px 16px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6D28D9 !important;
  background: #FAF5FF !important;
  border-bottom: 1px solid #F3E8FF;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#app-root #home-smart-search-section .hss-dropdown-header span:first-child {
  color: #6D28D9 !important;
}

#app-root #home-smart-search-section .hss-dropdown-header span:last-child {
  color: #64748B !important;
  font-weight: 600;
}

#home-smart-search-section .hss-result-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid #F1F5F9;
  background: #ffffff !important;
  transition: background 0.15s ease;
}

#home-smart-search-section .hss-result-item:last-child {
  border-bottom: none;
}

#home-smart-search-section .hss-result-item:hover,
#home-smart-search-section .hss-result-item.active {
  background: #FAF5FF !important;
}

#home-smart-search-section .hss-result-thumb {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid rgba(250, 204, 21, 0.65);
  box-shadow: 0 2px 8px rgba(250, 204, 21, 0.18);
  background: #F8FAFC !important;
}

#home-smart-search-section .hss-result-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1.5px solid rgba(250, 204, 21, 0.65);
  background: #F3E8FF !important;
  color: #6D28D9 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

#home-smart-search-section .hss-result-body {
  flex: 1;
  min-width: 0;
}

#home-smart-search-section .hss-result-name {
  font-size: 14.5px;
  font-weight: 700;
  color: #0F172A !important;
  line-height: 1.35;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#home-smart-search-section .hss-result-name mark {
  background: #FEF08A !important;
  color: #4C1D95 !important;
  padding: 0 2px;
  border-radius: 3px;
}

#app-root #home-smart-search-section .hss-result-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #475569 !important;
}

#app-root #home-smart-search-section .hss-result-meta > span:not(.hss-result-badge) {
  color: #475569 !important;
}

#app-root #home-smart-search-section .hss-result-meta mark {
  background: #FEF08A !important;
  color: #4C1D95 !important;
  padding: 0 2px;
  border-radius: 3px;
}

#app-root #home-smart-search-section .hss-result-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: #F3E8FF !important;
  color: #581C87 !important;
}

#app-root #home-smart-search-section .hss-result-badge.yellow {
  background: #FEF9C3 !important;
  color: #854D0E !important;
}

#home-smart-search-section .hss-result-arrow {
  color: #7C3AED !important;
  font-size: 13px;
  flex-shrink: 0;
  opacity: 0.7;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

#home-smart-search-section .hss-result-item:hover .hss-result-arrow {
  transform: translateX(3px);
  opacity: 1;
}

#home-smart-search-section .hss-empty-state {
  padding: 26px 18px;
  text-align: center;
  background: #ffffff !important;
}

#home-smart-search-section .hss-empty-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #1E293B !important;
  margin-bottom: 4px;
}

#home-smart-search-section .hss-empty-sub {
  font-size: 12.5px;
  color: #64748B !important;
  margin-bottom: 12px;
}

#home-smart-search-section .hss-browse-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid #DDD6FE;
  background: #FAF5FF !important;
  color: #581C87 !important;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

/* Popular Suggestions Row */
#home-smart-search-section .hss-popular-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

#home-smart-search-section .hss-popular-label {
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78) !important;
  margin-right: 2px;
}

#home-smart-search-section .hss-popular-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 13px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 210, 51, 0.72);
  box-shadow: 0 0 12px rgba(255, 210, 51, 0.2), inset 0 1px 0 rgba(255, 245, 190, 0.28);
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.15s ease;
}

#home-smart-search-section .hss-popular-pill:hover {
  background: #FFD233 !important;
  color: #2A0A5E !important;
  border-color: #FFD233;
  transform: translateY(-1px);
}

/* Responsive Mobile Styles */
@media (max-width: 640px) {
  #home-smart-search-section {
    padding: 28px 14px 8px;
  }

  #home-smart-search-section .hss-subtitle {
    font-size: 13.5px;
    margin-bottom: 16px;
  }

  #home-smart-search-section .hss-search-box {
    padding: 6px 6px 6px 14px;
    border-radius: 15px;
    gap: 6px;
  }

  #home-smart-search-section .hss-input {
    font-size: 14px;
    padding: 9px 2px;
  }

  #home-smart-search-section .hss-submit-btn {
    height: 40px;
    padding: 0 14px;
    font-size: 13px;
    border-radius: 11px;
  }

  #home-smart-search-section .hss-submit-btn span {
    display: none;
  }

  #home-smart-search-section .hss-result-item {
    padding: 11px 12px;
    gap: 10px;
  }

  #home-smart-search-section .hss-result-thumb,
  #home-smart-search-section .hss-result-icon {
    width: 38px;
    height: 38px;
  }
}
