/* Blog page (blog.html): the posts section. The header, closing CTA, footer and menu come from about.css and the home
   page's files. Layout B "left/right index" (chosen 2026-11-18): categories on the left, posts with thumbnails on the right. */
.bl{position:relative;display:grid;grid-template-columns:clamp(270px,21.5vw,330px) minmax(0,1fr);gap:clamp(90px,10vw,150px);align-items:start;background:var(--paper);padding:110px 9% 150px}
.bl a{color:inherit;text-decoration:none}

/* left: categories (sticky on desktop) */
.blb-side{position:sticky;top:110px}
.blb-cats{display:flex;flex-direction:column;border-top:1px solid #30375f26}
.blb-cats button{position:relative;display:flex;justify-content:space-between;align-items:baseline;gap:16px;padding:20px 0;border:0;border-bottom:1px solid #30375f26;background:none;font:inherit;text-align:left;font-size:19px;font-weight:700;color:#8b8d9c;cursor:pointer;transition:color .3s,padding .4s cubic-bezier(.16,1,.3,1)}
.blb-cats button b{font-family:Outfit,sans-serif;font-size:14px;font-weight:600;color:inherit}
.blb-cats button:before{content:'';position:absolute;left:0;top:50%;width:14px;height:2px;background:var(--orange);transform:scaleX(0);transform-origin:left;transition:transform .4s cubic-bezier(.16,1,.3,1)}
.blb-cats button:hover{color:var(--navy)}
.blb-cats button[aria-selected=true]{color:var(--navy);padding-left:26px}
.blb-cats button[aria-selected=true]:before{transform:none}
.blb-cats button[aria-selected=true] b{color:var(--orange)}

/* right: the posts */
.blb-list{list-style:none;margin:0;padding:0;border-top:1px solid #30375f26}
.blb-list li{position:relative}
.blb-list a{position:relative;display:grid;grid-template-columns:min(40%,340px) minmax(0,1fr) auto;gap:clamp(24px,2.2vw,36px);align-items:center;padding:36px 0;border-bottom:1px solid #30375f26}
.blb-img{position:relative;overflow:hidden;border-radius:14px;aspect-ratio:16/9;background:#f3eee6}
.blb-img img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .8s cubic-bezier(.16,1,.3,1)}
.blb-list a:hover .blb-img img{transform:scale(1.05)}
.bl-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin:0;font-family:Outfit,'Noto Sans TC',sans-serif;font-size:14px;color:#7a6d64}
.bl-tag{padding:4px 12px;border:1px solid var(--orange);border-radius:99px;background:var(--orange);color:#fff;font-size:13px;font-weight:500;transition:background .3s,color .3s,border-color .3s}
.blb-list h3{margin:14px 0 10px;font-size:clamp(18px,1.4vw,21px);line-height:1.55;font-weight:800;transition:color .3s}
.blb-body>p:not(.bl-meta){margin:0;font-size:15px;line-height:2;color:#626477;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.blb-list a:hover h3{color:var(--orange)}
.bl-go{display:grid;place-items:center;flex:none;width:52px;height:52px;border:1px solid #30375f4d;border-radius:50%;color:var(--navy);transition:background .3s,border-color .3s,color .3s}
.bl-go svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.blb-list a:hover .bl-tag{background:#d65f3b;border-color:#d65f3b}
.blb-list a:hover .bl-go{background:var(--orange);border-color:var(--orange);color:#fff}
.blb-more{display:none}
.bl-empty{margin:0;padding:60px 0;text-align:center;color:#7a6d64;font-size:15px;border-top:1px solid #30375f26;border-bottom:1px solid #30375f26}

/* 1400px and below (same break as the contact page): the categories go on top as chips and the posts get the full width (two columns leave the post
   text too narrow below 1400px) */
@media(max-width:1400px){
  .bl{grid-template-columns:minmax(0,1fr);gap:40px}
  .blb-side{position:static}
  .blb-side .section-name{display:none}
  .blb-cats{flex-direction:row;flex-wrap:wrap;gap:8px;border:0}
  .blb-cats button{padding:9px 16px;border:1px solid #30375f33;border-radius:99px;font-size:14px;font-weight:600;gap:8px}
  .blb-cats button:before{display:none}
  .blb-cats button[aria-selected=true]{padding-left:16px;background:var(--navy);border-color:var(--navy);color:#fff}
  .blb-cats button b{font-size:12px}
}
@media(max-width:1400px){
  .blb-list h3{font-size:21px}
}
@media(max-width:1024px){
  .bl{padding:90px 7% 120px}
  /* titles show two lines at most */
  .blb-list h3{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
}
@media(max-width:768px){
  .bl{padding:70px 7% 100px}
  /* the thumbnail on top, then the text; no arrow circle — a "閱讀更多 →" at the bottom right instead */
  .blb-list a{grid-template-columns:minmax(0,1fr);gap:18px;padding:32px 0}
  .bl-go{display:none}
  /* the text (category, title, excerpt, 閱讀更多) sits a little inside the thumbnail's width */
  .blb-body{padding:0 10px}
  .blb-list h3{margin:12px 0 8px;font-size:20px}
  .blb-body>p:not(.bl-meta){font-size:14px;line-height:1.9}
  .blb-more{display:flex;justify-content:flex-end;align-items:center;gap:8px;margin-top:14px;font-size:14px;font-weight:600;color:var(--orange)}
  .blb-more i{font-style:normal;transition:transform .3s}
  .blb-list a:hover .blb-more i{transform:translateX(5px)}
  /* the category chips wrap onto more lines, a little smaller */
  .blb-cats{gap:8px 6px}
  .blb-cats button{padding:7px 13px;font-size:13px;gap:6px}
  .blb-cats button[aria-selected=true]{padding-left:13px}
  .blb-cats button b{font-size:11px}
}
