﻿/*
 * SiamSEOskp — stylesheet.css
 * Inherits CSS from SiamBBskp2 (Bootstrap 5, main.css, ilist.css, white.css, etc.)
 * ไฟล์นี้โหลดหลังสุด — ใส่เฉพาะ rule ที่เพิ่มหรือ override
 */

/* ===== CSS CUSTOM PROPERTIES — SukapabDee.com brand ===== */
:root {
  --skp-brand-primary: #4B6B3A;           /* herbal olive green (nature/health) */
  --skp-brand-accent:  #F2811D;           /* orange (matches logo) */
  --skp-brand-coffee:  #6B4423;           /* warm wood brown */
  --skp-focus-ring:    0 0 0 3px rgba(75,107,58,.35);
  --skp-radius:        .5rem;
  --skp-transition:    .18s ease;
}

/* ===== ACCESSIBILITY: visible focus rings ===== */
:focus-visible {
  outline: 2px solid var(--skp-brand-primary);
  outline-offset: 2px;
  box-shadow: var(--skp-focus-ring);
}
a:focus-visible { border-radius: 2px; }

/* ===== SKIP LINK ===== */
.visually-hidden-focusable:focus {
  position: fixed;
  top: .5rem;
  left: .5rem;
  z-index: 9999;
  padding: .4em .8em;
  background: var(--skp-brand-primary);
  color: #fff;
  border-radius: var(--skp-radius);
  font-weight: 700;
}

/* ===== TYPOGRAPHY ===== */
body {
  font-family: "Open Sans", "Noto Sans Thai", Tahoma, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1.topic-title,
h1.forum-title {
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  line-height: 1.3;
}
.forabg h1.forum-title {
  font-size: clamp(.95rem, 2.8vw, 1.2rem);
  min-width: 0; flex: 1 1 auto; overflow-wrap: break-word; word-break: break-word;
}
h2.forum-title,
h2 { font-size: clamp(1rem, 2vw, 1.2rem); }

/* ===== NAVBAR & HEADER ===== */
#HeaderNavigation {
  border-bottom: 2px solid var(--skp-brand-accent);
}

/* ===== TOPBAR + STICKY NAV (standalone index.php / forum_page.php only —
   modeled after siamadvisor.com's siam_header.php, brand colors swapped in) ===== */
