/* ============================================================
   IAI Group — Opportunity / Join Us Page
   ============================================================ */

.opp-main {
  padding-top: var(--nav-h);
  min-height: 100vh;
}

.opp-container {
  max-width: 1000px;
  padding-top: 0;
  padding-bottom: 100px;
}

/* ── Page header ─────────────────────────────────────────── */
.opp-page-header {
  padding: 56px 0 44px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.opp-page-header::before {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 24px;
}
.opp-page-header h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 10px;
}
.opp-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* ── Sections ────────────────────────────────────────────── */
.opp-section {
  margin-bottom: 64px;
}
.opp-section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 24px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.opp-overview {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 800px;
}
.opp-body-text {
  font-size: .95rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* ── Two-column layout ───────────────────────────────────── */
.opp-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 700px) {
  .opp-two-col { grid-template-columns: 1fr; gap: 32px; }
}

/* ── Values grid ─────────────────────────────────────────── */
.opp-values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 860px) {
  .opp-values-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .opp-values-grid { grid-template-columns: 1fr; }
}

.opp-value-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color .2s, transform .2s;
}
.opp-value-card:hover {
  border-color: rgba(99,179,237,.35);
  transform: translateY(-3px);
}
.opp-value-icon {
  color: var(--accent);
  line-height: 1;
}
.opp-value-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.opp-value-card p {
  font-size: .83rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ── Position cards ──────────────────────────────────────── */
.opp-positions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 760px) {
  .opp-positions { grid-template-columns: 1fr; }
}

.opp-position-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.opp-position-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s;
}
.opp-position-card:hover {
  border-color: rgba(99,179,237,.3);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,.25);
}
.opp-position-card:hover::after { transform: scaleX(1); }

.opp-position-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.opp-position-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.opp-position-card p {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

.opp-position-badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
}
.opp-badge-phd     { background: rgba(183,148,244,.15); color: #b794f4; border: 1px solid rgba(183,148,244,.25); }
.opp-badge-me      { background: rgba(99,179,237,.15);  color: #63b3ed; border: 1px solid rgba(99,179,237,.25); }
.opp-badge-postdoc { background: rgba(104,211,145,.15); color: #68d391; border: 1px solid rgba(104,211,145,.25); }

/* ── Lists ───────────────────────────────────────────────── */
.opp-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.opp-list li {
  font-size: .9rem;
  color: var(--text-muted);
  padding-left: 20px;
  position: relative;
  line-height: 1.6;
}
.opp-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: .8rem;
  top: 1px;
}
.opp-list-ordered {
  list-style: none;
  counter-reset: opp-counter;
}
.opp-list-ordered li {
  counter-increment: opp-counter;
  padding-left: 28px;
}
.opp-list-ordered li::before {
  content: counter(opp-counter) '.';
  font-weight: 600;
  color: var(--accent);
  font-size: .85rem;
}

/* ── Funding cards ───────────────────────────────────────── */
.opp-funding-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.opp-funding-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 18px 20px;
}
.opp-funding-card h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
}
.opp-funding-card p {
  font-size: .83rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

/* ── Apply section ───────────────────────────────────────── */
.opp-apply {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 48px;
}
@media (max-width: 600px) {
  .opp-apply { padding: 28px 20px; }
}
.opp-apply .opp-section-title { margin-top: 0; }

.opp-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.opp-link:hover { text-decoration: underline; }

.opp-note {
  margin-top: 24px;
  padding: 14px 18px;
  background: rgba(99,179,237,.07);
  border: 1px solid rgba(99,179,237,.2);
  border-radius: 8px;
  font-size: .85rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.6;
}

.opp-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  background: var(--accent);
  color: #000;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: .9rem;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity .2s, transform .2s, gap .2s;
}
.opp-cta-btn:hover {
  opacity: .88;
  transform: translateY(-1px);
  gap: 12px;
}
