/* Opportunities (.opp). Base, hero, section, buttons and contact strip come from core.css. */

/* ===================== HERO ===================== */
.opp-hero { padding: 72px 0 76px; }
.opp-hero h1 { margin: 0; }

/* ===================== POSTINGS ===================== */
.opp-list { padding: 72px 0 80px; }
.opp-group + .opp-group { margin-top: 56px; }
.opp-group__title {
  font-weight: 800; font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  color: var(--navy); margin: 0; line-height: 1.15; text-align: center;
}

.opp-apply { text-align: center; }
.opp-apply p { color: var(--muted); font-size: 1.05rem; margin: 0 auto 24px; max-width: 64ch; }

/* ===================== TABLE (.scm-table-wrap block) ===================== */
.opp .scm-table-wrap {
  max-width: 1200px;
  margin: 28px auto 0;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(13, 71, 161, 0.15);
}
.opp .scm-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}
.opp .scm-table thead {
  background: linear-gradient(135deg, #0D47A1 0%, #093680 100%);
}
.opp .scm-table thead th {
  color: white;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 20px 24px;
  text-align: left;
  border-bottom: 3px solid #F4B400;
}
.opp .scm-table tbody tr {
  transition: background 0.2s ease;
  border-bottom: 1px solid #eee;
}
.opp .scm-table tbody tr:last-child { border-bottom: none; }
.opp .scm-table tbody tr:hover { background: #f8faff; }
.opp .scm-table tbody td {
  padding: 22px 24px;
  color: #333;
  font-size: 15px;
  line-height: 1.6;
  vertical-align: top;
}
.opp .scm-table tbody td:first-child {
  font-weight: 700;
  color: #0D47A1;
  font-size: 16px;
}
.opp .scm-table tbody td:nth-child(2) {
  color: #666;
  font-weight: 600;
  white-space: nowrap;
}
.opp .scm-table tbody td a {
  color: #0D47A1;
  font-weight: 600;
  text-decoration: underline;
  transition: color 0.2s ease;
}
.opp .scm-table tbody td a:hover { color: #F4B400; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 960px) {
  .opp-hero { padding: 56px 0 60px; }
  .opp-list { padding: 56px 0 64px; }
}
@media (max-width: 768px) {
  .opp .scm-table-wrap {
    border-radius: 12px;
    margin: 20px auto 0;
  }
  .opp .scm-table thead { display: none; }
  .opp .scm-table tbody tr {
    display: block;
    padding: 20px;
    border-bottom: 2px solid #f0f0f0;
  }
  .opp .scm-table tbody td {
    display: block;
    padding: 6px 0;
    border: none;
  }
  .opp .scm-table tbody td:first-child {
    padding-left: 0;
    font-size: 18px;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 2px solid #F4B400;
  }
  .opp .scm-table tbody td:nth-child(2)::before {
    content: 'Deadline: ';
    color: #0D47A1;
    font-weight: 700;
  }
  .opp .scm-table tbody td:nth-child(2) {
    white-space: normal;
    margin-bottom: 10px;
  }
}