.sa-topbar { background: #33241A; }
.sa-topbar-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 16px; height: 42px;
  display: flex; align-items: center; gap: 6px;
}
.sa-topbar-spacer { flex: 1; }
.sa-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; padding: 7px 14px; border-radius: 999px;
  white-space: nowrap; transition: .15s; line-height: 1.2; text-decoration: none;
}
.sa-topbar .sa-btn-ghost {
  background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.15);
  color: #ddd; padding: 5px 12px; font-size: 12.5px;
}
.sa-topbar .sa-btn-ghost:hover { background: rgba(255,255,255,.2); color: #fff; }
.sa-topbar .sa-btn-mcp { color: #fbbf24 !important; box-shadow: inset 0 0 0 1px rgba(251,191,36,.35) !important; }
.sa-topbar .sa-btn-mcp:hover { background: rgba(251,191,36,.18) !important; color: #fde68a !important; }
.sa-topbar .sa-btn-acp { color: var(--skp-brand-accent) !important; box-shadow: inset 0 0 0 1px rgba(242,129,29,.4) !important; }
.sa-topbar .sa-btn-acp:hover { background: rgba(242,129,29,.18) !important; color: #ffd9a8 !important; }
.sa-btn-solid { color: #fff; background: var(--skp-brand-primary); padding: 5px 14px; font-size: 12.5px; }
.sa-btn-solid:hover { background: #3c5730; color: #fff; }
.sa-btn-register {
  padding: 5px 14px; font-size: 12.5px; color: var(--skp-brand-accent);
  box-shadow: inset 0 0 0 1px var(--skp-brand-accent);
}
.sa-btn-register:hover { background: var(--skp-brand-accent); color: #1a1a1a; }
.sa-icon-btn {
  position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 9px; font-size: 15px; color: #ddd;
  background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); transition: .15s;
}
.sa-icon-btn:hover { background: rgba(255,255,255,.2); color: #fff; }
.sa-badge {
  position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 999px; background: #dc3545; color: #fff; font-size: 10px; font-weight: 800;
  line-height: 17px; text-align: center; box-shadow: 0 0 0 2px #33241A;
}
.sa-usermenu { position: relative; }
.sa-usermenu summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; padding: 5px 10px; border-radius: 6px;
  color: rgba(255,255,255,.85); background: transparent; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
  white-space: nowrap; transition: .15s;
}
.sa-usermenu summary:hover { background: rgba(255,255,255,.1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); }
.sa-usermenu summary::-webkit-details-marker { display: none; }
.sa-uname { display: inline-block; max-width: 110px; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.sa-caret { font-size: 9px; transition: transform .15s; }
.sa-usermenu[open] summary .sa-caret { transform: rotate(180deg); }
.sa-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 200; min-width: 196px;
  background: #fff; border: 1px solid #ECD9B8; border-radius: 12px; padding: 6px;
  box-shadow: 0 14px 34px -10px rgba(0,0,0,.3);
}
.sa-menu a {
  display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 8px;
  font-size: 13.5px; font-weight: 600; color: #333; white-space: nowrap; text-decoration: none;
}
.sa-menu a:hover { background: #F3ECDD; }
.sa-menu a.sa-menu-danger { color: #b3392f; }
.sa-menu a.sa-menu-danger:hover { background: #fdecea; }
.sa-menu-sep { height: 1px; background: #ECD9B8; margin: 5px 2px; }

.sa-head {
  background: #E9EEE6; border-bottom: 3px solid var(--skp-brand-accent);
  position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 12px rgba(0,0,0,.09);
}
.sa-head-inner { max-width: 1180px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; height: 58px; }
.sa-brand-h1 { margin: 0; padding: 0; font-size: inherit; font-weight: inherit; line-height: 1; flex: none; }
.sa-brand { display: flex; align-items: center; gap: 10px; margin-right: 20px; text-decoration: none; }
.sa-logo-img { height: 38px; width: auto; max-width: 200px; display: block; }
.sa-brand-name { font-size: 19px; font-weight: 800; color: var(--skp-brand-accent); white-space: nowrap; }
.sa-nav {
  display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0;
  overflow-x: auto; scrollbar-width: none;
}
.sa-nav::-webkit-scrollbar { display: none; }
.sa-nav a {
  font-size: 13px; font-weight: 600; color: #333; padding: 7px 10px; border-radius: 6px;
  white-space: nowrap; transition: background .12s, color .12s; flex: none; text-decoration: none;
}
.sa-nav a:hover, .sa-nav a.is-active { color: var(--skp-brand-primary); background: rgba(75,107,58,.18); }
.sa-nav-home { color: var(--skp-brand-primary) !important; font-weight: 700 !important; }
.sa-hamburger {
  display: none; flex: none; align-items: center; justify-content: center; width: 36px; height: 36px;
  border: 0; border-radius: 9px; cursor: pointer; background: #F3ECDD; box-shadow: inset 0 0 0 1px #ECD9B8;
  font-size: 19px; color: #333; transition: background .12s; padding: 0;
}
.sa-hamburger:hover { background: #ECD9B8; }

@media (max-width: 900px) {
  .sa-hamburger { display: inline-flex; margin-left: auto; }
  .sa-nav {
    position: absolute; left: 0; right: 0; top: 100%; display: none; flex-direction: column; gap: 0;
    background: #fff; padding: 6px 0; border-bottom: 3px solid var(--skp-brand-accent);
    box-shadow: 0 8px 20px -4px rgba(0,0,0,.12); z-index: 99; flex: none; min-width: 0;
  }
  .sa-nav a {
    background: transparent; border-radius: 0; padding: 11px 20px; border-bottom: 1px solid #ECD9B8;
    font-size: 14px; display: flex; align-items: center; justify-content: space-between;
    white-space: normal; flex: none;
  }
  .sa-nav a:last-child { border-bottom: 0; }
  .sa-nav a:hover { background: #F3ECDD; }
  .sa-nav.is-open { display: flex; }
  .sa-head-inner { position: relative; }
}
@media (max-width: 600px) {
  .sa-head-inner { height: 52px; }
  .sa-brand-name { font-size: 16px; }
}

/* ===== FORUM LIST ===== */
.forabg:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,.10);
}
/* override SiamBBskp2/white.css's tan bg-forum-head* so the per-forum card
   reads lighter than the dark-green category header above it */
.bg-forum-head1 { background-color: var(--skp-brand-coffee) !important; }
.bg-forum-head2 { background-color: #ECD9B8 !important; }
/* override SiamBBskp2/white.css's blood-red text-coffee (#8D1509) with the
   confirmed wood-brown brand color — affects topic-title h1, post subjects,
   "post new topic" links, etc. site-wide */
.text-coffee { color: var(--skp-brand-coffee) !important; }
.i-forumlist {
  overflow: hidden;
}
.i-forumlist a {
  color: #1a1a2e;
  text-decoration: none;
}
.i-forumlist a:hover { color: var(--skp-brand-primary); }

/* ===== HERO SLIDER + HIGHLIGHT PANEL ===== */
.sa-hero {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 16px;
  --hero-h: 456px;
  margin-bottom: 32px;
}
.sa-hero--full { grid-template-columns: 1fr; }

.sa-slider {
  position: relative; overflow: hidden; border-radius: 14px;
  background: #0b0b0b; height: var(--hero-h);
}
.sa-slides { display: flex; height: 100%; transition: transform .5s ease; }
.sa-slide  { flex: 0 0 100%; min-width: 0; height: 100%; position: relative; }
.sa-slide a { display: block; height: 100%; position: relative; }
.sa-slide img { display: block; width: 100%; height: 100%; object-fit: contain; }
.sa-slide-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 50px 60px 18px 18px;
  background: linear-gradient(transparent, rgba(0,0,0,.88));
  color: #fff;
}
.sa-slide-badge {
  display: inline-block; background: rgba(255,255,255,.15); color: rgba(255,255,255,.82);
  font-size: 10px; font-weight: 600; padding: 2px 9px; border-radius: 999px; margin-bottom: 8px;
  border: 1px solid rgba(255,255,255,.28);
  max-width: calc(100% - 70px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  vertical-align: middle; letter-spacing: .3px;
}
.sa-slide-cap h2 {
  margin: 0; font-size: 19px; font-weight: 800; line-height: 1.35;
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sa-arrow {
  position: absolute; top: calc(50% - 18px); z-index: 3;
  width: 36px; height: 36px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.82); color: #222; font-size: 21px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.3); transition: .15s;
}
.sa-arrow:hover { background: #fff; }
.sa-arrow-prev { left: 10px; } .sa-arrow-next { right: 10px; }
.sa-dots-wrap {
  position: absolute; left: 0; right: 0; bottom: 9px; z-index: 3;
  display: flex; gap: 7px; justify-content: center;
}
.sa-dot-btn {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.5); transition: .2s;
}
.sa-dot-btn.is-active { background: #fff; width: 20px; border-radius: 999px; }

.sa-hero-right {
  background: #1a1d24; border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column; height: var(--hero-h);
}
.sa-hero-right-hd {
  padding: 11px 14px; flex: none;
  font-size: 11.5px; font-weight: 700; color: rgba(255,255,255,.55);
  letter-spacing: .6px; text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.sa-hi-item {
  display: flex; gap: 11px; padding: 13px 14px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  flex: 1; align-items: center; text-decoration: none;
  transition: background .12s; min-height: 0;
}
.sa-hi-item:hover { background: rgba(255,255,255,.06); }
.sa-hi-item:last-child { border-bottom: 0; }
.sa-hi-thumb {
  flex: none; width: 92px; height: 64px;
  border-radius: 8px; overflow: hidden; background: #2a2d35;
}
.sa-hi-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.sa-hi-no-thumb  { flex: none; width: 6px; height: 0; }
.sa-hi-body { flex: 1; min-width: 0; }
.sa-hi-cat {
  display: inline-block; background: rgba(255,255,255,.1); color: rgba(255,255,255,.58);
  font-size: 10px; font-weight: 600; padding: 1px 7px; border-radius: 999px; margin-bottom: 5px;
  max-width: min(220px, 100%); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  vertical-align: middle; letter-spacing: .3px;
}
.sa-hi-title {
  font-size: 13px; font-weight: 700; color: #dde0e8; margin: 0 0 5px; line-height: 1.38;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sa-hi-meta { font-size: 11px; color: rgba(255,255,255,.35); }

/* Hero Responsive */
@media (max-width: 900px) {
  .sa-hero { grid-template-columns: 1fr; --hero-h: auto; }
  .sa-slider, .sa-slides, .sa-slide, .sa-slide a { height: auto; }
  .sa-slide img { height: auto; aspect-ratio: 16/9; }
  .sa-hero-right { height: auto; }
  .sa-hi-item { flex: none; }
}
@media (max-width: 600px) {
  .sa-slide-cap h2 { font-size: 15px; }
  .sa-slide-cap { padding: 35px 50px 14px 14px; }
  .sa-arrow { width: 30px; height: 30px; font-size: 18px; }
}
@media (max-width: 480px) {
  .sa-slide-cap { padding: 18px 42px 10px 12px; }
  .sa-slide-badge { font-size: 9px; padding: 1px 6px; margin-bottom: 4px; }
  .sa-slide-cap h2 { font-size: 13px; -webkit-line-clamp: 1; }
  .sa-hi-thumb { width: 90px; height: 68px; }
}

/* ===== SECTION BANNER (siam_banner() — used by homepage/forum_page.php sections) ===== */
.sa-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--skp-brand-primary); border-left: 4px solid #C9A66B;
  border-radius: var(--skp-radius); padding: 10px 16px; margin-bottom: 16px;
}
.sa-banner-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sa-banner-icon { font-size: 20px; line-height: 1; flex: none; color: #ECD9B8; }
.sa-banner-title { margin: 0; font-size: 16px; font-weight: 700; color: #fff; }
.sa-banner-title a { color: #fff; text-decoration: none; }
.sa-banner-link {
  flex: none; color: #fff; font-size: 13px; font-weight: 600; text-decoration: none;
  white-space: nowrap;
}
.sa-banner-link:hover { text-decoration: underline; }
@media (max-width: 480px) {
  /* ชื่อฟอรั่มเป็นลิงก์ไปหน้าเดียวกับ "ดูทั้งหมด" อยู่แล้ว — ซ่อนปุ่มซ้ำซ้อนบนจอเล็ก
     ให้ชื่อฟอรั่มมีพื้นที่เต็มแทน */
  .sa-banner-link { display: none; }
}

/* ===== POPULAR-TOPICS GRID (siam_card() — homepage "กระทู้ยอดนิยม") ===== */
.sa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.sa-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid #ECD9B8; border-radius: var(--skp-radius);
  overflow: hidden; transition: box-shadow var(--skp-transition);
}
.sa-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.10); }
.sa-card .sa-thumb { display: block; aspect-ratio: 16/10; overflow: hidden; background: #F3ECDD; }
.sa-card .sa-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sa-card .sa-body { padding: 12px 14px 14px; flex: 1; display: flex; flex-direction: column; }
.sa-card .sa-title { font-size: 14px; font-weight: 700; line-height: 1.35; margin: 0 0 6px; }
.sa-card .sa-title a { color: var(--skp-brand-coffee); text-decoration: none; }
.sa-card .sa-title a:hover { color: var(--skp-brand-primary); }
.sa-card .sa-excerpt {
  font-size: 12.5px; color: #5b5449; line-height: 1.5; margin: 0 0 8px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sa-card .sa-meta { font-size: 11px; color: #8a7f6e; margin-top: auto; }
.sa-dot { margin: 0 4px; color: #c9b896; }

/* ===== TOPIC LIST CARD (siam_list_item() — forum_page.php + homepage per-forum sections) ===== */
.sa-list { display: flex; flex-direction: column; gap: 10px; }
.sa-li {
  display: flex; gap: 0;
  background: #fff; border: 1px solid #ECD9B8; border-radius: var(--skp-radius);
  overflow: hidden;
  transition: box-shadow var(--skp-transition);
}
.sa-li:hover { box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.sa-li-thumb {
  flex: none; display: block; width: 148px;
  overflow: hidden; background: #F3ECDD; align-self: stretch;
}
.sa-li-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; min-height: 105px; }
.sa-li-body { flex: 1; min-width: 0; padding: 12px 15px; }
.sa-li-badges { display: flex; gap: 6px; margin-bottom: 6px; flex-wrap: wrap; }
.sa-badge-type {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; color: #fff;
}
.sa-badge-moved    { background: #8a7f6e; }
.sa-badge-announce { background: var(--skp-brand-accent); }
.sa-badge-sticky   { background: var(--skp-brand-primary); }
.sa-badge-locked   { background: #8C5C23; }
.sa-li-title { font-size: 15px; font-weight: 700; margin: 0 0 6px; line-height: 1.4; }
.sa-li-title a { color: var(--skp-brand-coffee); text-decoration: none; }
.sa-li-title a:hover { color: var(--skp-brand-primary); }
.sa-li-new {
  display: inline-block; background: var(--skp-brand-accent); color: #fff;
  font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 4px; margin-right: 6px;
  vertical-align: middle;
}
.sa-li-excerpt {
  font-size: 13px; color: #5b5449; line-height: 1.5; margin: 0 0 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sa-li-meta { font-size: 12px; color: #8a7f6e; margin-bottom: 4px; }
.sa-li-author { font-weight: 600; }
.sa-li-footer {
  font-size: 12px; color: #8a7f6e; padding-top: 6px; border-top: 1px solid #F3ECDD;
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
}
.sa-goto-last { color: var(--skp-brand-primary); font-weight: 700; margin-left: 4px; text-decoration: none; }
.sa-li-pages a {
  display: inline-block; min-width: 20px; text-align: center; margin-left: 2px;
  color: var(--skp-brand-primary); text-decoration: none;
}
.sa-li-pages a:hover { text-decoration: underline; }

@media (max-width: 575.98px) {
  .sa-li-thumb { width: 100px; }
}
@media (max-width: 480px) {
  .sa-li { flex-direction: column; }
  .sa-li-thumb { width: 100%; height: 160px; }
}

/* ===== BOARD INFO: stats + who's online (homepage, compact 2-card layout
   matching siamadvisor.com's index.php — ไม่ทำตัวเลขใหญ่/เด่นเกินไป) ===== */
.sa-board-info { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.sa-bi-card {
  background: #fff; border-radius: var(--skp-radius); border: 1px solid #ECD9B8;
  box-shadow: 0 1px 4px rgba(0,0,0,.06); padding: 16px 20px;
}
.sa-bi-card h2 {
  font-size: 12px; font-weight: 700; color: #6b5b3f; background: #F3ECDD; border-radius: 6px;
  padding: 5px 11px; margin: 0 0 14px; display: flex; align-items: center; gap: 7px;
}
.sa-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.sa-stat-item { font-size: 12.5px; color: #8a7f6e; }
.sa-stat-item strong {
  display: block; font-size: 14px; font-weight: 700; color: var(--skp-brand-coffee);
  line-height: 1.4; margin-bottom: 1px;
}
.sa-stat-newest { margin-top: 12px; padding-top: 10px; border-top: 1px solid #ECD9B8; font-size: 12.5px; color: #8a7f6e; }
.sa-online-sum { font-size: 13px; color: #8a7f6e; margin-bottom: 10px; }
.sa-online-sum strong { color: var(--skp-brand-coffee); font-weight: 700; }
.sa-online-list { font-size: 13px; line-height: 1.9; word-break: break-word; color: #5b5449; }
.sa-online-link { font-weight: 400; text-decoration: none; color: var(--skp-brand-coffee); }
.sa-online-link:hover { text-decoration: underline; }
@media (max-width: 700px) { .sa-board-info { grid-template-columns: 1fr; } }

/* ===== BREADCRUMB (forum_page.php) — การ์ดแบบ siamadvisor.com แต่ใช้ FontAwesome icon
   ล้วน (แทน Unicode "›"/emoji) ให้ scale ตาม font-size ได้ชัดเจนขึ้น ===== */
.sa-crumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin: 0 0 18px;
  padding: 9px 16px; background: linear-gradient(90deg, #FBF3E7, #fff 60%);
  border: 1px solid #ECD9B8; border-radius: 10px; box-shadow: 0 1px 4px rgba(75,107,58,.07);
  font-size: 13px;
}
.sa-crumb a {
  color: #6b5b3f; text-decoration: none; font-weight: 500; padding: 2px 6px; border-radius: 5px;
  display: inline-flex; align-items: center; gap: 5px; transition: color .12s, background .12s;
}
.sa-crumb a:hover { color: var(--skp-brand-primary); background: #F3ECDD; }
.sa-crumb-sep { color: #c9b896; font-size: 12px; line-height: 1; }
.sa-crumb-current {
  color: var(--skp-brand-coffee); font-weight: 700; font-size: 13px; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 5px;
}

/* ===== TOPIC PAGE ===== */
.post {
  border: 1px solid #e8e1d8;
  border-radius: var(--skp-radius);
  transition: box-shadow var(--skp-transition);
}
.post:hover { box-shadow: 0 2px 6px rgba(0,0,0,.07); }

.content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

/* ===== SHARE BUTTONS ===== */
.sa-share-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 4px; text-decoration: none;
  font-size: 14px; font-weight: 600; color: #fff; margin-right: 6px;
  transition: opacity .15s;
}
.sa-share-btn:hover { opacity: .85; color: #fff; }
.sa-share-fb   { background: #1877F2; }
.sa-share-line { background: #06C755; margin-right: 0; }

/* ===== FOOTER NAV BAR (share + delete-cookies/members/team/who's-online) ===== */
.sa-foot-nav {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: 8px; margin: 16px 0 0; padding: 8px 16px; background: #F3ECDD; border-radius: var(--skp-radius);
  border: 1px solid #ECD9B8;
}
.sa-foot-nav-left, .sa-foot-nav-right { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; }
.sa-foot-nav-link {
  font-size: 13px; color: #6b5b3f; text-decoration: none; display: inline-flex; align-items: center;
  gap: 5px; padding: 3px 0; transition: color .12s; white-space: nowrap;
}
.sa-foot-nav-link:hover { color: var(--skp-brand-primary); }
.sa-foot-nav-link .fa { width: 16px; text-align: center; font-size: 15px; }
.sa-foot-nav-sep { color: #ECD9B8; font-size: 13px; }
@media (max-width: 600px) { .sa-foot-nav { flex-direction: column; align-items: flex-start; } }

/* ===== ADS: clear floats + spacing ===== */
.sa-ad-block {
  margin: 1rem 0;
  text-align: center;
  overflow: hidden;
}
.sa-ad-leaderboard { min-height: 90px; }
.sa-ad-rectangle   { min-height: 250px; }

/* ===== FOOTER (card-grid layout matching siamadvisor.com/index.php —
   กรอบการ์ด, การจัดวาง 3 คอลัมน์, logo row, copyright bar, credit line;
   เนื้อหาลิงก์เป็นของ สุขภาพดี.com เอง ใช้ FontAwesome icon แบบเดิม) ===== */
.sa-footer { background: #fff; color: #444; margin-top: 16px; border-top: 4px solid var(--skp-brand-accent); }
.sa-foot-links {
  display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1180px;
  margin: 0 auto; padding: 26px 8px 18px;
}
.sa-foot-col { padding: 0 16px 16px; border-right: 1px solid #ECD9B8; }
.sa-foot-col:last-child { border-right: 0; }
.sa-foot-col h4 { font-size: 13px; font-weight: 700; color: var(--skp-brand-coffee); margin: 0 0 10px; }
.sa-foot-col ul { list-style: none; margin: 0; padding: 0; }
.sa-foot-col li { margin-bottom: 8px; }
.sa-foot-col a {
  font-size: 13px; color: #5b5449; transition: color .12s; display: flex;
  align-items: center; gap: 6px; text-decoration: none;
}
.sa-foot-col a i { color: var(--skp-brand-accent); flex: none; width: 16px; text-align: center; }
.sa-foot-col a:hover { color: var(--skp-brand-primary); }
.sa-fi { font-style: normal; flex: none; width: 20px; text-align: center; font-size: 14px; color: var(--skp-brand-accent); }
.sa-foot-info { font-size: 13px; color: #5b5449; display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.sa-foot-logo-row {
  max-width: 1180px; margin: 0 auto; padding: 16px 16px 14px; text-align: center;
  border-top: 1px solid #ECD9B8;
}
.sa-foot-logo-row a { display: inline-block; padding: 6px 12px; transition: opacity .15s; text-decoration: none; }
.sa-foot-logo-row a:hover { opacity: .75; }
.sa-foot-logo-row img { height: 42px; width: auto; display: block; margin: 0 auto; }
.sa-foot-sitename { font-size: 19px; font-weight: 800; color: var(--skp-brand-accent); }
.sa-foot-bar { background: #33241A; }
.sa-foot-bar-inner {
  max-width: 1180px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.sa-foot-copy { font-size: 12.5px; color: rgba(255,255,255,.8); }
.sa-foot-copy a, .sa-foot-links-bar a { color: rgba(255,255,255,.8); transition: color .12s; text-decoration: none; }
.sa-foot-copy a:hover, .sa-foot-links-bar a:hover { color: #fff; }
.sa-foot-links-bar { font-size: 12.5px; color: rgba(255,255,255,.8); }
.sa-foot-credit {
  background: #33241A; font-size: 11px; color: rgba(255,255,255,.55); text-align: center;
  padding: 5px 16px 8px; border-top: 1px solid rgba(255,255,255,.15);
}
.sa-foot-credit a { color: rgba(255,255,255,.65); transition: color .12s; text-decoration: none; }
.sa-foot-credit a:hover { color: #fff; }

/* ===== PAGINATION (override Bootstrap's default blue) ===== */
.pagination .page-link {
  color: var(--skp-brand-primary); border-color: #ECD9B8;
}
.pagination .page-link:hover {
  color: #fff; background: var(--skp-brand-primary); border-color: var(--skp-brand-primary);
}
.pagination .page-link:focus {
  box-shadow: 0 0 0 .2rem rgba(75,107,58,.25);
}
.pagination .page-item.active .page-link {
  color: #fff; background: var(--skp-brand-primary); border-color: var(--skp-brand-primary);
}
.pagination .page-item.disabled .page-link {
  color: #b3a99a; background: #F3ECDD; border-color: #ECD9B8;
}

@media (max-width: 760px) {
  .sa-foot-links { grid-template-columns: 1fr 1fr; padding: 18px 4px 12px; }
  .sa-foot-col { padding: 0 12px 12px; border-right: 0; border-bottom: 1px solid #ECD9B8; }
  .sa-foot-col:last-child { border-bottom: 0; }
}
@media (max-width: 480px) {
  .sa-foot-links { grid-template-columns: 1fr; }
}

/* ===== RESPONSIVE IMPROVEMENTS ===== */
@media (max-width: 767.98px) {
  .btn, a.nav-link:not(.dropdown-toggle) { min-height: 44px; display: flex; align-items: center; }
  a.nav-link.dropdown-toggle { min-height: 44px; }
  .i-forumlist ul li { line-height: 32px; }
  .post { margin-bottom: .5rem; }
  .forum-description { display: block !important; }
}

@media (max-width: 575.98px) {
  .container-xxl { overflow-x: hidden; }
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ===== PRINT STYLES ===== */
@media print {
  #HeaderNavigation, #page-footer, .action-bar, .sa-ad-block,
  .post-buttons, #phpbb_alert, #phpbb_confirm, .scrollup { display: none !important; }
  .content { font-size: 11pt; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #666; }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
