/* =========================
   Inner Page Shared Styles
   Used by: services, blog, news, results pages
========================= */

/* =========================
   Page Hero
========================= */
.page-hero {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 100%);
  color: #fff;
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
}

/* 日暘太陽紋：80×80 tile 重複鋪滿 banner 作為品牌底紋（隱晦） */
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("/assets/images/sun-motif.svg") top left / 80px 80px repeat;
  pointer-events: none;
  opacity: 0.45;
}

.page-hero__inner { position: relative; z-index: 1; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  opacity: 0.65;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { opacity: 0.5; }

.page-hero__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 12px;
  display: block;
}

.page-hero__title {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.025em;
}

.page-hero__desc {
  font-size: 17px;
  opacity: 0.82;
  max-width: 64ch;
  line-height: 1.75;
  margin: 0 0 32px;
  /* 啟用智慧斷行：避免單詞或短語被切在不合適的位置（Chrome 117+ / Safari 17.4+） */
  text-wrap: pretty;
}

/* 手機螢幕窄，桌機加的 <br/> 反而會切出過短的行；隱藏 <br/> 讓文字自由依瀏覽器寬度自動斷句 */
@media (max-width: 700px) {
  .page-hero__desc br,
  .cta-box p br,
  .video-content p br,
  .hero__sub-slogan br,
  .tutoring-hero__sub br,
  .footer-cta-desc br {
    display: none;
  }
}

.page-hero__stats {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.18);
}

.page-hero__stats > div {
  flex: 1;
  min-width: 120px;
  text-align: center;
  padding: 0 12px;
  position: relative;
}

.page-hero__stats > div + div::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 44px;
  background: rgba(255,255,255,0.2);
}

.page-hero__stat-num {
  font-size: clamp(22px, 3.4vw, 40px);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--gold-light);
  line-height: 1.1;
  margin-bottom: 6px;
  overflow-wrap: anywhere;
}

.page-hero__stat-label {
  font-size: 13px;
  opacity: 0.78;
  letter-spacing: 0.04em;
}

@media (max-width: 600px) {
  .page-hero__stats { gap: 4px 0; }
  .page-hero__stats > div { min-width: 50%; padding: 12px 6px; }
  .page-hero__stats > div + div::before { display: none; }
  .page-hero__stat-num { font-size: clamp(20px, 5.5vw, 28px); }
  .page-hero__stat-label { font-size: 12px; }
}
@media (max-width: 380px) {
  .page-hero__stats > div { min-width: 100%; }
}

/* =========================
   Inner Page Body
========================= */
.inner-body {
  padding: 72px 0 100px;
}

.inner-body.has-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  align-items: start;
}

/* Reusable content+sidebar layout used by blog/news pages */
.content-sidebar-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 56px;
  align-items: start;
}
/* 防止 grid track 被寬內容（表格、長英文字串）撐爆，導致整頁橫向滾動 */
.content-sidebar-grid > * { min-width: 0; }

@media (max-width: 900px) {
  .inner-body.has-sidebar {
    grid-template-columns: 1fr;
  }
  .inner-sidebar { order: -1; }

  .content-sidebar-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  /* 手機上文章本體優先呈現，側欄移到底部（提升閱讀流暢度） */
  .content-sidebar-grid > aside {
    order: 1;
  }

  .service-intro-row {
    grid-template-columns: 1fr !important;
  }
}

/* =========================
   Service Cards (Inner)
========================= */
.service-detail-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 80px 0;
}

.service-detail-hero .image-block img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

@media (max-width: 860px) {
  .service-detail-hero { grid-template-columns: 1fr; }
  .service-detail-hero .image-block img { height: 280px; }
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.feature-card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid var(--border);
  transition: 0.3s;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  background: #fff;
  box-shadow: var(--shadow);
  border-color: var(--gold);
  transform: translateY(-4px);
}

.feature-card__icon {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  background: var(--brand);
  color: var(--gold-light);
  border-radius: 6px;
  padding: 5px 10px;
  margin-bottom: 16px;
  line-height: 1;
}

.feature-card__title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text);
}

.feature-card__desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
  flex: 1;
}

.feature-card__url {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  font-size: 12px;
  color: var(--gold);
  font-weight: 700;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: 0.01em;
  word-break: break-all;
  text-align: left;
}

