/*
Theme Name: BROGASIS Light
Theme URI: https://brogasis.com
Author: BROGASIS
Author URI: https://brogasis.com
Description: Clean light gray & white travel blog theme for BROGASIS — with featured slider, post grid, image logo support, and elegant search.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: brogasis-light
Tags: travel, blog, light, gray, white, custom-logo, custom-menu, featured-images, post-formats
*/

/* ================================================================
   BROGASIS LIGHT THEME — Main Stylesheet
   ================================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --bg:          #f5f5f3;
  --bg-card:     #ffffff;
  --header-bg:   #ffffff;
  --border:      #e2e2de;
  --text:        #1a1a18;
  --text-muted:  #6b6b68;
  --accent:      #e8a020;
  --accent-dark: #c47f00;
  --nav-active:  #e8a020;
  --radius:      10px;
  --shadow:      0 2px 12px rgba(0,0,0,.08);
  --shadow-hover:0 6px 24px rgba(0,0,0,.14);
  --font-main:   'Noto Sans Thai', 'Inter', sans-serif;
  --font-heading:'Noto Sans Thai', 'Inter', sans-serif;
  --header-h:    72px;
  --max-w:       1200px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

ul { list-style: none; }

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ================================================================
   HEADER
   ================================================================ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
  height: var(--header-h);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

/* --- Logo --- */
.site-logo-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.site-logo-wrap a {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-logo-wrap img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.5px;
  color: var(--text);
  white-space: nowrap;
}

.logo-text span { color: var(--accent); }

/* --- Nav --- */
.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.main-nav ul {
  display: flex;
  gap: 4px;
  align-items: center;
}

.main-nav ul li a {
  display: block;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .4px;
  color: var(--text-muted);
  text-transform: uppercase;
  transition: background .18s, color .18s;
}

.main-nav ul li a:hover,
.main-nav ul li.current-menu-item > a,
.main-nav ul li.current_page_item > a,
.main-nav ul li.current-menu-ancestor > a {
  background: var(--accent);
  color: #fff;
}

/* --- Search toggle button --- */
.header-search-wrap {
  flex-shrink: 0;
  position: relative;
}

.search-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: transparent;
  cursor: pointer;
  color: var(--text-muted);
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}

.search-toggle-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: scale(1.08);
}

.search-toggle-btn svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

/* --- Search dropdown panel --- */
.search-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 340px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  box-shadow: var(--shadow-hover);
  display: none;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .2s, transform .2s;
}

.search-dropdown.open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.search-dropdown form {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.search-dropdown input[type="search"] {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  font-family: var(--font-main);
  background: transparent;
  color: var(--text);
  padding: 4px 0;
}

.search-dropdown input[type="search"]::placeholder {
  color: #bbb;
}

.search-dropdown button[type="submit"] {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: background .18s, transform .18s;
}

.search-dropdown button[type="submit"]:hover {
  background: var(--accent-dark);
  transform: scale(1.08);
}

.search-dropdown button[type="submit"] svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
}

/* --- Hamburger (mobile) --- */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--text);
}

.nav-toggle svg { width: 24px; height: 24px; }

/* ================================================================
   HERO / FEATURED SLIDER
   ================================================================ */
.featured-slider {
  position: relative;
  overflow: hidden;
  background: #111;
}

.featured-slider .slides {
  display: flex;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}

.featured-slide {
  flex: 0 0 100%;
  position: relative;
  height: clamp(360px, 52vw, 580px);
  overflow: hidden;
}

.featured-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 6s ease;
}

.featured-slide:hover img { transform: scale(1.04); }

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.38) 50%, rgba(0,0,0,.12) 100%);
}

/* Centred slide content */
.slide-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 80px;
  color: #fff;
}

.slide-cat {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.slide-title {
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 800;
  line-height: 1.28;
  margin-bottom: 10px;
  text-shadow: 0 2px 12px rgba(0,0,0,.45);
  max-width: 700px;
}

.slide-meta {
  font-size: 12.5px;
  opacity: .7;
  margin-bottom: 20px;
}

.slide-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
  padding: 10px 24px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  transition: background .2s, border-color .2s;
}

