/* Yes！新加坡留學讚：Bricks 單篇文章共用樣式 */
.single-post #brx-content > article.brxe-container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: 24px;
}

.single-post #brx-content .brxe-post-title {
  font-size: 28px;
  line-height: 1.4;
}

.single-post .brxe-post-content {
  color: #252b32;
  font-family: "Noto Sans TC", sans-serif;
  font-size: 18px;
  line-height: 1.9;
  letter-spacing: 2px;
  overflow-wrap: anywhere;
}

.single-post .brxe-post-content :is(h2, h3, h4, h5, h6) {
  color: #202b35;
  font-family: "Noto Sans TC", sans-serif;
  line-height: 1.4;
  letter-spacing: 2px;
  margin: 1.6em 0 .6em;
  scroll-margin-top: 110px;
}

.single-post .brxe-post-content h2 {
  font-size: 28px;
}

.single-post .brxe-post-content :is(h3, h4, h5, h6) {
  font-size: 20px;
}

.single-post .brxe-post-content :is(p, ul, ol, blockquote) {
  margin: 0 0 1.2em;
}

.single-post .brxe-post-content :is(ul, ol) {
  padding-inline-start: 1.6em;
}

.single-post .brxe-post-content li + li {
  margin-top: .45em;
}

.single-post .brxe-post-content a {
  color: #a41d24;
  text-decoration: underline;
  text-underline-offset: .18em;
}

.single-post .brxe-post-content a:focus-visible {
  outline: 3px solid #a41d24;
  outline-offset: 3px;
}

.single-post .brxe-post-content img {
  display: block;
  max-width: 100%;
  height: auto;
}

.single-post .brxe-post-content blockquote {
  border-inline-start: 4px solid #c9262f;
  padding: .5em 1em;
  background: #fff5f4;
}

.single-post .brxe-post-content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.single-post .brxe-post-content :is(th, td) {
  padding: .65em .8em;
  border: 1px solid #d9dfe3;
  text-align: start;
  vertical-align: top;
}

.single-post .brxe-post-content th {
  background: #f4f6f7;
}

/* 可供各文章重用的閱讀導覽與資訊區塊 */
.single-post .brxe-post-content .article-lead {
  padding: 24px 28px;
  border-left: 4px solid #d92830;
  background: #fff5f3;
  color: #28323a;
  font-weight: 500;
}

.single-post .brxe-post-content .article-keypoints {
  margin: 1.5em 0 2em;
  padding: 26px 30px;
  border: 1px solid #ead9d8;
  border-radius: 8px;
  background: #fffaf9;
}

.single-post .brxe-post-content .article-keypoints > p {
  margin: 0 0 12px;
  color: #a41d24;
  font-weight: 700;
}

.single-post .brxe-post-content .article-keypoints ul {
  margin-bottom: 0;
}

.single-post .brxe-post-content .article-toc {
  margin: 2.5em 0;
  padding: 28px 32px;
  border: 1px solid #e3e7e9;
  border-top: 4px solid #d92830;
  border-radius: 8px;
  background: #f8f9f9;
}

.single-post .brxe-post-content .article-toc > p {
  margin: 0 0 12px;
  color: #202b35;
  font-size: 20px;
}

.single-post .brxe-post-content .article-toc ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 28px;
  margin: 0;
  padding-left: 1.4em;
}

.single-post .brxe-post-content .article-toc li + li {
  margin-top: 0;
}

.single-post .brxe-post-content .article-toc a {
  color: #303d46;
  text-decoration-color: #e1a0a3;
}

.single-post .brxe-post-content .article-section {
  margin: 3em 0;
}

.single-post .brxe-post-content .article-section > h2 {
  margin-top: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid #dce1e3;
}

.single-post .brxe-post-content .article-course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 1.8em 0;
}

.single-post .brxe-post-content .article-course {
  padding: 24px;
  border-top: 4px solid #c9262f;
  background: #f7f8f8;
}

.single-post .brxe-post-content .article-course-label {
  color: #a41d24;
  font-size: 14px;
  font-weight: 700;
}

.single-post .brxe-post-content .article-course h3 {
  margin: 10px 0 14px;
}

.single-post .brxe-post-content .article-course p:last-child {
  margin-bottom: 0;
}

.single-post .brxe-post-content .article-note {
  padding: 18px 22px;
  border-left: 4px solid #c9262f;
  background: #fff5f3;
}

