.td-career-page {
  --td-bg: #f4f7f8;
  --td-surface: #ffffff;
  --td-text: #132128;
  --td-muted: #60737c;
  --td-brand: #0f766e;
  --td-accent: #e8791a;
  --td-border: #d7e1e4;
  --td-danger: #dc2626;
  background: radial-gradient(1200px 500px at 10% 0%, #d8f4ef 0%, transparent 60%),
              radial-gradient(1000px 500px at 100% 10%, #fde6d2 0%, transparent 60%),
              var(--td-bg);
  padding-bottom: 48px;
}

.td-container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

.td-career-hero {
  padding: 56px 0 28px;
}

.td-eyebrow {
  margin: 0 0 12px;
  font-family: "Manrope", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--td-brand);
}

.td-career-hero h1 {
  margin: 0;
  
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.08;
  color: var(--td-text);
}

.td-hero-desc {
  max-width: 760px;
  margin: 18px 0 0;
  font-family: "Manrope", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--td-muted);
}

.td-hero-stats {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.td-stat-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--td-border);
  border-radius: 16px;
  backdrop-filter: blur(8px);
  padding: 18px;
}

.td-stat-value {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--td-text);
}

.td-stat-label {
  display: block;
  margin-top: 4px;
  font-family: "Manrope", sans-serif;
  color: var(--td-muted);
  font-size: 13px;
}

.td-career-listing {
  padding: 12px 0 0;
}

.td-list-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.td-job-card {
  background: var(--td-surface);
  border: 1px solid var(--td-border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(8, 29, 36, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: tdFadeIn 0.5s ease both;
}

.td-job-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(8, 29, 36, 0.11);
}

.td-job-card.is-expired {
  opacity: 0.78;
}

.td-job-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.td-job-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.td-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font: 600 12px "Manrope", sans-serif;
}

.td-badge-role {
  background: #d1fae5;
  color: #065f46;
}

.td-badge-type {
  background: #e0f2fe;
  color: #075985;
}

.td-badge-open {
  background: #ecfccb;
  color: #3f6212;
}

.td-badge-expired {
  background: #fee2e2;
  color: var(--td-danger);
}

.td-job-title {
  margin: 14px 0 8px;
    font: revert;
  color: var(--td-text);
}

.td-job-meta {
  display: grid;
  gap: 6px;
  font: 500 14px/1.55 "Manrope", sans-serif;
  color: var(--td-muted);
}

.td-job-meta i {
  margin-right: 8px;
  color: var(--td-brand);
}

.td-job-actions {
  margin-top: 14px;
}

.td-apply-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 132px;
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 10px 18px;
  text-decoration: none;
  font: 700 14px "Manrope", sans-serif;
  background: linear-gradient(90deg, var(--td-brand), #115e59);
  color: #fff;
  transition: filter 0.2s ease;
}

.td-apply-btn:hover {
  color: #fff;
  filter: brightness(1.05);
}

.td-apply-btn.disabled {
  background: #e2e8f0;
  color: #64748b;
  pointer-events: none;
}

@keyframes tdFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.td-job-detail-page {
  --td-bg: #f4f7f8;
  --td-surface: #ffffff;
  --td-text: #122228;
  --td-muted: #5f737c;
  --td-brand: #0f766e;
  --td-accent: #ea580c;
  --td-border: #d8e2e5;
  background: radial-gradient(1000px 500px at 10% 0%, #d8f4ef 0%, transparent 60%),
              radial-gradient(900px 500px at 100% 12%, #fee9da 0%, transparent 60%),
              var(--td-bg);
  padding: 28px 0 44px;
}

.td-job-detail-wrap {
  width: min(1180px, 92%);
  margin: 0 auto;
}

.td-detail-hero {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--td-border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 14px 34px rgba(10, 34, 41, 0.08);
}

.td-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.td-detail-pill {
  border-radius: 999px;
  padding: 6px 10px;
  font: 700 12px "Manrope", sans-serif;
  background: #d1fae5;
  color: #065f46;
}

.td-pill-type {
  background: #e0f2fe;
  color: #075985;
}

.td-pill-open {
  background: #ecfccb;
  color: #3f6212;
}

.td-pill-expired {
  background: #fee2e2;
  color: #b91c1c;
}

.td-detail-hero h1 {
  margin: 14px 0 8px;
  
  color: var(--td-text);
}

.td-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font: 500 14px "Manrope", sans-serif;
  color: var(--td-muted);
}

.td-detail-meta i {
  color: var(--td-brand);
  margin-right: 6px;
}

.td-detail-actions {
  margin-top: 18px;
}

.td-detail-apply-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  border: none;
  border-radius: 14px;
  padding: 13px 20px;
  background: linear-gradient(90deg, var(--td-accent), #ea580c);
  color: #fff;
  font: 700 14px "Manrope", sans-serif;
  cursor: pointer;
}

.td-detail-apply-btn:hover {
  filter: brightness(1.04);
}

.td-detail-apply-btn.disabled,
.td-detail-apply-btn:disabled {
  background: #e2e8f0;
  color: #64748b;
  cursor: not-allowed;
}

.td-detail-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 1fr);
  gap: 16px;
}

