/* Partner pages: Careers, Become Instructor, Affiliate */

.partner-page {
  --partner-accent: #004a7e;
  --partner-accent-soft: rgba(0, 74, 126, 0.08);
  --partner-warm: #ff7829;
}

.partner-hero {
  position: relative;
  padding: 88px 0 72px;
  background:
    radial-gradient(ellipse 70% 60% at 15% 20%, rgba(0, 74, 126, 0.1), transparent 55%),
    radial-gradient(ellipse 55% 50% at 85% 80%, rgba(255, 120, 41, 0.08), transparent 50%),
    linear-gradient(180deg, #f1f5f9 0%, #ffffff 100%);
  border-bottom: 1px solid #e2e8f0;
  overflow: hidden;
}

.partner-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0, 74, 126, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.partner-hero .container {
  position: relative;
  z-index: 1;
}

.partner-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--partner-accent-soft);
  color: var(--partner-accent);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 18px;
}

.partner-hero__eyebrow--warm {
  background: rgba(255, 120, 41, 0.12);
  color: #c2410c;
}

.partner-hero h1 {
  max-width: 820px;
  margin: 0 auto 18px;
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.partner-hero__lead {
  max-width: 700px;
  margin: 0 auto;
  color: #475569;
  font-size: clamp(1rem, 2vw, 1.1rem);
  line-height: 1.65;
}

.partner-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.partner-stat {
  text-align: center;
  padding: 28px 16px;
  border-right: 1px solid #e2e8f0;
}

.partner-stat:last-child {
  border-right: none;
}

.partner-stat strong {
  display: block;
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-weight: 800;
  color: var(--partner-accent);
  margin-bottom: 6px;
  line-height: 1.2;
}

.partner-stat span {
  font-size: 0.84rem;
  color: #64748b;
  font-weight: 600;
  line-height: 1.4;
}

.partner-section-head {
  max-width: 640px;
  margin-bottom: 32px;
}

.partner-section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #0f172a;
  letter-spacing: -0.02em;
}

.partner-section-head .lead {
  margin: 0;
  color: #475569;
}

.partner-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.partner-step {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px 22px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.partner-step:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.partner-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 74, 126, 0.12), rgba(255, 120, 41, 0.15));
  color: var(--partner-accent);
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 16px;
}

.partner-step__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 120, 41, 0.12);
  font-size: 1.35rem;
  margin-bottom: 16px;
}

.partner-step h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
}

.partner-step p {
  margin: 0;
  color: #475569;
  font-size: 0.94rem;
  line-height: 1.6;
}

.partner-apply {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.partner-apply__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.partner-info h2 {
  margin: 0 0 12px;
  font-size: clamp(1.4rem, 2.8vw, 1.85rem);
  color: #0f172a;
}

.partner-info > .lead {
  margin: 0 0 24px;
  color: #475569;
}

.partner-checklist {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.partner-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #334155;
  font-size: 0.95rem;
  line-height: 1.55;
}

.partner-checklist__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 74, 126, 0.1);
  color: var(--partner-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.partner-checklist__icon svg {
  width: 12px;
  height: 12px;
}

.partner-highlight-box {
  padding: 22px 24px;
  background: linear-gradient(135deg, rgba(0, 74, 126, 0.06), rgba(255, 120, 41, 0.06));
  border: 1px solid rgba(0, 74, 126, 0.12);
  border-radius: 14px;
}

.partner-highlight-box h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: #0f172a;
}

.partner-highlight-box p {
  margin: 0;
  color: #475569;
  font-size: 0.94rem;
  line-height: 1.6;
}

.partner-role-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}

.partner-role-card {
  padding: 20px 22px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.partner-role-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.partner-role-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: #0f172a;
}

.partner-role-card p {
  margin: 0 0 12px;
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.55;
}

.partner-role-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 120, 41, 0.1);
  color: #c2410c;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Application form */
.partner-form-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.partner-form-card__head {
  padding: 28px 28px 20px;
  background: linear-gradient(135deg, #004a7e 0%, #0a5f96 100%);
  color: #fff;
}

.partner-form-card__head h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
}

.partner-form-card__head p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
  line-height: 1.55;
}

.partner-form-card__body {
  padding: 28px;
}

.partner-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.partner-form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.partner-form-field--full {
  grid-column: 1 / -1;
}

.partner-form-field label {
  font-size: 0.84rem;
  font-weight: 700;
  color: #334155;
  letter-spacing: 0.01em;
}

.partner-form-field input,
.partner-form-field select,
.partner-form-field textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 13px 14px;
  font: inherit;
  font-size: 0.95rem;
  color: #0f172a;
  background: #f8fafc;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.partner-form-field input::placeholder,
.partner-form-field textarea::placeholder {
  color: #94a3b8;
}

.partner-form-field input:hover,
.partner-form-field select:hover,
.partner-form-field textarea:hover {
  border-color: #94a3b8;
  background: #fff;
}

.partner-form-field input:focus,
.partner-form-field select:focus,
.partner-form-field textarea:focus {
  outline: none;
  border-color: #004a7e;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 74, 126, 0.12);
}

.partner-form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
  cursor: pointer;
}

.partner-form-field textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}

.partner-form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  font-size: 0.86rem;
  color: #64748b;
  line-height: 1.5;
}

.partner-form-consent input {
  margin-top: 3px;
  accent-color: #004a7e;
  flex-shrink: 0;
}

.partner-form-consent a {
  color: #004a7e;
  font-weight: 600;
}

.partner-form-submit {
  width: 100%;
  margin-top: 22px;
  padding: 15px 24px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #004a7e, #0a5f96);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 20px rgba(0, 74, 126, 0.25);
}

.partner-form-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 74, 126, 0.3);
}

.partner-form-note {
  margin: 16px 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: #94a3b8;
}

@media (max-width: 992px) {
  .partner-apply__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .partner-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .partner-hero {
    padding: 72px 0 56px;
  }

  .partner-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .partner-stat {
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
    padding: 22px 14px;
  }

  .partner-stat:nth-child(2n) {
    border-right: none;
  }

  .partner-stat:nth-last-child(-n+2) {
    border-bottom: none;
  }

  .partner-form-grid {
    grid-template-columns: 1fr;
  }

  .partner-form-card__head,
  .partner-form-card__body {
    padding: 22px 20px;
  }
}

@media (max-width: 480px) {
  .partner-stats {
    grid-template-columns: 1fr;
  }

  .partner-stat {
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
  }

  .partner-stat:last-child {
    border-bottom: none;
  }
}