.single-post .brxe-post-content .article-cost-grid,
.single-post .brxe-post-content .article-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 1.6em 0;
}

.single-post .brxe-post-content .article-cost-grid > div,
.single-post .brxe-post-content .article-steps > li {
  padding: 22px;
  border: 1px solid #e2e6e8;
  border-radius: 8px;
  background: #fff;
}

.single-post .brxe-post-content .article-cost-grid :is(strong, span),
.single-post .brxe-post-content .article-steps :is(strong, span) {
  display: block;
}

.single-post .brxe-post-content .article-cost-grid strong,
.single-post .brxe-post-content .article-steps strong {
  margin-bottom: 8px;
  color: #a41d24;
}

.single-post .brxe-post-content .article-steps {
  padding: 0;
  list-style: none;
  counter-reset: article-step;
}

.single-post .brxe-post-content .article-steps > li {
  margin: 0;
  counter-increment: article-step;
}

.single-post .brxe-post-content .article-steps > li::before {
  display: block;
  margin-bottom: 10px;
  color: #a41d24;
  font-size: 14px;
  font-weight: 700;
  content: "0" counter(article-step);
}

.single-post .brxe-post-content .article-school-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 1.8em 0;
  counter-reset: school-card;
}

.single-post .brxe-post-content .article-school {
  display: grid;
  grid-template-columns: minmax(200px, .8fr) minmax(0, 2fr);
  column-gap: 30px;
  padding: 24px 28px;
  border: 1px solid #e2e6e8;
  border-radius: 8px;
  background: #fff;
  counter-increment: school-card;
}

.single-post .brxe-post-content .article-school h3 {
  grid-column: 1;
  grid-row: 1 / span 3;
  margin: 0;
  color: #a41d24;
}

.single-post .brxe-post-content .article-school h3::before {
  display: block;
  margin-bottom: 8px;
  color: #7d868b;
  font-size: 14px;
  content: "SCHOOL 0" counter(school-card);
}

.single-post .brxe-post-content .article-school p {
  grid-column: 2;
}

.single-post .brxe-post-content .article-school p:last-child {
  margin-bottom: 0;
}

.single-post .brxe-post-content .article-table-wrap {
  max-width: 100%;
  margin: 1.6em 0;
  overflow-x: auto;
  border: 1px solid #dce1e3;
  border-radius: 8px;
}

.single-post .brxe-post-content .article-table-wrap table {
  display: table;
  width: 100%;
  min-width: 640px;
  margin: 0;
}

.single-post .brxe-post-content .article-table-wrap thead th {
  color: #fff;
  background: #34424a;
}

.single-post .brxe-post-content .article-table-wrap tbody tr:nth-child(even) {
  background: #f7f8f8;
}

.single-post .brxe-post-content .article-checklist {
  padding: 22px 28px 22px 3.2em;
  border-radius: 8px;
  background: #f5f7f7;
}

.single-post .brxe-post-content .article-faq-item {
  margin: 0 0 12px;
  border: 1px solid #dce1e3;
  border-radius: 8px;
  background: #fff;
}

.single-post .brxe-post-content .article-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  cursor: pointer;
  list-style: none;
}

.single-post .brxe-post-content .article-faq-item summary::-webkit-details-marker {
  display: none;
}

.single-post .brxe-post-content .article-faq-item summary::after {
  flex: 0 0 auto;
  color: #a41d24;
  font-size: 24px;
  content: "+";
}

.single-post .brxe-post-content .article-faq-item[open] summary::after {
  content: "−";
}

.single-post .brxe-post-content .article-faq-item summary:focus-visible {
  outline: 3px solid #a41d24;
  outline-offset: -3px;
}

.single-post .brxe-post-content .article-faq-item h3 {
  margin: 0;
}

.single-post .brxe-post-content .article-faq-item p:last-child {
  margin: 0;
  padding: 0 22px 22px;
}

.single-post .brxe-post-content .article-cta {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr);
  margin: 3em 0;
  overflow: hidden;
  border: 1px solid #ead5d1;
  border-radius: 12px;
  background: linear-gradient(115deg, #fffaf7 0%, #fff2ee 55%, #fbe1db 100%);
  color: #26333b;
}

.single-post .brxe-post-content .article-cta-copy {
  padding: 36px;
}