.slide-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Slider arrows */
.slider-prev, .slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}

.slider-prev:hover, .slider-next:hover { background: var(--accent); }
.slider-prev { left: 16px; }
.slider-next { right: 16px; }
.slider-prev svg, .slider-next svg { width: 20px; height: 20px; }

/* Slider dots */
.slider-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  border: none;
  cursor: pointer;
  transition: background .2s, transform .2s;
}

.slider-dot.active {
  background: var(--accent);
  transform: scale(1.3);
}

/* ================================================================
   FEATURED ARTICLE (first post — big card)
   ================================================================ */
.featured-article-section {
  padding: 48px 0 0;
}

.featured-article {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow .2s;
}

.featured-article:hover { box-shadow: var(--shadow-hover); }

.featured-article .feat-thumb {
  position: relative;
  overflow: hidden;
}

.featured-article .feat-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
  min-height: 280px;
}

.featured-article:hover .feat-thumb img { transform: scale(1.04); }

.feat-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--accent);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
}

.feat-new-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #1a1a18;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 20px;
}

.featured-article .feat-body {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.feat-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.feat-meta .sep { opacity: .4; }

.feat-title {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 800;
  line-height: 1.35;
  color: var(--text);
  transition: color .18s;
}

.feat-title:hover { color: var(--accent); }

.feat-excerpt {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feat-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 13.5px;
  font-weight: 700;
  align-self: flex-start;
  transition: background .18s, transform .18s;
}

.feat-btn:hover { background: var(--accent-dark); color: #fff; transform: translateX(2px); }

/* ================================================================
   SECTION HEADINGS
   ================================================================ */
.section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.section-heading .label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--accent);
}

.section-heading h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  padding-left: 12px;
  border-left: 3px solid var(--accent);
}

/* ================================================================
   POST GRID
   ================================================================ */
.posts-section {
  padding: 48px 0;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.post-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}

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

.post-card-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.post-card:hover .post-card-thumb img { transform: scale(1.06); }

.post-card-cat {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
}

.post-card-body {
  padding: 18px 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.post-card-meta {
  font-size: 11.5px;
  color: var(--text-muted);
}

.post-card-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .18s;
}

.post-card-title:hover { color: var(--accent); }

.post-card-excerpt {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.post-card-link {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 4px;
  transition: gap .18s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.post-card-link:hover { gap: 8px; }

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

.pagination a, .pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 13.5px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  transition: background .18s, border-color .18s, color .18s;
}

.pagination a:hover, .pagination .current {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ================================================================
   SINGLE POST
   ================================================================ */
.single-hero {
  position: relative;
  height: clamp(260px, 40vw, 480px);
  overflow: hidden;
}

.single-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.6) 0%, transparent 60%);
}

.single-header {
  position: absolute;
  bottom: 32px;
  left: 0;
  right: 0;
}

.single-header .container { color: #fff; }

.single-cat {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.single-title {
  font-size: clamp(22px, 3.5vw, 36px);
  font-weight: 800;
  line-height: 1.28;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
}

.single-meta {
  margin-top: 8px;
  font-size: 13px;
  opacity: .85;
}

.entry-content {
  max-width: 820px;
  margin: 48px auto;
  padding: 0 24px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--text);
}

.entry-content h2 { font-size: 22px; font-weight: 800; margin: 32px 0 12px; }
.entry-content h3 { font-size: 18px; font-weight: 700; margin: 24px 0 10px; }
.entry-content p { margin-bottom: 18px; }
.entry-content img { border-radius: 8px; margin: 20px 0; }
.entry-content a { color: var(--accent); text-decoration: underline; }
.entry-content ul, .entry-content ol { margin: 0 0 18px 24px; }
.entry-content li { margin-bottom: 6px; }
.entry-content blockquote {
  border-left: 4px solid var(--accent);
  padding: 12px 20px;
  margin: 24px 0;
  background: #faf8f4;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text-muted);
}

/* ================================================================
   ARCHIVE / CATEGORY PAGE
   ================================================================ */
.archive-header {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.archive-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 12px;
}

.archive-title::before {
  content: '';
  width: 5px;
  height: 1.1em;
  background: var(--accent);
  border-radius: 3px;
  display: block;
}

.archive-desc { color: var(--text-muted); margin-top: 8px; }

/* ================================================================
   SEARCH RESULTS
   ================================================================ */
.search-header { padding: 40px 0 28px; }
.search-header h1 { font-size: 22px; font-weight: 800; }
.search-header p { color: var(--text-muted); margin-top: 4px; }

/* ================================================================
   FOOTER
   ================================================================ */
#site-footer {
  background: #1e1e1c;
  color: rgba(255,255,255,.75);
  padding: 52px 24px 28px;
  text-align: center;
}

