/* === EXPERT MISSIONS / OPPORTUNITIES PAGE === */

.em-main {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 32px 60px;
  font-family: 'Inter', system-ui, sans-serif;
  color: #1a1a1a;
}

/* HERO */
.em-hero {
  padding: 48px 0 40px;
  text-align: center;
  position: relative;
}
.em-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
}
.em-hero h1 i {
  font-style: italic;
  color: #B8975A;
  font-weight: 400;
}
.em-hero-sub {
  font-size: 13px;
  color: #888;
  margin-top: 8px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* MARQUEE */
.em-marquee-wrap {
  margin-top: 24px;
  overflow: hidden;
  position: relative;
  height: 36px;
}
.em-marquee-wrap::before,
.em-marquee-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
}
.em-marquee-wrap::before { left: 0; background: linear-gradient(90deg, #fff, transparent); }
.em-marquee-wrap::after { right: 0; background: linear-gradient(-90deg, #fff, transparent); }
.em-marquee-track {
  display: flex;
  gap: 10px;
  animation: em-marquee 30s linear infinite;
  width: max-content;
}
@keyframes em-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.em-marquee-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 100px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .06);
  white-space: nowrap;
  flex-shrink: 0;
  transition: all .2s;
}
.em-marquee-chip:hover {
  border-color: #B8975A;
  transform: scale(1.04);
}
.em-marquee-chip-icon { font-size: 15px; }
.em-marquee-chip-text { font-size: 11px; font-weight: 600; color: #555; }

/* SEARCH */
.em-search-section {
  margin-top: 24px;
  margin-bottom: 36px;
}
.em-search-bar {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid rgba(0, 0, 0, .08);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: all .2s;
}
.em-search-bar:focus-within {
  border-color: rgba(184, 151, 90, .4);
  box-shadow: 0 0 0 3px rgba(184, 151, 90, .08);
}
.em-search-bar-icon { padding: 0 14px; font-size: 16px; color: #bbb; flex-shrink: 0; }
.em-search-bar input {
  flex: 1;
  padding: 13px 0;
  border: none;
  outline: none;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  color: #1a1a1a;
  background: transparent;
}
.em-search-bar input::placeholder { color: #bbb; }
.em-search-bar-btn {
  padding: 10px 20px;
  margin: 4px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #C4A559 0%, #D4A832 20%, #EDCA50 40%, #F8E27A 60%, #D4A832 80%, #C4A559 100%);
  transition: all .2s;
  flex-shrink: 0;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.em-search-bar-btn:hover {
  background: linear-gradient(180deg, #000, #1a1a1a);
  color: #DAA520;
}

/* SECTION TITLE */
.em-section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}
.em-section-title i { font-style: italic; color: #B8975A; font-weight: 400; }

/* DOMAINS */
.em-domains-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 48px;
}
.em-domain-card {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  aspect-ratio: 1.1;
  background: #f5f5f5;
  transition: all .3s;
}
.em-domain-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .12);
}
.em-domain-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .5s;
}
.em-domain-card:hover .em-domain-card-bg { transform: scale(1.06); }
.em-domain-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, .7) 0%, rgba(0, 0, 0, .1) 50%, rgba(0, 0, 0, .02) 100%);
  transition: all .3s;
}
.em-domain-card:hover::after {
  background: linear-gradient(0deg, rgba(0, 0, 0, .8) 0%, rgba(0, 0, 0, .15) 50%, rgba(0, 0, 0, .05) 100%);
}
.em-domain-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  z-index: 2;
}
.em-domain-card-icon { font-size: 24px; margin-bottom: 6px; }
.em-domain-card-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.em-domain-card-count {
  font-size: 9px;
  font-weight: 700;
  color: rgba(255, 255, 255, .6);
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: .8px;
}
.em-domain-card-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
  opacity: 0;
  transform: translateY(6px);
  transition: all .3s;
}
.em-domain-card:hover .em-domain-card-roles {
  opacity: 1;
  transform: none;
}
.em-domain-role-chip {
  font-size: 8px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 100px;
  background: rgba(255, 255, 255, .15);
  backdrop-filter: blur(6px);
  color: rgba(255, 255, 255, .9);
  border: 1px solid rgba(255, 255, 255, .1);
}
.em-domain-card.featured {
  grid-column: span 2;
  aspect-ratio: 2.2;
}

/* TODAY'S SELECTION */
.em-random-section {
  margin-bottom: 48px;
  padding: 32px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(184, 151, 90, .03), rgba(184, 151, 90, .07));
  border: 1px solid rgba(184, 151, 90, .1);
  position: relative;
  overflow: hidden;
}
.em-random-section::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 151, 90, .08), transparent 70%);
}
.em-random-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.em-random-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 18px;
  font-weight: 700;
}
.em-random-title i { font-style: italic; color: #B8975A; font-weight: 400; }
.em-random-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #8C6D34;
  background: rgba(184, 151, 90, .08);
  border: 1px solid rgba(184, 151, 90, .15);
  transition: all .2s;
  cursor: pointer;
  font-family: inherit;
}
.em-random-btn:hover {
  background: rgba(184, 151, 90, .15);
  border-color: rgba(184, 151, 90, .3);
}
.em-random-btn-icon {
  font-size: 16px;
  display: inline-block;
  transition: transform .3s;
}
.em-random-btn:hover .em-random-btn-icon { transform: rotate(180deg); }
.em-random-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