@media (max-width: 860px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
}

/* Step List */
.step-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 40px;
}

.step-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.step-content__title {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--text);
}

.step-content__desc {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

/* Course Items */
.course-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
  font-size: 14.5px;
}

.course-table th {
  background: var(--brand);
  color: #fff;
  padding: 14px 18px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.05em;
}

.course-table th:first-child { border-radius: var(--radius) 0 0 0; }
.course-table th:last-child { border-radius: 0 var(--radius) 0 0; }

.course-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: top;
}

.course-table tr:last-child td { border-bottom: none; }
.course-table tr:nth-child(even) td { background: var(--bg-alt); }
.course-table tr:hover td { background: var(--gold-light); }

/* CTA Box */
.cta-box {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  color: #fff;
  margin-top: 60px;
}

.cta-box h3 {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.cta-box p {
  font-size: 16px;
  opacity: 0.85;
  max-width: 60ch;
  line-height: 1.75;
  margin: 0 auto 28px;
  text-wrap: pretty;
}

.cta-box .btn-gold {
  font-size: 16px;
  padding: 14px 40px;
}

/* =========================
   Blog / News Article List
========================= */
.article-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.article-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: 0.3s;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-6px);
  border-color: transparent;
}

.article-card__thumb {
  height: 200px;
  background: var(--bg-alt);
  overflow: hidden;
}

.article-card__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: 0.4s;
}

.article-card:hover .article-card__thumb img {
  transform: scale(1.05);
}

/* Placeholder thumbnail when no image */
.article-card__thumb-placeholder {
  height: 200px;
  background: linear-gradient(135deg, #EDE0DC 0%, #F5ECD7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  color: transparent;
  position: relative;
}
.article-card__thumb-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='20' r='2' fill='%23C8B8A8' opacity='0.4'/%3E%3C/svg%3E") center/40px repeat;
}
.article-card__thumb-placeholder img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
}
.article-card__thumb-placeholder:has(img)::after { display: none; }
.article-card__thumb-placeholder:has(img) { background: #C8B8A8; }

.article-card__body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.article-card__date {
  font-size: 12px;
  color: var(--muted);
}

.article-card__title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 10px;
  color: var(--text);
  flex: 1;
}

.article-card:hover .article-card__title { color: var(--brand); }

.article-card__excerpt {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 16px;
}

.article-card__readmore {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
}

/* Featured Article (full width) */
.article-card.is-featured {
  grid-column: 1 / -1;
  flex-direction: row;
}

.article-card.is-featured .article-card__thumb,
.article-card.is-featured .article-card__thumb-placeholder {
  height: auto;
  width: 420px;
  min-height: 260px;
  flex-shrink: 0;
}

@media (max-width: 760px) {
  .article-card.is-featured { flex-direction: column; }
  .article-card.is-featured .article-card__thumb { width: 100%; height: 200px; }
}

@media (max-width: 640px) {
  .article-grid { grid-template-columns: 1fr; }
}

/* =========================
   Sidebar
========================= */
.inner-sidebar {}

.sidebar-widget {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}

.sidebar-widget__title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

/* 雙 class selector 提高 specificity，覆蓋部分文章 inline 的 .article-body ul/li 樣式 */
.sidebar-widget .sidebar-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-widget .sidebar-link-list li {
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.5;
  color: inherit;
}
.sidebar-widget .sidebar-link-list li:last-child { border-bottom: none; }

.sidebar-widget .sidebar-link-list a {
  display: block;
  padding: 10px 0;
  font-size: 14px;
  color: var(--muted);
  transition: var(--transition);
}

.sidebar-widget .sidebar-link-list a:hover {
  color: var(--brand);
  padding-left: 6px;
}

.sidebar-widget .sidebar-link-list a.active {
  color: var(--brand);
  font-weight: 600;
}

/* Contact sidebar widget */
.contact-widget {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff;
  text-align: center;
}

.contact-widget .sidebar-widget__title { color: var(--gold-light); border-color: rgba(255,255,255,0.2); }

/* 使用雙 class 提高 specificity，蓋過 article 頁的 .article-body p 顏色 */
.sidebar-widget.contact-widget p,
.contact-widget p.contact-widget__desc {
  font-size: 14px;
  color: #fff;
  opacity: 0.85;
  margin: 0 0 18px;
  line-height: 1.6;
  word-break: keep-all !important;
  line-break: strict;
  overflow-wrap: break-word;
  text-wrap: pretty;
}

