/**
 * Opportunities (free jobs, scholarships, courses) — clean cards and tabs
 */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.opp-hero {
  margin-bottom: var(--app-space-lg);
}
.opp-hero .page-title {
  margin-bottom: var(--app-space-xs);
}

/* Tabs — pill style, horizontal scroll, matches app vibe */
.opp-tabs {
  display: flex;
  gap: var(--app-space-sm);
  margin-bottom: var(--app-space-lg);
  padding: var(--app-space-sm) 0;
  list-style: none;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.opp-tabs::-webkit-scrollbar {
  display: none;
}
.opp-tab {
  flex: 0 0 auto;
  padding: 10px 18px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--app-text-secondary);
  background: var(--app-bg);
  border: 1px solid var(--app-border-soft);
  border-radius: var(--app-radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.opp-tab:hover {
  color: var(--app-primary);
  background: var(--app-primary-soft);
  border-color: rgba(99, 102, 241, 0.3);
}
.opp-tab.active {
  color: #fff;
  background: var(--app-gradient-primary);
  border-color: transparent;
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.35);
}
.opp-tab.active:hover {
  color: #fff;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

.opp-panel {
  display: none;
}
.opp-panel.active {
  display: block;
}

/* Filters — card-style on mobile, clean dropdowns */
.opp-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--app-space-sm);
  margin-bottom: var(--app-space-lg);
  padding: var(--app-space-md);
  background: linear-gradient(145deg, var(--app-surface) 0%, rgba(99, 102, 241, 0.04) 100%);
  border: 1px solid var(--app-border-soft);
  border-radius: var(--app-radius-lg);
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.06);
}
.opp-filters-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--app-text-muted);
  width: 100%;
  margin-bottom: 2px;
}
.opp-filter-select {
  padding: 12px 14px;
  padding-right: 36px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--app-text);
  background: var(--app-bg-elevated);
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-md);
  min-width: 0;
  min-height: 44px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 18px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.opp-filter-select:hover {
  border-color: rgba(99, 102, 241, 0.4);
}
.opp-filter-select:focus {
  outline: none;
  border-color: var(--app-primary);
  box-shadow: 0 0 0 3px var(--app-primary-soft);
}
.opp-count {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--app-primary);
  background: var(--app-primary-soft);
  padding: 6px 12px;
  border-radius: var(--app-radius-full);
  margin-left: auto;
}

/* Mobile: stack filters in grid so they don’t cramp */
@media (max-width: 479px) {
  .opp-filters {
    padding: var(--app-space);
    gap: var(--app-space);
  }
  .opp-filters-label {
    margin-bottom: 4px;
  }
  .opp-filter-select {
    width: 100%;
    flex: 1 1 100%;
    max-width: 100%;
  }
  .opp-count {
    width: 100%;
    text-align: center;
    margin-left: 0;
    margin-top: 4px;
  }
}
@media (min-width: 480px) {
  .opp-filters-label {
    width: auto;
    margin-bottom: 0;
    margin-right: 4px;
  }
}
.opp-grid {
  display: grid;
  gap: var(--app-space-md);
}
@media (min-width: 480px) {
  .opp-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 768px) {
  .opp-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.opp-card {
  background: var(--app-surface);
  border-radius: var(--app-radius-md);
  box-shadow: var(--app-shadow);
  border: 1px solid var(--app-border-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.opp-card:hover {
  box-shadow: var(--app-shadow-card);
  border-color: var(--app-border);
}
.opp-card-body {
  padding: var(--app-space-md);
  flex: 1;
}
.opp-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 var(--app-space-sm);
  color: var(--app-text);
}
.opp-card-meta {
  font-size: 0.8rem;
  color: var(--app-text-secondary);
  margin: 0 0 4px;
  line-height: 1.4;
}
.opp-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--app-space-sm);
}
.opp-badge {
  display: inline-block;
  padding: 4px 8px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border-radius: 6px;
  background: var(--app-primary-soft);
  color: var(--app-primary);
}
.opp-badge.walk-in {
  background: var(--app-warm-soft);
  color: #b45309;
}
.opp-badge.free {
  background: var(--app-success-soft);
  color: var(--app-success);
}
.opp-card-actions {
  padding: var(--app-space-sm) var(--app-space-md);
  border-top: 1px solid var(--app-border-soft);
  display: flex;
  align-items: center;
  gap: var(--app-space-sm);
}
.opp-card-apply {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--app-primary);
  text-decoration: none;
  flex: 1;
}
.opp-card-apply:hover {
  text-decoration: underline;
}
.opp-card-share {
  padding: 6px;
  background: none;
  border: none;
  color: var(--app-text-muted);
  cursor: pointer;
  border-radius: var(--app-radius-sm);
}
.opp-card-share:hover {
  color: var(--app-primary);
  background: var(--app-primary-soft);
}
.opp-empty {
  text-align: center;
  padding: var(--app-space-xl);
  color: var(--app-text-muted);
  font-size: 0.9rem;
}
.opp-loading {
  text-align: center;
  padding: var(--app-space-xl);
  color: var(--app-text-secondary);
}