/* OPPORTUNITY MINI CARD (today's selection) */
.em-opp-card-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .05);
  cursor: pointer;
  transition: all .25s;
  position: relative;
  overflow: hidden;
}
.em-opp-card-mini:hover {
  border-color: rgba(184, 151, 90, .2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .06);
  transform: translateY(-2px);
}
.em-opp-mini-img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f5f5f5;
}
.em-opp-mini-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.em-opp-mini-info { flex: 1; min-width: 0; }
.em-opp-mini-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
}
.em-opp-mini-name .v {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #2E7D32;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 7px;
  font-weight: 800;
  flex-shrink: 0;
}
.em-opp-mini-role {
  font-size: 10px;
  font-weight: 600;
  color: #B8975A;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.em-opp-mini-meta {
  font-size: 9px;
  color: #999;
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.em-opp-tag {
  font-size: 7px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 100px;
  position: absolute;
  top: 8px;
  right: 8px;
}
.em-opp-tag.top { background: linear-gradient(135deg, #D4BC7A, #E5D4A0); color: #6b5520; }
.em-opp-tag.new { background: #1a1a1a; color: #DAA520; }
.em-opp-arrow {
  color: #ccc;
  font-size: 14px;
  flex-shrink: 0;
  transition: all .2s;
}
.em-opp-card-mini:hover .em-opp-arrow {
  color: #B8975A;
  transform: translateX(3px);
}

/* BROWSE ALL */
.em-browse-section { margin-bottom: 48px; }
.em-browse-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}
.em-browse-tabs::-webkit-scrollbar { height: 2px; }
.em-browse-tab {
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  color: #777;
  background: #fff;
  border: 1.5px solid rgba(0, 0, 0, .06);
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.em-browse-tab:hover {
  border-color: rgba(184, 151, 90, .3);
  color: #B8975A;
}
.em-browse-tab.active {
  color: #fff;
  background: linear-gradient(180deg, #DECE9F, #C9A96E 30%, #B8975A 65%, #A08548);
  border-color: #B8975A;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .2);
}
.em-browse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

/* OPP CARD (large) */
.em-opp-card {
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .05);
  cursor: pointer;
  transition: all .3s;
  position: relative;
}
.em-opp-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, .1);
  transform: translateY(-3px);
}
.em-opp-card-photo {
  height: 160px;
  position: relative;
  overflow: hidden;
  background: #f5f5f5;
}
.em-opp-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.em-opp-card:hover .em-opp-card-photo img { transform: scale(1.05); }
.em-opp-card-photo::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(0deg, rgba(0, 0, 0, .4), transparent);
}
.em-opp-card-domain {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 7px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 100px;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(6px);
  color: #555;
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.em-opp-card-rating {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(0, 0, 0, .5);
  backdrop-filter: blur(6px);
  padding: 3px 7px;
  border-radius: 100px;
  z-index: 2;
}
.em-opp-card-rating span {
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  margin-left: 2px;
}
.em-opp-card-poster {
  position: absolute;
  bottom: 8px;
  left: 8px;
  font-size: 8px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 100px;
  z-index: 2;
  backdrop-filter: blur(6px);
}
.em-opp-card-poster.recruiter {
  background: rgba(184, 145, 42, .85);
  color: #fff;
}
.em-opp-card-poster.talent {
  background: rgba(46, 125, 50, .85);
  color: #fff;
}
.em-opp-card-body { padding: 12px 14px 14px; }
.em-opp-card-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
}
.em-opp-card-name .v {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #2E7D32;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 7px;
  font-weight: 800;
  flex-shrink: 0;
}
.em-opp-card-role {
  font-size: 10px;
  font-weight: 600;
  color: #B8975A;
  margin-top: 2px;
  line-height: 1.35;
}
.em-opp-card-meta {
  font-size: 9px;
  color: #999;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.em-opp-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 6px;
}
.em-opp-card-tag {
  font-size: 8px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 100px;
  background: #FAFAFA;
  border: 1px solid rgba(0, 0, 0, .05);
  color: #777;
}
.em-opp-card-cta {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(0, 0, 0, .04);
  font-size: 9px;
  font-weight: 600;
  color: #B8975A;
  transition: all .2s;
}
.em-opp-card:hover .em-opp-card-cta { color: #8C6D34; }
.em-opp-card-cta-arrow {
  transition: transform .2s;
  display: inline-block;
}
.em-opp-card:hover .em-opp-card-cta-arrow { transform: translateX(3px); }

/* ANIM */
@keyframes em-fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.em-anim { animation: em-fadeUp .6s ease both; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .em-domains-grid { grid-template-columns: repeat(2, 1fr); }
  .em-domain-card.featured { grid-column: span 2; }
  .em-random-grid { grid-template-columns: 1fr 1fr; }
  .em-hero h1 { font-size: 28px; }
}
@media (max-width: 600px) {
  .em-main { padding: 0 16px 40px; }
  .em-domains-grid { grid-template-columns: 1fr; }
  .em-domain-card.featured { grid-column: span 1; }
  .em-random-grid { grid-template-columns: 1fr; }
  .em-browse-grid { grid-template-columns: 1fr 1fr; }
  .em-hero h1 { font-size: 24px; }
  .em-hero { padding: 28px 0 24px; }
}