.single-post .brxe-post-content .article-cta-kicker {
  display: block;
  margin-bottom: 10px;
  color: #a8242e;
  font-size: 14px;
  font-weight: 700;
}

.single-post .brxe-post-content .article-cta h2 {
  margin: 0 0 16px;
  color: #26333b;
}

.single-post .brxe-post-content .article-cta-copy p {
  margin: 0;
  color: #465159;
}

.single-post .brxe-post-content .article-cta-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 32px;
  background: transparent;
}

.single-post .brxe-post-content .article-cta-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 12px 18px;
  border-radius: 6px;
  color: #fff;
  background: #34475d;
  font-weight: 700;
  text-decoration: none;
}

.single-post .brxe-post-content .article-cta-actions .article-cta-line {
  color: #fff;
  background: #06c755;
}

.single-post .brxe-post-content .article-cta-actions a:hover {
  filter: brightness(.92);
}

.single-post .brxe-post-content .article-cta-actions a:focus-visible {
  outline: 3px solid #243342;
  outline-offset: 3px;
}

.single-post .brxe-post-content .article-cta-icon {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  background-color: currentColor;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
}

.single-post .brxe-post-content .article-cta-icon-phone {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 2.4 9.4 2l1.3 4.6-2 1.4a15 15 0 0 0 7.3 7.3l1.4-2 4.6 1.3-.4 2.8a3.6 3.6 0 0 1-3.7 3.1C9.9 20.1 3.9 14.1 3.5 6.1a3.6 3.6 0 0 1 3.1-3.7Z'/%3E%3C/svg%3E");
}

.single-post .brxe-post-content .article-cta-icon-line {
  color: #fff;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.5 2 2 5.8 2 10.5c0 4.2 3.5 7.7 8.2 8.4.3.1.5.4.5.7l-.2 2.2c0 .2.2.3.4.2 1.4-.7 4.7-2.7 6.1-3.7 3.1-2.1 5-4.7 5-7.8C22 5.8 17.5 2 12 2Zm-5.4 6h1.2v4h1.8v1.1h-3V8Zm3.5 0h1.2v5.1h-1.2V8Zm2 0h1.2l2 3V8h1.2v5.1h-1.1l-2.1-3v3h-1.2V8Zm5.1 0h3v1.1h-1.8V10h1.8v1.1h-1.8v.9h1.8v1.1h-3V8Z'/%3E%3C/svg%3E");
}

@media (max-width: 767px) {
  .single-post .brxe-post-content {
    font-size: 16px;
    line-height: 1.85;
  }

  .single-post .brxe-post-content .article-toc {
    padding: 22px;
  }

  .single-post .brxe-post-content .article-cta {
    grid-template-columns: 1fr;
  }

  .single-post .brxe-post-content .article-cta-copy,
  .single-post .brxe-post-content .article-cta-actions {
    padding: 24px;
  }

  .single-post .brxe-post-content .article-toc ul,
  .single-post .brxe-post-content .article-school-grid,
  .single-post .brxe-post-content .article-course-grid,
  .single-post .brxe-post-content .article-cost-grid,
  .single-post .brxe-post-content .article-steps {
    grid-template-columns: 1fr;
  }

  .single-post .brxe-post-content .article-school {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px;
  }

  .single-post .brxe-post-content .article-school h3,
  .single-post .brxe-post-content .article-school p {
    grid-column: 1;
    grid-row: auto;
  }
}
/* 全站：手機和平板底部固定聯絡列。 */
@media (max-width: 1024px) {
  #brx-footer { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  #brx-footer .ys-float-contact {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    transform: none;
    display: flex;
    flex-direction: row;
    gap: 0;
    padding: 6px 0 calc(6px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 1px solid #e6e7e5;
    box-shadow: 0 -3px 14px rgba(0, 0, 0, .08);
  }
  #brx-footer .ys-float-contact a {
    flex: 1 1 50%;
    width: auto;
    min-height: 56px;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #24332a;
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 13px;
    letter-spacing: 1px;
  }
  #brx-footer .ys-float-phone svg { width: 27px; height: 27px; color: #df2524; }
  #brx-footer .ys-float-line img { width: 27px; height: 27px; }
  #brx-footer .ys-float-phone::after { content: '立即來電'; }
  #brx-footer .ys-float-line::after { content: 'LINE 諮詢'; }
}

