/* css/about.css */
.header-section {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 12px 5% 44px;
  text-align: center;
  position: relative;
}

.header-section::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 50%;
  width: min(82vw, 720px);
  height: min(82vw, 720px);
  transform: translateX(-50%);
  background: radial-gradient(circle at center, rgba(111, 106, 255, 0.16) 0%, transparent 66%);
  z-index: -1;
}

.header-section h1 {
  font-size: clamp(2.3rem, 11vw, 4.1rem);
  margin-bottom: 16px;
  letter-spacing: -0.04em;
  color: #fff;
  font-weight: 800;
  line-height: 1.05;
}

.header-section p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1rem;
}

.resource-section,
.dept-section {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 5% 56px;
}

.dept-section {
  padding-bottom: 72px;
}

.section-title {
  font-size: clamp(1.7rem, 8vw, 2.3rem);
  text-align: left;
  margin-bottom: 24px;
  color: #fff;
  font-weight: 800;
  line-height: 1.15;
}

.resource-grid,
.dept-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.resource-card,
.dept-box {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(21, 23, 32, 0.92) 0%, rgba(12, 13, 20, 0.98) 100%);
  box-shadow: var(--shadow);
}

.resource-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  transition:
    transform 0.35s var(--ease-standard),
    border-color 0.35s var(--ease-standard),
    background 0.35s var(--ease-standard);
}

.resource-card:hover,
.dept-box:hover {
  transform: translateY(-5px);
  border-color: rgba(210, 107, 255, 0.22);
  background: linear-gradient(180deg, rgba(27, 30, 42, 0.96) 0%, rgba(16, 18, 25, 0.98) 100%);
}

.resource-icon {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  background: rgba(111, 106, 255, 0.15);
  color: var(--primary-light);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(111, 106, 255, 0.2);
}

.resource-content h3 {
  font-size: 1.18rem;
  margin-bottom: 8px;
  color: #fff;
}

.resource-content p,
.dept-box p {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.7;
}

.dept-box {
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.35s var(--ease-standard),
    border-color 0.35s var(--ease-standard),
    background 0.35s var(--ease-standard);
}

.dept-tag {
  position: static;
  display: inline-flex;
  flex-wrap: wrap;
  max-width: 100%;
  margin-bottom: 14px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(210, 107, 255, 0.12);
  color: var(--primary-light);
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: 0.08em;
  border: 1px solid rgba(210, 107, 255, 0.2);
}

.dept-box h2 {
  color: #fff;
  margin-bottom: 12px;
  font-size: 1.48rem;
  line-height: 1.2;
}

@media (min-width: 900px) {
  .header-section,
  .resource-section,
  .dept-section {
    padding-left: 8%;
    padding-right: 8%;
  }

  .header-section {
    padding-top: 18px;
    padding-bottom: 56px;
  }

  .header-section p {
    font-size: 1.1rem;
  }

  .resource-section,
  .dept-section {
    padding-bottom: 72px;
  }

  .section-title {
    margin-bottom: 32px;
  }

  .resource-grid,
  .dept-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .resource-card,
  .dept-box {
    padding: 24px;
  }

  .resource-card {
    min-height: 220px;
  }
}
