/* ═══════════════════════════════════════════════════════════
   ViveBKK — guide.css  (blue/white scheme)
═══════════════════════════════════════════════════════════ */

/* ── Guides list page hero ───────────────────────────────── */
.guides-page-hero {
  background: var(--text);
  padding: 40px 0 36px;
}
.guides-page-hero h1 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800; color: #fff;
  margin: 8px 0 10px; letter-spacing: -.02em;
}
.guides-page-hero p {
  font-size: 15px; color: rgba(255,255,255,.65);
}
.guides-breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: rgba(255,255,255,.45); margin-bottom: 12px;
}
.guides-breadcrumb a { color: rgba(255,255,255,.65); transition: color .14s; }
.guides-breadcrumb a:hover { color: #fff; }
.guides-breadcrumb span { color: rgba(255,255,255,.3); }

/* ── Guides list grid ────────────────────────────────────── */
.guides-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.guide-page-card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--bg-muted);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow .2s, transform .15s;
}
.guide-page-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.10);
  transform: translateY(-3px);
}
.guide-page-thumb {
  aspect-ratio: 16/9; background: var(--bg-soft); overflow: hidden;
}
.guide-page-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.guide-page-card:hover .guide-page-thumb img { transform: scale(1.04); }
.guide-page-thumb-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center;
  justify-content: center; font-size: 48px; background: var(--bg-soft);
}
.guide-page-body { padding: 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.guide-page-body h2 { font-size: 16px; font-weight: 700; color: var(--text); line-height: 1.35; }
.guide-page-title-th { font-size: 13px; color: var(--text-muted); }
.guide-page-excerpt { font-size: 13px; color: var(--text-body); line-height: 1.55; margin-top: 2px; }
.guide-read-more {
  margin-top: auto; padding-top: 12px;
  font-size: 13px; font-weight: 600; color: var(--blue);
}

/* Active nav link */
.nav-links a.active-nav,
.nav-links a[style*="color:var(--clay)"] {
  color: var(--blue) !important;
}

/* ── Single article layout ───────────────────────────────── */
.guide-cover {
  position: relative; width: 100%; max-height: 400px; overflow: hidden;
  background: var(--text);
}
.guide-cover img { width: 100%; height: 400px; object-fit: cover; display: block; }
.guide-cover-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(17,24,39,0) 40%, rgba(17,24,39,.45) 100%);
}

.guide-layout {
  max-width: 1100px; margin: 0 auto;
  padding: 48px 24px 72px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

/* ── Article column ──────────────────────────────────────── */
.guide-article { min-width: 0; }

.guide-breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-muted); margin-bottom: 20px; flex-wrap: wrap;
}
.guide-breadcrumb a { color: var(--blue); transition: color .14s; }
.guide-breadcrumb a:hover { color: var(--blue-dark); }

.guide-title {
  font-size: clamp(24px, 4vw, 38px); font-weight: 800;
  color: var(--text); line-height: 1.15;
  letter-spacing: -.02em; margin-bottom: 8px;
}
.guide-title-th { font-size: 18px; color: var(--text-muted); margin-bottom: 16px; }
.guide-excerpt {
  font-size: 17px; color: var(--text-body); line-height: 1.65;
  border-left: 3px solid var(--blue); padding-left: 16px;
  margin: 16px 0 20px; font-style: italic;
}
.guide-meta {
  display: flex; gap: 20px; font-size: 13px;
  color: var(--text-muted); margin-bottom: 24px; flex-wrap: wrap;
}
.guide-divider { border: none; border-top: 1px solid var(--bg-muted); margin-bottom: 32px; }