/* 中文側欄文字斷句保護：將「日暘」「顧問」這類詞組視為整體，不在中間斷行
   使用 !important 蓋過部分文章 inline <style> 中的 .article-body p 設定 */
.sidebar-widget p,
.sidebar-widget h3,
.sidebar-widget div:not(.sidebar-widget__title) {
  word-break: keep-all !important;
  line-break: strict;
  overflow-wrap: break-word;
  text-wrap: pretty;
}

/* 替代結構：news 文章的 contact widget 缺 sidebar-widget class，補對應樣式 */
.contact-widget__title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.contact-widget .btn-gold { width: 100%; justify-content: center; }

/* =========================
   Leaderboard / Rankings Tables
========================= */
.leaderboard-section {
  padding: 72px 0;
}

.leaderboard-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.leaderboard-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.leaderboard-table thead th {
  background: var(--brand);
  color: #fff;
  padding: 16px 18px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.leaderboard-table tbody td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
  background: #fff;
  vertical-align: middle;
}

.leaderboard-table tbody tr:last-child td { border-bottom: none; }
.leaderboard-table tbody tr:hover td { background: var(--bg-alt); }

/* Gold rows for top 3 */
.leaderboard-table tbody tr.rank-1 td { background: #FFFBF0; }
.leaderboard-table tbody tr.rank-2 td { background: #FAFAFA; }
.leaderboard-table tbody tr.rank-3 td { background: #FFF9F5; }

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
}

.rank-badge.gold { background: #F5C842; color: #7A5700; }
.rank-badge.silver { background: #C8C8C8; color: #444; }
.rank-badge.bronze { background: #D9884A; color: #fff; }
.rank-badge.other { background: var(--bg-alt); color: var(--muted); }

.score-cell {
  font-size: 20px;
  font-weight: 900;
  color: var(--brand);
  letter-spacing: -0.02em;
}

.school-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.school-chip {
  background: var(--gold-light);
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 50px;
  border: 1px solid rgba(184,148,63,0.25);
}

/* =========================
   Special: Low GPA Comeback
========================= */
.comeback-section {
  background: linear-gradient(135deg, #FFF9F0 0%, #FFF5E6 100%);
  border: 1px solid rgba(184,148,63,0.25);
  border-radius: var(--radius-lg);
  padding: 48px;
  margin: 48px 0;
}

.comeback-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
}

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

.comeback-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid rgba(184,148,63,0.2);
  box-shadow: var(--shadow-sm);
}

.comeback-card__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px;
}

.comeback-card__gpa {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 12px;
}

.comeback-card__gpa .old-gpa {
  color: #dc2626;
  font-weight: 600;
  text-decoration: line-through;
  margin-right: 4px;
}

.comeback-card__gpa .arrow {
  color: var(--gold);
  font-weight: 700;
  margin: 0 4px;
}

.comeback-card__schools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.comeback-card__story {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 12px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

@media (max-width: 760px) {
  .comeback-grid { grid-template-columns: 1fr 1fr; }
  .comeback-section { padding: 32px 24px; }
}
@media (max-width: 500px) {
  .comeback-grid { grid-template-columns: 1fr; }
}

/* =========================
   Testimonials / Thank You
========================= */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: 0.3s;
  position: relative;
}

.testimonial-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
  border-color: var(--gold);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 20px; right: 28px;
  font-size: 72px;
  color: var(--gold-light);
  font-family: Georgia, serif;
  line-height: 1;
  font-weight: 700;
}

.testimonial-card__quote {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  margin: 0 0 24px;
  font-style: italic;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-card__avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--brand);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
  flex-shrink: 0;
}

.testimonial-card__avatar img { width: 100%; height: 100%; object-fit: cover; }

.testimonial-card__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 3px;
}

.testimonial-card__school {
  font-size: 12px;
  color: var(--muted);
}

.school-admit-tag {
  display: inline-block;
  background: var(--gold-light);
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  margin-top: 6px;
}

@media (max-width: 700px) {
  .testimonial-grid { grid-template-columns: 1fr; }
}