.td-detail-card,
.td-side-card {
  background: var(--td-surface);
  border: 1px solid var(--td-border);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(10, 34, 41, 0.07);
}

.td-detail-card {
  padding: 20px;
}

.td-prose {
  font: 500 16px/1.8 "Manrope", sans-serif;
  color: #1f2f36;
}

.td-apply-card h3 {
  margin: 0;
  font: 700 26px/1.2 "Sora", sans-serif;
}

.td-apply-sub {
  margin: 8px 0 16px;
  color: var(--td-muted);
  font: 500 14px/1.7 "Manrope", sans-serif;
}

.td-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.td-field,
.td-file-input {
  display: grid;
  gap: 6px;
  font: 600 13px "Manrope", sans-serif;
  color: #32434a;
}

.td-field em,
.td-file-input em {
  color: #dc2626;
  font-style: normal;
}

.td-field input,
.td-field textarea,
.td-file-input input {
  border: 1px solid var(--td-border);
  border-radius: 10px;
  background: #e6e6e6;
  padding: 11px 12px;
  font: 500 14px "Manrope", sans-serif;
}

.td-field textarea {
  resize: vertical;
  min-height: 110px;
}

.td-full {
  grid-column: 1 / -1;
}

.td-file-input small {
  color: #6b7d86;
  font-size: 12px;
}

.td-submit-btn {
  margin-top: 14px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--td-brand), #115e59);
  color: #2897ff;
  padding: 12px 18px;
  font: 700 15px "Manrope", sans-serif;
  cursor: pointer;
}

.td-submit-btn:hover {
  filter: brightness(1.05);
}

.td-share-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.td-share-card span {
  font: 700 14px "Manrope", sans-serif;
  color: #2d3f47;
}

.td-nav-post {
  margin-top: 14px;
}

.td-nav-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.td-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-decoration: none;
  border: 1px solid var(--td-border);
  border-radius: 12px;
  background: #fff;
  padding: 12px;
  color: #1f2f36;
  font: 600 13px "Manrope", sans-serif;
}

.td-nav-item:hover {
  border-color: #9cc7c2;
}

.td-side-card {
  position: sticky;
  top: 20px;
  padding: 18px;
}

.td-side-card h4 {
  margin: 0 0 12px;
  font: 700 20px "Sora", sans-serif;
}

.td-side-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px dashed #d8e2e5;
  padding: 10px 0;
  font: 500 13px "Manrope", sans-serif;
}

.td-side-line span {
  color: #698089;
}

.td-side-line strong {
  color: #1f2f36;
  text-align: right;
}

.td-side-apply {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 12px;
  padding: 11px 14px;
  border: none;
  border-radius: 12px;
  text-decoration: none;
  background: linear-gradient(90deg, var(--td-accent), #ea580c);
  color: #fff;
  font: 700 14px "Manrope", sans-serif;
  cursor: pointer;
}

.td-side-apply.disabled {
  background: #e2e8f0;
  color: #64748b;
  pointer-events: none;
}

body.td-modal-open {
  overflow: hidden;
}

.td-apply-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.td-apply-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.td-apply-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 19, 27, 0.52);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.td-apply-modal.is-open .td-apply-modal__backdrop {
  opacity: 1;
}

.td-apply-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 32px));
  max-height: calc(100vh - 40px);
  margin: 0;
  background: #fff;
  overflow: auto;
  transform: translateY(22px) scale(0.98);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.td-apply-modal.is-open .td-apply-modal__dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.td-apply-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--td-border);
  border-radius: 999px;
  background: #fff;
  color: #1f2f36;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.td-apply-modal__close:hover {
  border-color: #9cc7c2;
}

@media (max-width: 1024px) {
  .td-detail-grid {
    grid-template-columns: 1fr;
  }

  .td-side-card {
    position: static;
  }
}

@media (max-width: 980px) {
  .td-list-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .td-career-hero {
    padding-top: 36px;
  }

  .td-hero-stats,
  .td-form-grid,
  .td-nav-row {
    grid-template-columns: 1fr;
  }

  .td-job-title {
    font-size: 20px;
  }

  .td-detail-card,
  .td-side-card,
  .td-detail-hero {
    border-radius: 14px;
    padding: 16px;
  }

  .td-detail-apply-btn {
    width: 100%;
  }

  .td-apply-modal__dialog {
    width: calc(100% - 8px);
    max-height: calc(100vh - 8px);
  }
}