/* ── Article body ────────────────────────────────────────── */
.guide-body {
  font-size: 16px; line-height: 1.8; color: var(--text-body);
}
.guide-body h2 {
  font-size: 22px; font-weight: 700; color: var(--text);
  margin: 36px 0 14px; letter-spacing: -.01em;
}
.guide-body h3 {
  font-size: 18px; font-weight: 700; color: var(--text);
  margin: 28px 0 10px;
}
.guide-body p  { margin-bottom: 18px; }
.guide-body ul, .guide-body ol { padding-left: 22px; margin-bottom: 18px; }
.guide-body li { margin-bottom: 8px; }
.guide-body a  { color: var(--blue); text-decoration: underline; }
.guide-body a:hover { color: var(--blue-dark); }
.guide-body strong { font-weight: 700; color: var(--text); }
.guide-body blockquote {
  border-left: 4px solid var(--blue);
  background: var(--blue-light);
  padding: 14px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0; font-style: italic; color: var(--text-body);
}
.guide-body img {
  width: 100%; border-radius: var(--radius-md); margin: 20px 0; display: block;
}
.guide-body table {
  width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px;
}
.guide-body th {
  background: var(--bg-soft); padding: 10px 14px;
  text-align: left; font-weight: 600; color: var(--text);
  border: 1px solid var(--bg-muted);
}
.guide-body td {
  padding: 10px 14px; border: 1px solid var(--bg-muted); vertical-align: top;
}
.guide-body tr:nth-child(even) td { background: var(--bg-soft); }

/* ── Thai toggle ─────────────────────────────────────────── */
.guide-lang-toggle { margin: 32px 0 8px; }
.guide-lang-btn {
  font-size: 13px; font-weight: 600; color: var(--blue);
  background: var(--blue-light); border: 1px solid var(--blue);
  border-radius: var(--radius-sm); padding: 8px 18px;
  cursor: pointer; transition: background .15s; font-family: inherit;
}
.guide-lang-btn:hover { background: var(--blue); color: #fff; }
.guide-body-th { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--bg-muted); }

/* ── Share bar ───────────────────────────────────────────── */
.guide-share {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap; margin: 36px 0 20px;
  padding: 20px; background: var(--bg-soft);
  border-radius: var(--radius-md); border: 1px solid var(--bg-muted);
}
.guide-share-label { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.share-btn {
  font-size: 12px; font-weight: 600; padding: 6px 16px;
  border-radius: 20px; border: none; cursor: pointer;
  transition: opacity .15s; font-family: inherit;
}
.share-fb   { background: #1877F2; color: #fff; }
.share-tw   { background: #000; color: #fff; }
.share-copy { background: var(--bg-muted); color: var(--text); }
.share-btn:hover { opacity: .82; }

.guide-back { margin-top: 8px; }
.guide-back a { font-size: 14px; color: var(--blue); font-weight: 500; }
.guide-back a:hover { color: var(--blue-dark); }

/* ── Sidebar ─────────────────────────────────────────────── */
.guide-sidebar { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 20px; }

.guide-cta-card {
  background: var(--blue-light); border: 1px solid #c7d9f5;
  border-radius: var(--radius-lg); padding: 24px; text-align: center;
}
.guide-cta-icon { font-size: 36px; margin-bottom: 10px; }
.guide-cta-card h3 { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.guide-cta-card p  { font-size: 13px; color: var(--text-body); line-height: 1.5; margin-bottom: 16px; }

.guide-related { background: #fff; border: 1px solid var(--bg-muted); border-radius: var(--radius-lg); padding: 20px; }
.guide-related-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: 14px; }
.guide-related-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 0; border-bottom: 1px solid var(--bg-muted);
  transition: opacity .14s;
}
.guide-related-item:last-child { border-bottom: none; padding-bottom: 0; }
.guide-related-item:hover { opacity: .75; }
.guide-related-thumb {
  width: 56px; height: 44px; object-fit: cover; border-radius: var(--radius-sm);
  flex-shrink: 0; background: var(--bg-soft);
}
.guide-related-thumb-empty { display: flex; align-items: center; justify-content: center; font-size: 20px; }
.guide-related-name { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.3; }
.guide-related-exc  { font-size: 11px; color: var(--text-muted); margin-top: 3px; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .guides-page-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .guide-layout { grid-template-columns: 1fr; gap: 32px; padding: 32px 16px 48px; }
  .guide-sidebar { position: static; }
}
@media (max-width: 560px) {
  .guides-page-grid { grid-template-columns: 1fr; }
  .guide-cover img  { height: 220px; }
  .guide-title      { font-size: 24px; }
  .guide-body       { font-size: 15px; }
}