/* =========================
   Results / College Cards
========================= */
.adm-hero {
  padding: 72px 0 60px;
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.adm-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("/assets/images/sun-motif.svg") top left / 80px 80px repeat;
  pointer-events: none;
  opacity: 0.45;
  z-index: 0;
}
.adm-hero .container { position: relative; z-index: 1; }

.adm-hero__title {
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 900;
  margin: 0 0 24px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.adm-accent { color: var(--gold-light); }

.adm-stats-row {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.18);
}

.adm-stats-row .stat-item {
  flex: 1;
  min-width: 120px;
  text-align: center;
  padding: 0 12px;
  position: relative;
}

.adm-stats-row .stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 44px;
  background: rgba(255,255,255,0.2);
}

.adm-stats-row .stat-item strong {
  display: block;
  font-size: clamp(22px, 3.4vw, 40px);
  font-weight: 900;
  color: var(--gold-light);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 6px;
}

.adm-stats-row .stat-item span {
  font-size: 13px;
  opacity: 0.78;
  letter-spacing: 0.04em;
}

@media (max-width: 600px) {
  .adm-stats-row { gap: 4px 0; }
  .adm-stats-row .stat-item { min-width: 50%; padding: 12px 6px; }
  .adm-stats-row .stat-item + .stat-item::before { display: none; }
  .adm-stats-row .stat-item strong { font-size: clamp(20px, 5.5vw, 28px); }
  .adm-stats-row .stat-item span { font-size: 12px; }
}

/* School logo wall */
.adm-summary-wall {
  padding: 40px 0;
  background: var(--bg-alt);
}

.wall-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  border: 1px solid var(--border);
}

.wall-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 20px;
}

.wall-card .logo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.wall-card .logo-item {
  padding: 9px 18px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.08em;
  transition: 0.2s;
}

.wall-card .logo-item:hover {
  background: var(--gold-light);
  border-color: var(--gold);
}

/* Filter nav */
.adm-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 32px 0 20px;
}

.nav-btn {
  padding: 9px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  transition: 0.2s;
}

.nav-btn:hover { border-color: var(--brand); color: var(--brand); }
.nav-btn.active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* Admission cards grid — 多欄佈局，依各卡片高度自然堆疊不留空白 */
.adm-grid {
  column-count: auto;
  column-width: 340px;
  column-gap: 24px;
  padding-bottom: 80px;
}
.adm-grid > .adm-card {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  display: inline-block;
  width: 100%;
  margin: 0 0 24px;
}

.adm-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  /* 在 column 多欄佈局下，避免 hover transform 造成 repaint 閃白 */
  isolation: isolate;
  position: relative;
}

.adm-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--gold);
}

.adm-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}

.student-name { font-size: 15px; font-weight: 700; color: var(--text); display: block; }
.student-tag  { font-size: 12px; color: var(--muted); }

.adm-badge {
  font-size: 11px;
  font-weight: 700;
  background: var(--gold-light);
  color: var(--gold);
  padding: 4px 10px;
  border-radius: 50px;
  letter-spacing: 0.05em;
}

.adm-result-list {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--bg-alt);
}

.result-item.accepted {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
}

.school-logo {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  padding: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.school-logo img {
  width: 100%; height: 100%;
  object-fit: contain;
}

.school-detail { flex: 1; }
.school-detail h4 { font-size: 14px; font-weight: 600; margin: 0 0 2px; }
.school-detail p  { font-size: 12px; color: var(--muted); margin: 0; }

.status-tag {
  font-size: 11px;
  font-weight: 700;
  color: #16A34A;
  background: #DCFCE7;
  padding: 3px 10px;
  border-radius: 50px;
}

.result-item.secondary {
  background: transparent;
  border: 1px solid var(--border);
  padding: 9px 14px;
}

.result-item.secondary .school-name { font-size: 14px; color: var(--muted); flex: 1; }

.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
}

.adm-card__footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
}

.proof-link {
  font-size: 13px;
  color: var(--brand);
  font-weight: 600;
}
.proof-link:hover { color: var(--gold); }

/* =========================
   News / Events
========================= */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.news-item {
  display: flex;
  gap: 24px;
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  transition: 0.3s;
  align-items: flex-start;
}

.news-item:hover {
  box-shadow: var(--shadow);
  transform: translateX(6px);
  border-color: var(--gold);
}

