.detail-page { --red: #b51b32; --ink: #222; min-width: 320px; background: #fff; }
.detail-page .site-header { position: relative; height: 80px; background: #fff; box-shadow: 0 3px 12px rgba(138,74,59,.1); }
.detail-page .header-inner { width: min(1700px, calc(100% - 64px)); height: 80px; }
.detail-page .main-nav { gap: 60px; }
.detail-page .main-nav a { font-size: 20px; }
.detail-page .chevron { width: 0; height: 0; margin-left: 7px; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px); }
.detail-page .container { width: min(1400px, calc(100% - 64px)); }
.breadcrumb { height: 80px; display: flex; align-items: center; gap: 12px; color: rgba(34,34,34,.5); font-size: 16px; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb strong { color: var(--ink); font-weight: 400; }
.news-detail { min-height: 1441px; }
.article-heading { height: 135px; text-align: center; }
.article-heading h1 { margin: 0; font: 700 48px/69px var(--serif); color: var(--ink); }
.article-heading time { display: block; margin-top: 5px; color: rgba(34,34,34,.6); font-size: 18px; line-height: 26px; }
.article-intro, .article-outro { width: 100%; color: var(--ink); font-size: 20px; line-height: 34px; text-align: justify; }
.article-intro { height: 544px; }
.article-intro p, .article-outro p { margin: 0; }
.article-image { width: 708px; height: 400px; margin: 28px auto; }
.article-image img { width: 708px; height: 400px; border-radius: 14px; object-fit: cover; }
.article-outro { height: 306px; }
.detail-page .site-footer { margin-top: 46px; }

@media (max-width: 1450px) { .detail-page .main-nav { gap: 24px; } .detail-page .main-nav a { font-size: 17px; } .article-heading h1 { font-size: 42px; } .article-intro, .article-outro { font-size: 18px; line-height: 31px; } }
@media (max-width: 1100px) { .detail-page .site-header,.detail-page .header-inner { height: 72px; } .detail-page .header-inner { width: calc(100% - 40px); } .detail-page .main-nav { gap: 0; } .news-detail { min-height: 0; } .article-heading { height: auto; padding: 12px 0 30px; } .article-intro, .article-outro { height: auto; } .article-image { margin: 28px auto; } .detail-page .site-footer { margin-top: 64px; } }
@media (max-width: 700px) { .detail-page .container { width: calc(100% - 40px); } .breadcrumb { height: 56px; gap: 8px; font-size: 13px; } .article-heading { padding: 12px 0 26px; } .article-heading h1 { font-size: 30px; line-height: 1.5; } .article-heading time { margin-top: 4px; font-size: 14px; line-height: 22px; } .article-intro, .article-outro { font-size: 15px; line-height: 1.8; text-align: left; } .article-intro p, .article-outro p { margin-bottom: 6px; } .article-image { width: 100%; height: auto; margin: 22px auto; } .article-image img { width: 100%; height: auto; border-radius: 10px; } .detail-page .site-footer { margin-top: 42px; } }

/* Shared detail header and the two editorial list pages. */
.detail-page .site-header { background: #fff; }
.detail-page .header-inner { position: relative; }
.detail-page .main-nav { position: absolute; left: 50%; transform: translateX(-50%); gap: clamp(28px, 3.2vw, 58px); }
.detail-page .main-nav a { font-size: 20px; letter-spacing: .02em; }
.detail-page .header-actions { display: none; }
.detail-hero { position: relative; display: grid; min-height: 270px; place-items: center; overflow: hidden; text-align: center; background: linear-gradient(135deg, #fff5f6 0%, #f8e6e9 100%); }
.detail-hero::before, .detail-hero::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; }
.detail-hero::before { width: 360px; height: 360px; left: -130px; top: -160px; background: rgba(181,27,50,.08); }
.detail-hero::after { width: 300px; height: 300px; right: -90px; bottom: -160px; background: rgba(255,255,255,.66); }
.detail-hero .container { position: relative; z-index: 1; }
.detail-hero h1 { color: var(--red); font: 700 48px/1.35 var(--serif); letter-spacing: .08em; }
.detail-hero p { max-width: 680px; margin: 14px auto 0; color: rgba(34,34,34,.62); font-size: 18px; line-height: 1.8; }
.news-page-list, .students-page { padding-top: 58px; padding-bottom: 72px; }
.news-page-list { background: #fff; }
.news-categories { display: flex; justify-content: center; gap: 52px; margin: 0 0 40px; }
.news-category { display: inline-flex; align-items: center; justify-content: center; width: 216px; min-height: 57px; padding: 10px 20px; border-radius: 40px; background: var(--pink); font-size: 24px; line-height: 35px; transition: background .2s, color .2s; }
.news-category:hover { color: var(--red); background: #f3dce1; }
.news-category.active { color: #fff; background: var(--red); }
.news-page-list .news-list { grid-template-columns: minmax(0, 1fr); gap: 36px; }
.news-page-list .news-item { display: grid; grid-template-columns: minmax(0, 1fr) 410px; align-items: center; gap: 28px; min-height: 284px; padding: 28px; border: 0; border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.news-page-list .news-image-link { display: block; overflow: hidden; border-radius: 16px; }
.news-page-list .news-thumb { width: 100%; height: auto; aspect-ratio: 410 / 228; border-radius: 16px; object-fit: cover; transition: transform .3s; }
.news-page-list .news-image-link:hover .news-thumb { transform: scale(1.025); }
.news-page-list .news-copy { padding: 0; min-width: 0; }
.news-page-list .news-copy h2 { color: var(--red); font: 700 26px/37px var(--serif); text-align: left; }
.news-page-list .news-copy h2 a:hover { text-decoration: underline; text-underline-offset: 5px; }
.news-page-list .news-copy p { margin-top: 20px; color: var(--ink); font-size: 20px; line-height: 32px; overflow-wrap: anywhere; }
.news-page-list .news-copy time { display: block; margin-top: 20px; padding: 0; color: var(--muted); background: none; font-size: 18px; line-height: 26px; }
@media (max-width: 1450px) {
  .news-page-list .news-item { grid-template-columns: minmax(0, 1fr) 32%; }
}
.students-page { background: linear-gradient(180deg, rgba(255,248,249,.72), #fff 260px); }
.students-page .students-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.students-page .student-card { min-height: 286px; height: auto; border: 1px solid rgba(181,27,50,.12); border-radius: 20px; background: #fff; box-shadow: 0 10px 28px rgba(89,39,40,.07); transition: transform .25s ease, box-shadow .25s ease; }
.students-page .student-card:hover { transform: translateY(-5px); box-shadow: 0 16px 36px rgba(89,39,40,.13); }
.students-page .student-card-inner { position: relative; padding: 28px 28px 24px; }
.students-page .student-card-inner::before { content: '“'; position: absolute; right: 23px; top: 13px; color: rgba(181,27,50,.12); font: 700 72px/1 var(--serif); }
.students-page .student-meta { color: var(--ink); font-size: 16px; line-height: 32px; font-weight: 600; }
.students-page .student-avatar { width: 38px; height: 38px; flex-basis: 38px; font-size: 16px; }
.students-page .student-quote { display: -webkit-box; overflow: hidden; margin-top: 20px; color: rgba(34,34,34,.78); font-size: 17px; line-height: 1.9; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.students-page .student-tag { margin-top: auto; padding: 4px 13px; color: var(--red); background: #fff0f2; font-size: 13px; }
.detail-page .page { margin-top: 38px; text-align: center; }

/* List headings follow the learning-system page title. */
.course-list { padding-top: 60px; padding-bottom: 32px; }
.students-page.student-list { padding-top: 60px; background: #fff; }
.course-page-title, .student-page-title { margin: 0 0 13px; color: var(--ink); text-align: center; font: 700 44px/63px var(--serif); }
.detail-page .list-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 56px; padding: 24px 0 8px; border-top: 1px solid #f1e8ea; font-size: 15px; line-height: 24px; }
.list-pagination .page-status { flex-basis: 100%; margin-bottom: 6px; color: var(--muted); font-size: 14px; }
.list-pagination .page-numbar { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.list-pagination a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 9px 16px; border: 1px solid #eadde0; border-radius: 10px; background: #fff; color: #555; white-space: nowrap; transition: color .2s, border-color .2s, background .2s; }
.list-pagination a:hover { color: var(--red); border-color: var(--red); background: #fff5f6; }
.list-pagination a.page-num-current { color: #fff; border-color: var(--red); background: var(--red); font-weight: 600; }
.list-pagination a[href="javascript:;"] { color: #a5a0a1; border-color: #eee9ea; background: #f8f6f7; cursor: default; }
@media (max-width: 1450px) {
  .course-list, .students-page.student-list { padding-top: 48px; }
}

@media (max-width: 1100px) {
  .detail-page .main-nav { position: absolute; left: 0; transform: none; gap: 0; }
  .detail-hero { min-height: 230px; }
  .detail-hero h1 { font-size: 40px; }
  .news-page-list, .students-page { padding-top: 40px; padding-bottom: 56px; }
  .news-page-list .news-copy p { font-size: 17px; line-height: 28px; }
  .students-page .students-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .course-list { padding-top: 28px; padding-bottom: 16px; }
  .students-page.student-list { padding-top: 28px; }
  .course-page-title, .student-page-title { margin-bottom: 18px; font-size: 30px; line-height: 44px; }
  .detail-page .list-pagination { gap: 8px; margin-top: 36px; padding-top: 20px; font-size: 13px; }
  .list-pagination .page-numbar { gap: 8px; }
  .list-pagination a { min-width: 40px; padding: 9px 10px; border-radius: 8px; }
  .list-pagination .page-status { font-size: 12px; }
  .detail-hero { min-height: 190px; }
  .detail-hero h1 { font-size: 31px; letter-spacing: .05em; }
  .detail-hero p { margin-top: 8px; font-size: 14px; line-height: 1.65; }
  .news-page-list, .students-page { padding-top: 28px; padding-bottom: 42px; }
  .news-page-list .news-list { grid-template-columns: 1fr; gap: 18px; }
  .news-categories { gap: 20px; margin-bottom: 28px; }
  .news-category { width: 150px; min-height: 44px; padding: 6px 12px; font-size: 18px; line-height: 30px; }
  .news-page-list .news-item { display: flex; flex-direction: column; align-items: stretch; min-height: 0; gap: 18px; padding: 20px; border-radius: 16px; }
  .news-page-list .news-image-link { order: -1; }
  .news-page-list .news-thumb { height: auto; aspect-ratio: 410 / 228; }
  .news-page-list .news-copy { padding: 0; }
  .news-page-list .news-copy h2 { font-size: 22px; line-height: 34px; }
  .news-page-list .news-copy p { margin-top: 12px; font-size: 15px; line-height: 26px; }
  .news-page-list .news-copy time { margin-top: 12px; font-size: 14px; }
  .students-page .students-grid { grid-template-columns: 1fr; gap: 16px; }
  .students-page .student-card { min-height: 0; }
  .students-page .student-card-inner { padding: 22px 21px 20px; }
  .students-page .student-quote { margin-top: 15px; font-size: 15px; line-height: 1.8; }
}
