/* Subpages — About, Careers, News */
.page-main {
  padding-top: var(--header-h);
}

.page-hero {
  position: relative;
  padding: 64px 0 56px;
  background: linear-gradient(180deg, var(--blue-50) 0%, #fff 100%);
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, black 20%, transparent 85%);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--blue-600);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  color: var(--text-light);
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--blue-950);
  margin-bottom: 12px;
}

.page-hero .lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.7;
}

.page-section {
  padding: 72px 0;
}

.page-section.alt {
  background: var(--bg-subtle);
}

.page-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue-900);
  margin-bottom: 24px;
}

/* About */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-intro p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 1.0625rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.about-stat {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.about-stat strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue-700);
  margin-bottom: 4px;
}

.about-stat span {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.value-card {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.value-card:hover {
  border-color: var(--blue-200);
  box-shadow: var(--shadow-md);
}

.value-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--blue-800);
  margin-bottom: 8px;
}

.value-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.timeline {
  max-width: 720px;
  margin: 0 auto;
}

.timeline-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  padding-bottom: 32px;
  position: relative;
}

.timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 49px;
  top: 28px;
  bottom: 0;
  width: 2px;
  background: var(--blue-200);
}

.timeline-year {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-600);
  text-align: right;
}

.timeline-content h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.timeline-content p {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.team-card {
  text-align: center;
  padding: 24px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.team-avatar {
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
}

.team-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.team-card .role {
  font-size: 0.8125rem;
  color: var(--blue-600);
  margin-bottom: 8px;
}

.team-card p {
  font-size: 0.8125rem;
  color: var(--text-light);
}

/* List pages toolbar */
.list-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
  align-items: center;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-tab {
  padding: 8px 18px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.filter-tab:hover {
  border-color: var(--blue-300);
  color: var(--blue-700);
}

.filter-tab.active {
  background: var(--blue-600);
  border-color: var(--blue-600);
  color: #fff;
}

.list-search {
  margin-left: auto;
  position: relative;
  min-width: 220px;
}

.list-search input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.9375rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.list-search input:focus {
  outline: none;
  border-color: var(--blue-400);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.list-search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-light);
}

/* Job cards */
.job-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.job-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px 24px;
  align-items: flex-start;
  padding: 24px 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.job-card:hover {
  border-color: var(--blue-300);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.job-card.hidden {
  display: none;
}

.job-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--blue-900);
  margin-bottom: 6px;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.job-tag {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 10px;
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 6px;
}

.job-requirements-block {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.job-requirements-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--blue-700);
  margin-bottom: 10px;
}

.job-requirements {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.job-requirements li {
  position: relative;
  padding-left: 18px;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.job-requirements li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--blue-400);
  border-radius: 50%;
}

.job-card .arrow {
  margin-top: 4px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-50);
  border-radius: 10px;
  color: var(--blue-600);
  transition: background 0.2s;
}

.job-card:hover .arrow {
  background: var(--blue-600);
  color: #fff;
}

.perks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.perk-card {
  padding: 24px;
  background: linear-gradient(160deg, var(--blue-50), #fff);
  border: 1px solid var(--blue-200);
  border-radius: var(--radius);
}

.perk-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--blue-800);
  margin-bottom: 8px;
}

.perk-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Job detail */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

.detail-content {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.detail-content h2 {
  font-size: 1.25rem;
  margin-top: 32px;
  margin-bottom: 16px;
}

.detail-content h2:first-child {
  margin-top: 0;
}

.detail-content p,
.detail-content li {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.detail-content ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

.detail-content li {
  margin-bottom: 8px;
}

.detail-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.sidebar-card {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.sidebar-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--blue-900);
}

.sidebar-meta {
  list-style: none;
  margin-bottom: 24px;
}

.sidebar-meta li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
}

.sidebar-meta li:last-child {
  border-bottom: none;
}

.sidebar-meta .label {
  color: var(--text-light);
}

.sidebar-meta .value {
  font-weight: 500;
  color: var(--text);
}

/* News */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.news-card:hover {
  border-color: var(--blue-200);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.news-card.hidden {
  display: none;
}

.news-card.featured {
  grid-column: span 2;
  flex-direction: row;
}

.news-thumb {
  height: 180px;
  background: var(--gradient);
  position: relative;
  flex-shrink: 0;
}

.news-card.featured .news-thumb {
  width: 45%;
  height: auto;
  min-height: 220px;
}

.news-thumb .category {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--blue-700);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 6px;
}

.news-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-body time {
  font-size: 0.8125rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

.news-body h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--blue-900);
  margin-bottom: 8px;
  line-height: 1.4;
}

.news-card.featured .news-body h3 {
  font-size: 1.375rem;
}

.news-body p {
  font-size: 0.875rem;
  color: var(--text-muted);
  flex: 1;
  line-height: 1.6;
}

.read-more {
  margin-top: 16px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue-600);
}

/* News detail */
.article-header {
  max-width: 720px;
  margin-bottom: 40px;
}

.article-header .category {
  display: inline-block;
  padding: 4px 12px;
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 6px;
  margin-bottom: 16px;
}

.article-header h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--blue-950);
  margin-bottom: 16px;
  line-height: 1.25;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.article-cover {
  height: 360px;
  background: var(--gradient);
  border-radius: var(--radius-lg);
  margin-bottom: 40px;
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
}

.article-body h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--blue-900);
  margin: 40px 0 16px;
}

.article-body p {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.article-body blockquote {
  margin: 32px 0;
  padding: 20px 24px;
  background: var(--blue-50);
  border-left: 4px solid var(--blue-500);
  border-radius: 0 12px 12px 0;
  font-size: 1.0625rem;
  color: var(--blue-800);
  font-style: italic;
}

.related-news {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.related-news h2 {
  font-size: 1.25rem;
  margin-bottom: 24px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.related-card {
  padding: 20px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, background 0.2s;
}

.related-card:hover {
  border-color: var(--blue-300);
  background: var(--blue-50);
}

.related-card time {
  font-size: 0.75rem;
  color: var(--text-light);
}

.related-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--blue-900);
  margin-top: 6px;
}

.empty-state {
  text-align: center;
  padding: 48px;
  color: var(--text-muted);
  display: none;
}

.empty-state.show {
  display: block;
}

@media (max-width: 900px) {
  .about-intro,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .values-grid,
  .perks-grid,
  .team-grid {
    grid-template-columns: 1fr 1fr;
  }

  .news-grid {
    grid-template-columns: 1fr 1fr;
  }

  .news-card.featured {
    grid-column: span 2;
    flex-direction: column;
  }

  .news-card.featured .news-thumb {
    width: 100%;
    min-height: 180px;
  }

  .detail-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .values-grid,
  .perks-grid,
  .team-grid,
  .news-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .news-card.featured {
    grid-column: span 1;
  }

  .job-card {
    grid-template-columns: 1fr;
  }

  .list-search {
    margin-left: 0;
    width: 100%;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .timeline-item::before {
    display: none;
  }

  .detail-content {
    padding: 24px;
  }
}
