/* บริการวิชาการสถาบัน — โทนปุ่มเดิม #124273 / #0f4174 */
.as-page {
  background: #f3f7fb;
  color: #16324d;
  font-family: "Prompt", sans-serif;
  padding-bottom: 72px;
}

.as-page * { box-sizing: border-box; }

.as-hero {
  background:
    radial-gradient(820px 320px at 100% 0%, rgba(255, 255, 255, 0.16), transparent 58%),
    linear-gradient(155deg, #0f4174 0%, #124273 52%, #0c3258 100%);
  color: #ffffff;
  padding: 36px 0 88px;
}

.as-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 32px;
  align-items: center;
}

.as-college {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.as-hero h1 {
  margin: 0;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
}

.as-lead {
  margin: 12px 0 0;
  max-width: 640px;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
}

.as-hero-card {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.28));
}

.as-wrap {
  margin-top: -52px;
  position: relative;
  z-index: 2;
}

.as-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.as-year-card,
.as-project-card,
.as-detail {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #ffffff;
  border: 1px solid #d5e4f2;
  border-radius: 22px;
  box-shadow: 0 12px 32px rgba(18, 66, 115, 0.1);
  overflow: hidden;
}

.as-year-band {
  padding: 22px 22px 18px;
  background:
    radial-gradient(240px 90px at 100% 0%, rgba(255, 255, 255, 0.16), transparent 70%),
    linear-gradient(160deg, #16528f 0%, #124273 58%, #0f4174 100%);
  color: #ffffff;
}

.as-year-type {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.as-year-num {
  margin: 4px 0 0;
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  color: #ffffff;
}

.as-stats {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 6px 22px 8px;
}

.as-stats div {
  padding: 12px 0;
  border-top: 1px solid #e6eef6;
}

.as-stats dt {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: #5c7388;
}

.as-stats dd {
  margin: 2px 0 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15;
  color: #124273;
}

.as-stats dd.is-text {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
  color: #5c7388;
}

.as-year-card .as-btn,
.as-project-card .as-btn {
  margin: 4px 18px 18px;
}

.as-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 16px;
  border-radius: 12px;
  background: #124273;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}

.as-btn:hover,
.as-btn:focus {
  background: #0f4174;
  color: #ffffff;
  text-decoration: none;
}

.as-project-card { padding: 18px 18px 8px; }

.as-project-card h2,
.as-detail h2 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.45;
  color: #12304f;
}

.as-meta {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.as-meta li {
  font-size: 14px;
  line-height: 1.5;
  color: #16324d;
}

.as-meta span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #5c7388;
}

.as-summary {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.65;
  color: #2c4a64;
}

.as-year-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 18px;
  padding: 22px 24px;
  background: #ffffff;
  border: 1px solid #d5e4f2;
  border-radius: 22px;
  box-shadow: 0 12px 32px rgba(18, 66, 115, 0.1);
}

.as-year-head h1 {
  margin: 0;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.2;
  color: #124273;
}

.as-year-count {
  margin: 4px 0 0;
  font-size: 18px;
  color: #16324d;
}

.as-year-count strong {
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  color: #124273;
}

.as-back {
  color: #124273;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.as-back:hover { color: #0f4174; text-decoration: underline; }

.as-detail { padding: 22px 24px 24px; }

.as-detail .as-summary { margin-bottom: 8px; }

.as-detail-body {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.75;
  color: #16324d;
}

.as-figure {
  margin: 8px 0 0;
}

.as-figure img {
  display: block;
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid #d5e4f2;
}

.as-figure figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: #5c7388;
}

.as-report { margin-top: 16px; align-self: flex-start; min-width: 180px; }

.as-empty {
  padding: 36px 20px;
  text-align: center;
  background: #ffffff;
  border: 1px dashed #b7cbe0;
  border-radius: 22px;
  color: #3e5c78;
}

.as-empty p {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.as-page a:focus-visible {
  outline: 3px solid #124273;
  outline-offset: 2px;
}

@media (max-width: 991.98px) {
  .as-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
  .as-hero { padding: 28px 0 76px; }
  .as-hero-grid { grid-template-columns: 1fr; }
  .as-hero h1,
  .as-year-head h1 { font-size: 30px; }
  .as-hero-card { max-width: 240px; margin: 0 auto; }
  .as-year-num { font-size: 48px; }
  .as-grid { grid-template-columns: 1fr; }
  .as-year-head { padding: 18px; }
}