.news-item__date-block {
  flex-shrink: 0;
  text-align: center;
  background: var(--bg-alt);
  border-radius: 10px;
  padding: 10px 14px;
  min-width: 60px;
}

.news-item__month {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.news-item__day {
  font-size: 26px;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
}

.news-item__year {
  font-size: 10px;
  color: var(--muted);
}

.news-item__body { flex: 1; }

.news-item__title {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text);
  line-height: 1.4;
}

.news-item:hover .news-item__title { color: var(--brand); }

.news-item__excerpt {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 12px;
}

.news-item__footer {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Events */
.event-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: 0.3s;
  display: flex;
}

.event-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.event-card__date-col {
  background: var(--brand);
  color: #fff;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  text-align: center;
}

.event-date-month {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
}

.event-date-day {
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
}

.event-date-year {
  font-size: 11px;
  opacity: 0.6;
}

.event-card__body {
  padding: 24px 28px;
  flex: 1;
}

.event-card__type {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.event-card__title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--text);
}

.event-card__desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 16px;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
}

.event-meta span { display: flex; align-items: center; gap: 5px; }

.events-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (max-width: 600px) {
  .event-card { flex-direction: column; }
  .event-card__date-col { flex-direction: row; gap: 12px; padding: 16px 20px; }
}

/* =========================
   Pagination
========================= */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 40px 0;
}

.page-btn {
  width: 38px; height: 38px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}

.page-btn:hover { border-color: var(--brand); color: var(--brand); }
.page-btn.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.page-btn.wide { width: auto; padding: 0 14px; }

/* =========================
   Mobile Inner Page Adjustments
========================= */
@media (max-width: 768px) {
  .page-hero { padding: 48px 0 40px; }
  .page-hero__title { font-size: clamp(24px, 6vw, 40px); }
  .page-hero__desc { font-size: 15px; }

  .content-sidebar-grid { padding: 48px 0 64px !important; }

  .inner-body { padding: 48px 0 64px; }

  .article-card.is-featured { flex-direction: column !important; }
  .article-card.is-featured .article-card__thumb-placeholder { width: 100% !important; min-height: 180px !important; }

  .sidebar-widget { margin-bottom: 20px; }
  .cta-box { padding: 40px 24px; }
}

/* =========================
   Preparation Roadmap (高中四年申請完整流程)
   共用於 /blog/resources.html 與 /services/compass.html
========================= */
.prep-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 22px 28px;
  margin-top: 8px;
}
.prep-stage {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 22px 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: 0.25s ease;
}
.prep-stage::before {
  content: "→";
  position: absolute;
  top: 50%;
  right: -22px;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 800;
  color: var(--gold);
  z-index: 1;
  opacity: 0.85;
}
.prep-stage:nth-child(3n)::before { content: ""; }
.prep-stage:last-child::before { content: ""; }
.prep-stage:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 22px rgba(78,52,46,0.08);
  transform: translateY(-3px);
}
.prep-stage__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.prep-stage__badge {
  flex-shrink: 0;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.prep-stage--g910  .prep-stage__badge { background: #8B6FCC; }
.prep-stage--g1011 .prep-stage__badge { background: #E89B5C; }
.prep-stage--g12a  .prep-stage__badge { background: #6BAD7A; }
.prep-stage--g12b  .prep-stage__badge { background: #D4B842; color: #1C1C1E; }
.prep-stage--g12c  .prep-stage__badge { background: #B89169; }
.prep-stage--final .prep-stage__badge { background: #D85C45; font-size: 12px; }
.prep-stage__title {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.35;
}
.prep-stage__period {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.05em;
  margin-top: 2px;
}
.prep-stage__list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}
.prep-stage__list li {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.65;
  padding-left: 18px;
  position: relative;
  margin-bottom: 6px;
}
.prep-stage__list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
  font-size: 11px;
}
.prep-stage__list li:last-child { margin-bottom: 0; }

@media (max-width: 900px) {
  .prep-flow { grid-template-columns: 1fr 1fr; gap: 18px; }
  .prep-stage::before { content: ""; }
}
@media (max-width: 560px) {
  .prep-flow { grid-template-columns: 1fr; gap: 14px; }
  .prep-stage { padding: 20px 18px; }
  .prep-stage__badge { width: 48px; height: 48px; font-size: 12px; }
}