.footer-logo {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
  letter-spacing: -.5px;
}

.footer-logo span { color: var(--accent); }

.footer-logo-img {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

.footer-logo-img img {
  height: 48px;
  width: auto;
}

.footer-desc {
  font-size: 13px;
  opacity: .6;
  margin-bottom: 24px;
}

.footer-nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-bottom: 28px;
}

.footer-nav ul li a {
  font-size: 13px;
  color: rgba(255,255,255,.65);
  transition: color .18s;
}

.footer-nav ul li a:hover { color: var(--accent); }

.footer-copy {
  font-size: 12px;
  opacity: .4;
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 20px;
}

/* ================================================================
   SIDEBAR (if used)
   ================================================================ */
.content-sidebar-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  padding: 48px 0;
}

.widget {
  background: #fff;
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.widget-title {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 900px) {
  :root { --header-h: 60px; }

  .main-nav { display: none; position: fixed; top: var(--header-h); left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); flex-direction: column; padding: 16px 24px 24px; gap: 4px; }
  .main-nav.open { display: flex; }
  .main-nav ul { flex-direction: column; width: 100%; }
  .main-nav ul li a { font-size: 15px; padding: 10px 14px; }

  .nav-toggle { display: flex; }

  .post-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .featured-article { grid-template-columns: 1fr; }
  .featured-article .feat-body { padding: 24px; }
  .content-sidebar-wrap { grid-template-columns: 1fr; }
  .search-dropdown { width: 280px; }
}

@media (max-width: 600px) {
  .post-grid { grid-template-columns: 1fr; }
  .slide-content { padding: 24px 40px; }
  .slide-title { font-size: 16px; }
  .single-title { font-size: 20px; }
}

/* ================================================================
   HOMEPAGE — slide-index, sections, highlight-grid, cat-sections
   ================================================================ */

/* --- Slide index number --- */
.slide-index {
  font-size: 10px;
  letter-spacing: 2.5px;
  color: rgba(255,255,255,.5);
  margin-bottom: 8px;
  display: block;
}

/* ── SECTION LAYOUT ── */
/* Each homepage section gets top padding; last one also gets bottom */
.home-section { padding: 56px 0 0; }
.home-section:last-child { padding-bottom: 64px; }

/* Section heading row: title left, See More right */
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
}
.section-heading h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin: 0;
  line-height: 1.2;
}
.sh-bar {
  display: inline-block;
  width: 4px;
  height: 22px;
  background: var(--accent);
  border-radius: 3px;
  flex-shrink: 0;
}
.sh-cat-link { color: var(--text); transition: color .15s; }
.sh-cat-link:hover { color: var(--accent); }

/* ── See More button ── */
.see-more-btn {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .3px;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: 20px;
  padding: 7px 18px;
  transition: background .18s, color .18s;
  white-space: nowrap;
}
.see-more-btn:hover { background: var(--accent); color: #fff; }

/* ── See All (bottom of category section) ── */
.cat-see-more-wrap { margin-top: 32px; text-align: center; }
.cat-see-more-full {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
  border-radius: 30px;
  padding: 11px 30px;
  transition: border-color .18s, color .18s, background .18s;
}
.cat-see-more-full:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: #fffbf2;
}

/* ── HIGHLIGHT — 4-frame mosaic grid ── */
/*  Left: 1 tall card  |  Right: 3 stacked cards  */
.highlight-mosaic {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  grid-template-rows: repeat(3, 1fr);
  gap: 16px;
  height: 480px;
}

