/* .c-list 右側說明文字(取代下拉選單) */
.c-desc {
  margin-left: 20px;
  font-size: 2rem;
  line-height: 1.7;
}

/* 版面:側欄(文章列表)+ 內容 */
.blog-layout {
  display: flex;
  gap: 36px;
  align-items: flex-start;
  padding-bottom: 80px;
}

/* 讓 .blog-side 的 sticky 生效:祖先 body / .l-wp-html 的 overflow:hidden
   會建立捲動容器而使 sticky 失效;改用 clip(裁切水平溢出但不建立捲動容器)。作用於列表/明細頁。 */
body[data-id="blog"],
body[data-id="blogDetail"] {
  overflow-x: clip;
}

body[data-id="blog"] .l-wp-html,
body[data-id="blogDetail"] .l-wp-html {
  overflow: clip;
}

.blog-side {
  width: 220px;
  flex-shrink: 0;
  border: 1px solid #e2e2e2;
  position: sticky;
  top: 117px;
}

.blog-side_group + .blog-side_group {
  border-top: 1px solid #e2e2e2;
}

.blog-side_head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 12px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
}

.blog-side_headmain {
  display: flex;
  flex-direction: column;
}

.blog-side_title {
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: 1px;
}

.blog-side_rule {
  display: block;
  width: 36px;
  height: 3px;
  background: #c89240;
  margin-top: 8px;
}

.blog-side_arrow {
  flex-shrink: 0;
  margin-left: 12px;
  font-size: 1.3rem;
  color: #8b938f;
  transition: transform .25s;
}

.blog-side_head:hover .blog-side_arrow {
  color: #c89240;
}

.blog-side_group:not(.is-open) .blog-side_arrow {
  transform: rotate(-90deg);
}

.blog-side_item {
  display: block;
  padding: 13px 20px;
  font-size: 1.4rem;
  line-height: 1.6;
  text-decoration: none;
  border-top: 1px solid #efefef;
  transition: all .2s;
}

.blog-side_item:hover {
  color: #c89240;
}

.blog-side_item.is-active {
  color: #c89240;
  font-weight: 500;
  box-shadow: inset 3px 0 0 #c89240;
}

.blog-main {
  flex: 1;
  min-width: 0;
}

/* 搜尋結果提示與空狀態 */
.blog-result {
  font-size: 1.4rem;
  color: #5f6d68;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #efefef;
}

.blog-empty {
  padding: 60px 20px;
  text-align: center;
  font-size: 1.5rem;
  color: #8b938f;
}

/* ===== 列表卡片:固定「左圖右文」 ===== */
.blog-card {
  display: flex;
  min-height: 240px;
  margin-bottom: 20px;
}

.blog-card:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.blog-card_media {
  width: 300px;
  height: 300px;
  flex-shrink: 0;
  overflow: hidden;
}

.blog-card_media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s;
}

.blog-card:hover .blog-card_media img {
  transform: scale(1.05);
}

.blog-card_body {
  flex: 1;
  padding: 34px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-card_date {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.blog-card_title {
  font-size: 2.25rem;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  margin: 0 0 12px;
}

.blog-card_title:hover {
  color: #c89240;
}

.blog-card_excerpt {
  font-size: 1.4rem;
  color: #5f6d68;
  line-height: 1.9;
  margin: 0 0 18px;
  flex: 1;
}

.blog-more {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #c89240;
  text-decoration: none;
  transition: color .2s;
}

.blog-more:hover {
  color: #a5762e;
}

.blog-more .ap-arrow {
  width: 26px;
  height: 26px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* ===== 內頁:文章 ===== */
.blog-back {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  margin-bottom: 22px;
  font-size: 1.4rem;
  text-decoration: none;
  border: 1px solid #e2e2e2;
}

.blog-back:hover {
  border-color: #c89240;
  color: #c89240;
}

.blog-post_head {
  padding: 30px 40px 22px;
  border-bottom: 1px solid #efefef;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.blog-post_date {
  font-size: 1.3rem;
}

.blog-post_category {
  font-size: 1.3rem;
  color: #c89240;
}

.blog-post_title {
  font-size: 2.8rem;
  font-weight: 500;
  line-height: 1.4;
  margin: 10px 0 0;
}

.blog-article {
  padding: 30px 40px 40px;
}

.blog-article h2 {
  font-size: 2.2rem;
  font-weight: 500;
  margin: 32px 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid #c89240;
}

.blog-article h2:first-child {
  margin-top: 0;
}

.blog-article h3 {
  font-size: 1.7rem;
  font-weight: 500;
  color: #c89240;
  margin: 24px 0 10px;
}

.blog-article p {
  font-size: 1.5rem;
  line-height: 2;
  margin: 0 0 16px;
}

.blog-article ul,
.blog-article ol {
  margin: 0 0 16px;
  padding-left: 24px;
}

.blog-article li {
  font-size: 1.5rem;
  line-height: 1.9;
  margin-bottom: 8px;
}

.blog-article a {
  color: #c89240;
  text-decoration: none;
  border-bottom: 1px solid rgba(200, 146, 64, .3);
}

.blog-article a:hover {
  color: #c89240;
  border-color: #c89240;
}

.blog-article strong {
  font-weight: 700;
}

.blog-tip {
  border-left: 4px solid #c89240;
  padding: 14px 20px;
  margin: 20px 0;
  font-size: 1.45rem;
  line-height: 1.9;
}

.blog-figure {
  margin: 22px 0;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.blog-post_foot {
  padding: 14px 40px;
  border-top: 1px solid #efefef;
  font-size: 1.3rem;
  text-align: right;
}

/* ===== RWD:手機版(≤768px)隱藏側欄,卡片改上圖下文 ===== */
@media all and (max-width: 992px) {
  .blog-side {
    display: none;
  }
}

@media all and (max-width: 768px) {
  .blog-card {
    min-height: 0;
    flex-direction: column;
  }

  .blog-card_media {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .blog-card_body {
    padding: 20px 24px;
  }

  .blog-post_head,
  .blog-article {
    padding-left: 24px;
    padding-right: 24px;
  }
}
