/* ── Apply page (loads after site.css — overrides take effect) ── */

/* Widen container and add top breathing room for card layout */
.container {
  max-width: 960px;
  padding: 2rem 1.5rem 4rem;
}

/* ── Image placeholder base style ── */
/* Replace any .img-placeholder div with <img src="..." alt="..."> when ready */
.img-placeholder {
  border-radius: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mid);
  border: 2px dashed var(--border);
}

/* ──────────────────────────────────────────────────────────
   SHARED SECTION HEADERS
────────────────────────────────────────────────────────── */
.apply-h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.apply-lead {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 1.75rem;
}

/* ──────────────────────────────────────────────────────────
   HERO — navy gradient card, two-column split
────────────────────────────────────────────────────────── */
.apply-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, #0c2494 55%, #001a76 100%);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 12px 40px rgba(0, 26, 118, 0.3);
  position: relative;
  overflow: hidden;
}
.apply-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 65% 90% at 50% -5%, rgba(17, 106, 222, 0.4) 0%, transparent 65%);
  pointer-events: none;
}
.apply-hero-content,
.apply-hero-image { position: relative; z-index: 1; }

.apply-hero-content h1 {
  font-size: 2.75rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 0.85rem;
}
.apply-hero-content .apply-hero-sub {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.apply-hero-notice {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.6;
  margin-top: 0.85rem;
}
.apply-hero .btn-primary {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  font-weight: 800;
}
.apply-hero .btn-primary:hover {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
  transform: translateY(-1px);
}
/* image placeholder on dark background */
.apply-hero .img-placeholder {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.35);
}

/* ──────────────────────────────────────────────────────────
   TEAMS — bubble panel with colored cards inside
────────────────────────────────────────────────────────── */
.apply-teams-section {
  background: var(--mid);
  border-radius: 20px;
  padding: 2.5rem 2rem 2rem;
  margin-bottom: 2.5rem;
}

.apply-team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.apply-team-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-top: 4px solid var(--tc);
  border-radius: 12px;
  padding: 1.5rem 1.25rem;
  box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s;
}
.apply-team-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.apply-team-card h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}
.apply-team-card p {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}
.team-ge { --tc: #116ade; }
.team-im { --tc: #f0b400; }
.team-tx { --tc: #7c3aed; }

/* ──────────────────────────────────────────────────────────
   JOURNEY TIMELINE — bubble panel, horizontal on desktop
────────────────────────────────────────────────────────── */
.apply-journey-section {
  background: var(--mid);
  border-radius: 20px;
  padding: 2.5rem 2rem 2.75rem;
  margin-bottom: 2.5rem;
}
.apply-journey-section .apply-lead { margin-bottom: 0; }

.apply-journey {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  margin-top: 2rem;
}
/* horizontal connecting line */
.apply-journey::before {
  content: '';
  position: absolute;
  top: 13px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(to right, var(--blue) 0%, var(--navy) 100%);
  z-index: 0;
}
.journey-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}
.journey-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  margin-bottom: 0.9rem;
  border: 3px solid var(--mid);
  box-shadow: 0 0 0 1.5px var(--blue);
  transition: transform .15s;
}
.journey-step:hover .journey-num { transform: scale(1.18); }
.journey-step h3 {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}
.journey-step p {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

/* ──────────────────────────────────────────────────────────
   CTA — closing navy card
────────────────────────────────────────────────────────── */
.apply-cta {
  background: linear-gradient(135deg, var(--navy) 0%, #0c2494 55%, #001a76 100%);
  border-radius: 20px;
  padding: 3.5rem 2rem;
  text-align: center;
  margin-bottom: 1rem;
  box-shadow: 0 12px 40px rgba(0, 26, 118, 0.3);
  position: relative;
  overflow: hidden;
}
.apply-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 65% 90% at 50% -5%, rgba(17, 106, 222, 0.4) 0%, transparent 65%);
  pointer-events: none;
}
.apply-cta > * { position: relative; z-index: 1; }
.apply-cta h2 {
  font-size: 1.85rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}
.apply-cta p {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  max-width: 480px;
  margin: 0 auto 1.75rem;
  line-height: 1.7;
}
.apply-cta .btn-primary {
  padding: 14px 40px;
  font-size: 15px;
  border-radius: 10px;
  font-weight: 800;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.apply-cta .btn-primary:hover {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
  transform: translateY(-1px);
}

/* ──────────────────────────────────────────────────────────
   RESPONSIVE
────────────────────────────────────────────────────────── */
@media(max-width:720px) {
  .apply-hero {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2.25rem 1.75rem;
  }
  .apply-hero-image { order: -1; }
  .apply-hero-content h1 { font-size: 2.1rem; }
  .apply-team-grid { grid-template-columns: 1fr; }
}

@media(max-width:680px) {
  .apply-journey {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .apply-journey::before {
    top: 13px;
    left: 12px;
    right: auto;
    width: 2px;
    height: calc(100% - 13px);
    background: linear-gradient(to bottom, var(--blue) 0%, var(--navy) 100%);
  }
  .journey-step {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 1rem;
    padding-bottom: 1.5rem;
  }
  .journey-step:last-child { padding-bottom: 0; }
  .journey-num { margin-bottom: 0; flex-shrink: 0; }
  .journey-step h3,
  .journey-step p { text-align: left; }
}

@media(max-width:600px) {
  .apply-hero-content h1 { font-size: 1.8rem; }
  .apply-cta { padding: 2.5rem 1.5rem; }
  .apply-cta h2 { font-size: 1.4rem; }
  .apply-journey-section,
  .apply-teams-section { padding: 1.75rem 1.25rem 1.5rem; }
}