/* Big left card spans all 3 rows */
.highlight-mosaic .hl-main {
  grid-row: 1 / 4;
}

/* ── SHARED MOSAIC CARD ── */
.hl-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  display: block;               /* <a> tag */
  background: #d4d2c8;
}
.hl-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.hl-card:hover img { transform: scale(1.06); }

.hl-card-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.12) 55%, transparent 100%);
  transition: opacity .2s;
}
.hl-card:hover .hl-card-grad { opacity: .85; }

.hl-card-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 16px 18px;
  color: #fff;
}
/* Big card gets more padding */
.hl-main .hl-card-body { padding: 24px 26px; }

.hl-card-cat {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
  margin-bottom: 7px;
}
.hl-card-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.36;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
}
/* Big card title larger */
.hl-main .hl-card-title {
  font-size: clamp(15px, 1.6vw, 19px);
  -webkit-line-clamp: 3;
}
.hl-card-date {
  font-size: 10.5px;
  opacity: .65;
  margin-top: 5px;
}

/* ── BADGES on cards ── */
.card-cat-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  pointer-events: none;
  z-index: 2;
}
.card-new-badge {
  position: absolute;
  top: 12px; right: 12px;
  background: #1a1a18;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 20px;
  pointer-events: none;
  z-index: 2;
}

/* ── POST GRID (3-col for category sections) ── */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* ── POST CARD ── */
.post-card {
  background: var(--bg-card);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .22s, box-shadow .22s;
}
.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(0,0,0,.1);
}

/* Thumbnail — full <a> block, clickable */
.post-card-thumb {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--border);
  flex-shrink: 0;
  text-decoration: none;
}
.post-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .48s cubic-bezier(.4,0,.2,1);
}
.post-card:hover .post-card-thumb img { transform: scale(1.07); }
.post-card-no-thumb { width: 100%; height: 100%; min-height: 180px; background: var(--border); }

.post-card-body {
  padding: 18px 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.post-card-meta { font-size: 11.5px; color: var(--text-muted); }
.post-card-title {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.42;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .15s;
}
.post-card-title:hover { color: var(--accent); }
.post-card-excerpt {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.post-card-link {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid #f0ede7;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap .15s;
}
.post-card-link:hover { gap: 8px; color: var(--accent); }

/* ── CATEGORY SECTION separator ── */
.cat-section { border-top: 1px solid var(--border); }

/* ── Responsive ── */
@media (max-width: 960px) {
  .highlight-mosaic {
    grid-template-columns: 1fr;
    grid-template-rows: 280px repeat(3, 180px);
    height: auto;
  }
  .highlight-mosaic .hl-main { grid-row: 1; }
  .post-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 600px) {
  .section-heading { flex-wrap: wrap; gap: 8px; }
  .post-grid { grid-template-columns: 1fr; }
  .highlight-mosaic { grid-template-rows: 240px repeat(3, 150px); }
  .see-more-btn { font-size: 11px; padding: 6px 14px; }
}


/* ── Taiwan category: city-count badge ── */
.city-count {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--border);
  border-radius: 20px;
  padding: 2px 10px;
  margin-left: 4px;
  letter-spacing: .3px;
}

/* ── Taiwan YouTube — clean single definition ── */
.taiwan-yt-fullwrap {
  background: var(--bg);
  padding: 28px 0;
}
.taiwan-yt-fullwrap .taiwan-yt-embed {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 16 / 7 !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  background: #111 !important;
  box-shadow: 0 4px 24px rgba(0,0,0,.14) !important;
}
.taiwan-yt-fullwrap .taiwan-yt-embed iframe {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border: none !important;
  display: block !important;
}
.taiwan-section-divider {
  border-top: 1px solid var(--border);
}

/* ── Archive header spacing ── */
.archive-header {
  padding: 16px 0 16px !important;
  margin-bottom: 0 !important;
}

/* ── Archive header spacing — match Taiwan page ── */
.archive-header {
  padding: 20px 0 16px !important;
  margin-bottom: 0 !important;
}
.container .archive-header {
  padding-top: 16px !important;
}
