/* Page container tweaks */
.join h1, .join h2, .join h3 { color:#0f172a; }
.join p { color:#334155; }

/* Hero */
.join-hero{
  position: relative;
  border-radius: 16px;
  padding: 22px 24px;
  background: linear-gradient(135deg, rgba(2,132,199,.10), rgba(99,102,241,.10));
  border: 1px solid rgba(15,23,42,.08);
  box-shadow: 0 12px 28px rgba(15,23,42,.06);
  margin-bottom: 24px;
}
.join-hero .hero-text{
  max-width: 82ch;
}
.join-hero h1{
  margin: 0 0 6px 0;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
}
.join-hero p{
  margin: 8px 0 14px 0;
  line-height: 1.7;
}
.join-hero .cta{
  display:flex; gap:10px; flex-wrap:wrap;
}
.join-hero .btn,
.apply .btn{
  display:inline-block;
  background: #0f766e;
  color:#fff; text-decoration:none; font-weight:600;
  padding: 10px 14px; border-radius:10px;
  border: 1px solid rgba(15,23,42,.18);
  box-shadow: 0 8px 16px rgba(15,23,42,.10);
}
.join-hero .btn-ghost,
.apply .btn-ghost{
  display:inline-block;
  background: #fff;
  color:#0f172a; text-decoration:none; font-weight:600;
  padding: 10px 14px; border-radius:10px;
  border: 1px solid rgba(15,23,42,.16);
}

/* Tracks */
.tracks{ margin-top: 10px; }
.tracks h2{ margin-bottom: 10px; }
.tracks .cards{
  display:grid; gap:12px;
  grid-template-columns: repeat(4,1fr);
}
.track{
  background:#fff;
  border:1px solid rgba(15,23,42,.08);
  border-radius:12px;
  padding:14px;
  box-shadow:0 8px 20px rgba(15,23,42,.06);
}
.track h3{ margin-top:0; font-size:1.05rem; }
.track ul{ margin:8px 0 8px 20px; }
.track .note{ color:#475569; font-size:.92rem; }

/* Apply */
.apply{
  margin-top: 22px;
}
.apply-inner{
  background:#fff;
  border:1px solid rgba(15,23,42,.08);
  border-radius:12px;
  padding:16px;
  box-shadow:0 8px 20px rgba(15,23,42,.06);
}
.steps{
  margin: 10px 0 14px 18px;
}
.steps > li{
  margin-bottom:10px;
}
.steps ul{ margin: 6px 0 0 14px; }

.inline-cards{
  display:grid; gap:12px;
  grid-template-columns: repeat(3,1fr);
  margin-top: 10px;
}
.icard{
  background:#f8fafc;
  border:1px solid rgba(15,23,42,.08);
  border-radius:10px;
  padding:12px;
}
.apply-cta{
  margin-top: 14px; display:flex; gap:10px; flex-wrap:wrap;
}

/* FAQ */
.faq{ margin: 22px 0 8px 0; }
.faq details{
  background:#fff;
  border:1px solid rgba(15,23,42,.08);
  border-radius:10px;
  padding:10px 12px;
  box-shadow:0 6px 16px rgba(15,23,42,.05);
  margin-bottom:10px;
}
.faq summary{ cursor:pointer; font-weight:600; color:#0f172a; }

/* Responsive */
@media (max-width: 1100px){
  .tracks .cards{ grid-template-columns: repeat(2,1fr); }
  .inline-cards{ grid-template-columns: 1fr; }
}
@media (max-width: 640px){
  .join-hero{ padding:18px; }
  .track{ padding:12px; }
}
/* ---------- Tracks grid redesign ---------- */
.track-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 14px;
}

.track-card {
  background: #fff;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(15,23,42,.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.track-header {
  font-weight: 700;
  color: #fff;
  padding: 10px 14px;
  font-size: 1.05rem;
}

/* Color accents for each role */
.track-header.postdoc { background: #7c3aed; }   /* violet */
.track-header.phd     { background: #0f766e; }   /* teal */
.track-header.msc     { background: #2563eb; }   /* blue */
.track-header.undergrad { background: #d97706; } /* amber */

.track-body {
  padding: 14px;
}
.track-body ul {
  margin: 0;
  padding-left: 20px;
  line-height: 1.55;
}
.track-body li {
  margin-bottom: 6px;
  font-size: 0.96rem;
}
/* ---------- Open Positions section ---------- */
.openings{ margin: 24px 0 8px; }
.openings-head{ display:flex; align-items:baseline; gap:10px; margin-bottom:10px; }
.openings-head .muted{ color:#64748b; }

.openings-list{
  display:grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.openings-empty{
  background:#f8fafc;
  border:1px solid rgba(15,23,42,.08);
  border-radius:12px;
  padding:16px;
  color:#475569;
}

.open-card{
  background:#fff;
  border:1px solid rgba(15,23,42,.10);
  border-radius:12px;
  box-shadow:0 8px 20px rgba(15,23,42,.06);
  padding:14px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.open-card__head h3{
  margin:0 0 4px 0;
  font-size:1.05rem;
  color:#0f172a;
}
.meta{ display:flex; flex-wrap:wrap; gap:8px; }
.meta-item{
  font-size:.86rem; color:#334155;
  background:#eef2ff; border:1px solid #e2e8f0;
  padding:4px 8px; border-radius:999px;
}

.tags{ display:flex; flex-wrap:wrap; gap:6px; }
.pill{
  display:inline-block; font-size:.82rem; color:#0f172a;
  background:#f1f5f9; border:1px solid rgba(15,23,42,.10);
  padding:4px 8px; border-radius:999px;
}

.summary{ margin: 4px 0; color:#334155; }

.open-card__cols{
  display:grid; gap:12px; grid-template-columns: 1fr 1fr;
}
.open-card__cols h4{ margin:0 0 6px 0; font-size:.95rem; color:#0f172a; }
.bullets{ margin: 0; padding-left: 18px; color:#334155; line-height:1.55; }
.bullets li{ margin-bottom:6px; font-size:.95rem; }

.open-card__foot{
  display:flex; flex-wrap:wrap; gap:10px; align-items:center; justify-content:space-between;
  border-top:1px dashed rgba(15,23,42,.12); padding-top:10px;
}
.open-card__foot .dates{ display:flex; gap:12px; color:#475569; font-size:.9rem; }
.open-card__foot .how{ color:#475569; font-size:.9rem; }
.open-card__foot .btn{
  display:inline-block; background:#0f766e; color:#fff; text-decoration:none;
  font-weight:600; padding:8px 12px; border-radius:10px; border:1px solid rgba(15,23,42,.16);
}

/* Responsive */
@media (max-width: 860px){
  .open-card__cols{ grid-template-columns: 1fr; }
}
