/* =====================================================================
   BLOG CSS — The Spirit Hua Hin Resort  (TrueID-inspired editorial)
   Sharp edges, clean layout, content-portal feel
   ===================================================================== */

:root {
  --tid-gold: #c8a97e;
  --tid-gold-light: #e8d5b5;
  --tid-gold-dark: #a07d55;
  --tid-dark: #1a1a2e;
  --tid-dark2: #16213e;
  --tid-text: #222;
  --tid-text-sub: #6b7280;
  --tid-bg: #f4f4f4;
  --tid-white: #fff;
  --tid-border: #e0e0e0;
  --tid-red: #e53935;
  --tid-font: inherit;
  --tid-serif: inherit;
  --tid-ease: all 0.25s ease;
  --tid-max: 1240px;
}

/* =====================================================================
   1. CATEGORY NAV BAR
   ===================================================================== */
.tid-nav {
  background: #c28559;
  position: sticky; top: 90px; z-index: 100;
  margin-top: 90px;
  border-bottom: none;
  box-shadow: none;
}
.tid-nav::before {
  content: ''; position: absolute;
  top: -90px; left: 0; right: 0; height: 90px;
  background: #c28559;
  pointer-events: none; z-index: -1;
}
.tid-nav__inner {
  max-width: var(--tid-max); margin: 0 auto;
  display: flex; align-items: center; gap: 0;
  padding: 0 24px; height: 50px;
  border-top: 1px solid rgba(255,255,255,0.2);
}
.tid-nav__brand {
  font-weight: 700; font-size: 1rem;
  color: #fff; letter-spacing: 2px;
  white-space: nowrap; margin-right: 24px;
  font-family: var(--tid-serif);
  text-transform: uppercase;
  position: relative;
  padding-right: 24px;
}
.tid-nav__brand::after {
  content: ''; position: absolute;
  right: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 20px;
  background: rgba(255,255,255,0.3);
}
.tid-nav__brand span {
  color: rgba(255,255,255,0.7); font-weight: 300;
  font-family: var(--tid-font); font-size: 0.82rem;
  margin-left: 8px; letter-spacing: 0.5px;
  text-transform: none;
}
.tid-nav__cats {
  display: flex; gap: 0; overflow-x: auto; flex: 1;
  scrollbar-width: none; -ms-overflow-style: none;
}
.tid-nav__cats::-webkit-scrollbar { display: none; }
.tid-nav__cat {
  padding: 14px 18px; font-size: 0.85rem; font-weight: 500;
  color: rgba(255,255,255,0.65); text-decoration: none;
  white-space: nowrap; border-bottom: 2px solid transparent;
  margin-bottom: -1px; transition: var(--tid-ease);
  letter-spacing: 0.3px;
}
.tid-nav__cat:hover { color: #fff; }
.tid-nav__cat.active {
  color: #fff;
  border-bottom-color: #fff;
  font-weight: 600;
}
.tid-nav__search {
  display: flex; margin-left: auto;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
  transition: var(--tid-ease);
}
.tid-nav__search:focus-within {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.18);
}
.tid-nav__search input {
  border: none; background: none; color: #fff;
  font-size: 0.84rem; padding: 8px 14px; width: 180px;
  outline: none; font-family: var(--tid-font);
}
.tid-nav__search input::placeholder { color: rgba(255,255,255,0.45); }
.tid-nav__search button {
  background: rgba(255,255,255,0.2); border: none; color: #fff;
  padding: 0 14px; cursor: pointer; font-size: 0.82rem;
  transition: var(--tid-ease);
}
.tid-nav__search button:hover { background: rgba(255,255,255,0.35); }

/* Filter bar */
.tid-filter-bar { background: #fff9f0; border-bottom: 1px solid var(--tid-border); }
.tid-filter-bar__inner {
  max-width: var(--tid-max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 24px; font-size: 0.88rem;
}
.tid-filter-bar__inner a {
  color: var(--tid-red); text-decoration: none; font-weight: 600;
  display: inline-flex; align-items: center; gap: 4px;
}

/* =====================================================================
   2. HERO SECTION (1 large + 2 stacked)
   ===================================================================== */
.tid-hero {
  max-width: var(--tid-max); margin: 0 auto;
  padding: 24px 24px 0;
  display: grid; grid-template-columns: 1.65fr 1fr;
  gap: 6px;
}
.tid-hero__main {
  position: relative; display: block;
  text-decoration: none; color: #fff;
  overflow: hidden; min-height: 460px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}
.tid-hero__img { position: absolute; inset: 0; }
.tid-hero__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.tid-hero__main:hover .tid-hero__img img { transform: scale(1.05); }
.tid-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    0deg,
    rgba(10,10,25,0.92) 0%,
    rgba(10,10,25,0.55) 35%,
    rgba(10,10,25,0.15) 60%,
    transparent 100%
  );
  transition: 3s ease-in-out;
}
.tid-hero__body {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 36px 32px 28px; z-index: 2;
}
.tid-hero__body::before {
  content: ''; position: absolute;
  top: 0; left: 32px; width: 40px; height: 3px;
  background: var(--tid-gold);
}
.tid-hero__title {
  font-family: var(--tid-serif);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700; line-height: 1.4;
  margin: 14px 0 12px;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.tid-hero__excerpt {
  font-size: 0.9rem; line-height: 1.6;
  color: rgba(255,255,255,0.75); margin: 0 0 16px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  max-width: 90%;
}
.tid-hero__meta {
  display: flex; gap: 16px; font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.tid-hero__meta i { margin-right: 4px; color: var(--tid-gold-light); }

/* Sub hero cards */
.tid-hero__side { display: flex; flex-direction: column; gap: 6px; }
.tid-hero__sub {
  position: relative; flex: 1;
  display: block; text-decoration: none; color: #fff;
  overflow: hidden; min-height: 227px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.12);
}
.tid-hero__sub-img { position: absolute; inset: 0; }
.tid-hero__sub-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.tid-hero__sub:hover .tid-hero__sub-img img { transform: scale(1.06); }
.tid-hero__sub .tid-hero__overlay {
  background: linear-gradient(
    0deg,
    rgba(10,10,25,0.88) 0%,
    rgba(10,10,25,0.4) 40%,
    transparent 100%
  );
  transition: 3s ease-in-out;
}
.tid-hero__sub-body {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px 22px 18px; z-index: 2;
}
.tid-hero__sub-title {
  font-family: var(--tid-serif);
  font-size: 1.05rem; font-weight: 700;
  line-height: 1.4; margin: 8px 0 10px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.tid-hero__sub .tid-hero__meta {
  padding-top: 0;
  border-top: none;
}

/* Hero label (FEATURED) */
.tid-hero__label {
  margin-bottom: 12px;
}
.tid-hero__label span {
  display: inline-block;
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--tid-gold);
  padding-left: 20px;
  position: relative;
}
.tid-hero__label span::before {
  content: ''; position: absolute;
  left: 0; top: 50%; transform: translateY(-50%);
  width: 14px; height: 1px;
  background: var(--tid-gold);
}

/* Read more in hero meta */
.tid-hero__readmore {
  margin-left: auto;
  color: var(--tid-gold-light) !important;
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
  transition: var(--tid-ease);
}
.tid-hero__readmore i { font-size: 0.7rem; transition: transform 0.3s ease; }
.tid-hero__main:hover .tid-hero__readmore i { transform: translateX(4px); }

/* Badge */
.tid-badge {
  display: inline-block;
  background: var(--tid-gold); color: var(--tid-dark);
  padding: 4px 12px; font-size: 0.7rem;
  font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.8px;
  box-shadow: 0 2px 8px rgba(200,169,126,0.3);
  color: #000;
}
.tid-badge--sm { font-size: 0.65rem; padding: 3px 9px; }

/* =====================================================================
   3. MAIN LAYOUT (content + sidebar)
   ===================================================================== */
.tid-layout {
  max-width: var(--tid-max); margin: 0 auto;
  padding: 24px 20px 60px;
  display: grid; grid-template-columns: 1fr 340px;
  gap: 32px; align-items: start;
}
.tid-main { min-width: 0; }

/* Section header */
.tid-section-header {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 24px; padding-bottom: 14px;
  border-bottom: 1px solid var(--tid-border);
}
.tid-section-header h2 {
  font-family: var(--tid-serif);
  font-size: 1.25rem; font-weight: 700;
  color: var(--tid-dark); white-space: nowrap;
  margin: 0; position: relative;
  padding-left: 16px;
}
.tid-section-header h2::before {
  content: ''; position: absolute;
  left: 0; top: 2px; bottom: 2px;
  width: 3px; background: var(--tid-gold);
}
.tid-section-header__line {
  flex: 1; height: 0;
}

/* =====================================================================
   4. ARTICLE FEED CARDS
   ===================================================================== */
.tid-feed { display: flex; flex-direction: column; gap: 0; }

.tid-card {
  border-bottom: 1px solid var(--tid-border);
  background: var(--tid-white);
  transition: var(--tid-ease);
}
.tid-card:hover { background: #faf8f5; }
.tid-card:last-child { border-bottom: none; }
.tid-card__link {
  display: grid; grid-template-columns: 240px 1fr;
  gap: 0; text-decoration: none; color: inherit;
  min-height: 0;
}
.tid-card__img {
  position: relative; overflow: hidden;
  aspect-ratio: 16/10;
}
.tid-card__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.tid-card:hover .tid-card__img img { transform: scale(1.04); }
.tid-card__placeholder {
  width: 100%; height: 100%;
  background: var(--tid-bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: var(--tid-border);
}
.tid-card__body {
  padding: 16px 20px;
  display: flex; flex-direction: column; justify-content: center;
}
.tid-card__title {
  font-family: var(--tid-serif);
  font-size: 1.05rem; font-weight: 700;
  line-height: 1.4; color: var(--tid-dark);
  margin: 6px 0 6px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.tid-card:hover .tid-card__title { color: var(--tid-gold-dark); }
.tid-card__excerpt {
  font-size: 0.85rem; color: var(--tid-text-sub);
  line-height: 1.55; margin: 0 0 10px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.tid-card__meta {
  display: flex; gap: 12px;
  font-size: 0.75rem; color: var(--tid-text-sub);
}
.tid-card__meta i { color: var(--tid-gold); margin-right: 3px; }

/* Wide card (first in feed) */
.tid-card--wide .tid-card__link {
  grid-template-columns: 1fr;
}
.tid-card--wide .tid-card__img {
  aspect-ratio: 21/9;
}
.tid-card--wide .tid-card__body { padding: 16px 0 20px; }
.tid-card--wide .tid-card__title { font-size: 1.2rem; -webkit-line-clamp: 2; }
.tid-card--wide .tid-card__excerpt { -webkit-line-clamp: 2; }

/* =====================================================================
   5. SIDEBAR
   ===================================================================== */
.tid-sidebar {
  position: sticky; top: 162px;
  display: flex; flex-direction: column; gap: 20px;
}
.tid-widget {
  background: var(--tid-white);
  border: 1px solid var(--tid-border);
}
.tid-widget__head {
  padding: 14px 18px;
  border-bottom: 2px solid var(--tid-gold);
}
.tid-widget__head h3 {
  font-size: 0.95rem; font-weight: 700;
  color: var(--tid-dark); margin: 0;
  display: flex; align-items: center; gap: 8px;
}
.tid-widget__head h3 i { color: var(--tid-gold); font-size: 0.9rem; }

/* Popular list */
.tid-popular {
  list-style: none; padding: 0; margin: 0;
  counter-reset: none;
}
.tid-popular li { border-bottom: 1px solid var(--tid-border); }
.tid-popular li:last-child { border-bottom: none; }
.tid-popular a {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 18px; text-decoration: none; color: inherit;
  transition: var(--tid-ease);
}
.tid-popular a:hover { background: #faf8f5; }
.tid-popular__rank {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; flex-shrink: 0;
  background: var(--tid-dark); color: var(--tid-gold-light);
  font-size: 0.82rem; font-weight: 700;
  margin-top: 2px;
}
.tid-popular li:nth-child(1) .tid-popular__rank { background: var(--tid-gold); color: #fff; }
.tid-popular li:nth-child(2) .tid-popular__rank { background: var(--tid-gold-dark); color: #fff; }
.tid-popular li:nth-child(3) .tid-popular__rank { background: #8d7355; color: #fff; }
.tid-popular__info { flex: 1; min-width: 0; }
.tid-popular__title {
  display: block; font-size: 0.88rem; font-weight: 600;
  line-height: 1.4; color: var(--tid-dark);
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.tid-popular a:hover .tid-popular__title { color: var(--tid-gold-dark); }
.tid-popular__meta {
  display: block; font-size: 0.72rem;
  color: var(--tid-text-sub); margin-top: 4px;
}

/* Tags */
.tid-tags { padding: 14px 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.tid-tag {
  display: inline-block; padding: 5px 12px;
  font-size: 0.78rem; font-weight: 500;
  text-decoration: none; color: var(--tid-text-sub);
  border: 1px solid var(--tid-border);
  background: var(--tid-white);
  transition: var(--tid-ease);
}
.tid-tag:hover, .tid-tag.active {
  background: var(--tid-dark); color: var(--tid-gold-light);
  border-color: var(--tid-dark);
}

/* CTA Widget — Premium Hotel Style */
.tid-widget--cta {
  background: linear-gradient(160deg, rgba(26, 26, 46, 0.97), rgba(35, 30, 28, 0.96));
  border: 1px solid rgba(200, 169, 126, 0.35);
  border-radius: 8px;
  padding: 30px 24px 28px;
  text-align: left;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}
.tid-widget--cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--tid-gold), var(--tid-gold-light), var(--tid-gold), transparent);
}
.tid-widget--cta::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(200, 169, 126, 0.06) 0%, transparent 70%);
  pointer-events: none;
}
.tid-cta__badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.7rem; font-weight: 600;
  color: var(--tid-gold);
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}
.tid-cta__badge-dot {
  width: 8px; height: 8px;
  background: var(--tid-gold);
  border-radius: 50%;
  display: inline-block;
  animation: tid-cta-pulse 2s ease-in-out infinite;
}
@keyframes tid-cta-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.tid-widget--cta h3 {
  font-family: var(--tid-serif);
  font-size: 1.15rem; font-weight: 700;
  margin: 0 0 10px;
  color: #fff;
  line-height: 1.5;
}
.tid-widget--cta p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.65;
  margin: 0 0 22px;
}
.tid-widget__cta-icon { display: none; }
.tid-cta__buttons {
  display: flex; gap: 10px;
}
.tid-cta-btn {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 10px;
  text-decoration: none; font-weight: 600; font-size: 0.82rem;
  border-radius: 4px;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.tid-cta-btn--outline {
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.tid-cta-btn--outline:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.tid-cta-btn--gold {
  background: linear-gradient(135deg, var(--tid-gold), var(--tid-gold-dark));
  color: #1a1a2e;
  border: 1px solid var(--tid-gold);
}
.tid-cta-btn--gold:hover {
  background: linear-gradient(135deg, var(--tid-gold-light), var(--tid-gold));
  box-shadow: 0 4px 18px rgba(200, 169, 126, 0.35);
  transform: translateY(-1px);
  color: #1a1a2e;
}
@media (max-width: 360px) {
  .tid-cta__buttons { flex-direction: column; }
}

/* Empty state */
.tid-empty {
  text-align: center; padding: 60px 20px;
  color: var(--tid-text-sub);
}
.tid-empty i { font-size: 3rem; color: var(--tid-border); display: block; margin-bottom: 14px; }
.tid-empty p { font-size: 1rem; margin: 0 0 16px; }
.tid-empty a { color: var(--tid-gold-dark); text-decoration: none; font-weight: 600; }

/* =====================================================================
   6. RESPONSIVE
   ===================================================================== */
@media (max-width: 1024px) {
  .tid-hero { grid-template-columns: 1fr; gap: 6px; }
  .tid-hero__main { min-height: 340px; }
  .tid-hero__side { flex-direction: row; gap: 6px; }
  .tid-hero__sub { min-height: 210px; }
  .tid-layout { grid-template-columns: 1fr; }
  .tid-sidebar { position: static; }
}
@media (max-width: 768px) {
  .tid-nav__search { display: none; }
  .tid-nav__brand { font-size: 0.92rem; margin-right: 16px; padding-right: 16px; }
  .tid-nav__cat { padding: 14px 14px; font-size: 0.82rem; }
  .tid-hero__main { min-height: 280px; }
  .tid-hero__body { padding: 24px 22px 20px; }
  .tid-hero__body::before { left: 22px; }
  .tid-hero__side { flex-direction: column; }
  .tid-hero__sub { min-height: 190px; }
  .tid-hero__title { font-size: 1.25rem !important; }
  .tid-card__link { grid-template-columns: 120px 1fr; }
  .tid-card--wide .tid-card__link { grid-template-columns: 1fr; }
  .tid-card--wide .tid-card__img { aspect-ratio: 16/9; }
  .tid-card__title { font-size: 0.92rem; }
  .tid-card__excerpt { display: none; }
  .tid-popular__rank { width: 24px; height: 24px; font-size: 0.75rem; }
}
@media (max-width: 480px) {
  .tid-nav__inner { padding: 0 12px; height: 48px; }
  .tid-nav__brand span { display: none; }
  .tid-nav__brand::after { display: none; }
  .tid-nav__cat { padding: 12px 10px; font-size: 0.78rem; }
  .tid-hero { padding: 12px 12px 0; gap: 4px; }
  .tid-hero__body { padding: 20px 16px 16px; }
  .tid-hero__body::before { left: 16px; width: 30px; }
  .tid-hero__sub-body { padding: 14px; }
  .tid-layout { padding: 16px 12px 40px; gap: 24px; }
  .tid-card__link { grid-template-columns: 100px 1fr; }
  .tid-card__body { padding: 10px 12px; }
  .tid-card__meta { gap: 8px; }
}


/* =====================================================================
   ARTICLE DETAIL STYLES (content.php)
   ===================================================================== */

/* Hero */
.blog-hero {
  position: relative; min-height: 400px;
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: #fff;
  background-position: center; background-size: cover;
}
.blog-hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
}
.blog-hero-layer {
  position: relative; z-index: 2;
  max-width: 800px; padding: 0 24px;
}
.blog-hero-layer-TITLE {
  font-family: var(--tid-serif);
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 700; line-height: 1.3;
}
.blog-hero-layer .lead {
  font-size: 1rem; color: rgba(255,255,255,0.8);
  font-weight: 300; margin-top: 12px;
}

/* Layout */
.blog-container {
  display: grid; grid-template-columns: 1fr 320px;
  gap: 44px; max-width: var(--tid-max); margin: 0 auto; padding: 28px 24px 0;
}
.CONTENT-BLOG-LAYER {
  max-width: 1000px !important;
  min-width: 0;
  padding-right: 10px;
}
.blog-sidebar {
  display: flex; flex-direction: column; gap: 20px;
  position: sticky; top: 162px;
}

/* Breadcrumb */
.breadcrumb {
  display: flex; align-items: center;
  list-style: none; padding: 0; margin: 0;
  font-size: 0.85rem;
}
.breadcrumb-item { color: var(--tid-text-sub); }
.breadcrumb-item.active { color: var(--tid-gold-dark); font-weight: 500; }

.main-content > nav[aria-label='breadcrumb'] {
  margin-bottom: 28px !important;
}

/* Article Meta */
.article-meta {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 14px; margin-bottom: 28px; padding: 16px 20px;
  background: var(--tid-bg); border-left: 3px solid var(--tid-gold);
}
.article-meta .author { display: flex; align-items: center; gap: 10px; }
.article-meta .author-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--tid-gold-light);
}
.article-meta .author span { font-weight: 600; color: var(--tid-dark); }
.article-meta .publish-date {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.85rem; color: var(--tid-text-sub);
}
.article-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.meta-item {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; background: var(--tid-white);
  font-size: 0.8rem; color: var(--tid-text-sub);
  border: 1px solid var(--tid-border);
}
.meta-item i { font-size: 0.85rem; color: var(--tid-gold); }

/* Content */
.article-content {
  font-size: 1.05rem; line-height: 1.95; color: var(--tid-text);
  max-width: 780px;
}
.article-content p { margin-bottom: 1.75em; }
.article-content img {
  max-width: 100%; height: auto; margin: 24px 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.article-content h1, .article-content h2 {
  font-family: var(--tid-serif);
  font-weight: 700; color: var(--tid-dark);
  margin: 2em 0 0.8em; padding-bottom: 10px;
  border-bottom: 2px solid var(--tid-border);
  position: relative;
}
.article-content h1::after, .article-content h2::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 60px; height: 2px; background: var(--tid-gold);
}
.article-content h1 { font-size: 1.7rem; }
.article-content h2 { font-size: 1.5rem; }
.article-content h3 {
  font-family: var(--tid-serif);
  font-size: 1.25rem; font-weight: 600;
  color: var(--tid-dark); margin: 1.8em 0 0.8em;
}

/* Block types */
.blog-block-heading { font-family: var(--tid-serif); color: var(--tid-dark); }
.blog-block-paragraph { line-height: 1.85; }
.blog-block-detail-list {
  background: var(--tid-bg); padding: 20px 24px;
  margin: 24px 0; border-left: 3px solid var(--tid-gold);
}
.blog-block-detail-list h3 { margin: 0 0 10px; font-size: 1.05rem; color: var(--tid-dark); }
.blog-block-detail-list-items { padding-left: 18px; margin: 0; }
.blog-block-detail-list-items li { margin-bottom: 6px; line-height: 1.6; color: var(--tid-text); }
.blog-block-highlight {
  background: #fff8f0; padding: 20px 24px;
  margin: 24px 0; border-left: 4px solid var(--tid-gold);
}
.blog-block-highlight h3 { margin-top: 0; color: var(--tid-gold-dark); }
.blog-block-image { margin: 24px 0; text-align: center; }
.blog-block-image img { max-width: 100%; box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
.blog-block-image figcaption {
  font-size: 0.82rem; color: var(--tid-text-sub);
  margin-top: 8px; font-style: italic;
}
.blog-block-divider {
  border: none; height: 1px;
  background: linear-gradient(to right, transparent, var(--tid-gold-light), transparent);
  margin: 32px 0;
}
.article-empty-state {
  text-align: center; padding: 60px 20px; color: var(--tid-text-sub);
}
.article-empty-state i { font-size: 2.5rem; color: var(--tid-border); margin-bottom: 14px; display: block; }

/* Tags & Sharing */
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0; }
.tag {
  display: inline-block; padding: 5px 14px;
  font-size: 0.82rem; text-decoration: none;
  color: var(--tid-text-sub); background: var(--tid-bg);
  border: 1px solid var(--tid-border); transition: var(--tid-ease);
}
.tag:hover { background: var(--tid-dark); color: var(--tid-gold-light); border-color: var(--tid-dark); }
.article-share {
  margin: 36px 0; padding: 20px 0;
  border-top: 1px solid var(--tid-border);
  border-bottom: 1px solid var(--tid-border);
}
.share-title { font-weight: 600; margin-bottom: 12px; display: block; color: var(--tid-dark); }
.share-buttons { display: flex; gap: 8px; }
.share-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; color: #fff; text-decoration: none;
  transition: var(--tid-ease);
}
.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.line { background: #00b900; }
.share-btn:hover { opacity: 0.85; }

/* Sidebar widgets (article detail) */
.sidebar-widget {
  background: var(--tid-white); border: 1px solid var(--tid-border);
  padding: 20px; transition: var(--tid-ease);
}
.sidebar-widget:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.widget-title {
  font-size: 1.05rem; font-weight: 700;
  color: var(--tid-dark); margin-bottom: 16px;
  padding-bottom: 10px; border-bottom: 2px solid var(--tid-gold);
}
.related-articles-list { display: flex; flex-direction: column; gap: 12px; }
.related-article-item {
  background: var(--tid-bg); overflow: hidden;
  transition: var(--tid-ease);
}
.related-article-item:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.related-article-link { text-decoration: none; color: inherit; }
.related-article-image { width: 100%; overflow: hidden; }
.related-article-image img {
  width: 100%; height: 160px; object-fit: cover;
  transition: transform 0.4s ease;
}
.related-article-item:hover .related-article-image img { transform: scale(1.04); }
.related-article-content { padding: 12px 14px; }
.related-article-title {
  font-size: 0.9rem; font-weight: 600; line-height: 1.4;
  color: var(--tid-dark); margin-bottom: 4px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.related-article-excerpt {
  font-size: 0.78rem; color: var(--tid-text-sub);
  line-height: 1.5; margin-bottom: 6px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.related-article-meta {
  display: flex; gap: 10px;
  font-size: 0.72rem; color: #999;
}
.related-article-meta span { display: flex; align-items: center; gap: 3px; }

.categories-list { list-style: none; padding: 0; margin: 0; }
.categories-list li { margin-bottom: 6px; }
.categories-list a {
  display: flex; justify-content: space-between;
  align-items: center; padding: 8px 14px;
  text-decoration: none; color: var(--tid-text);
  background: var(--tid-bg); border: 1px solid var(--tid-border);
  transition: var(--tid-ease);
}
.categories-list a:hover {
  background: var(--tid-dark); color: var(--tid-gold-light);
  border-color: var(--tid-dark);
}
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-cloud-item {
  display: inline-block; padding: 5px 12px;
  font-size: 0.78rem; text-decoration: none;
  color: var(--tid-text-sub); background: var(--tid-bg);
  border: 1px solid var(--tid-border); transition: var(--tid-ease);
}
.tag-cloud-item:hover {
  background: var(--tid-dark); color: var(--tid-gold-light);
  border-color: var(--tid-dark);
}

.LINK-E { text-decoration: none; color: var(--tid-text); }
.LINK-E:hover { color: var(--tid-gold-dark); }

/* Misc */
.article-summary-box {
  background: var(--tid-bg); padding: 20px; margin-bottom: 28px;
  border: 1px solid var(--tid-border);
}
.article-summary-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.article-summary-box ul { padding-left: 18px; margin-bottom: 8px; }
.article-highlight {
  background: #fff8f0; padding: 20px; margin: 28px 0;
  border-left: 4px solid var(--tid-gold);
}
.article-highlight h2 { margin-top: 0; }
.article-faq { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--tid-border); }
.article-faq h2 { font-size: 1.3rem; margin-bottom: 16px; }
.faq-item + .faq-item { margin-top: 14px; }
.faq-item h3 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.faq-item p { margin-bottom: 0; }

.FONT-CONTENT-BLOG-H1 {
  font-family: var(--tid-serif); font-size: 1.5rem;
  font-weight: 700; color: var(--tid-dark);
}
.h2_blog { font-size: 1.2rem; font-weight: 700; color: var(--tid-dark); }

.pv__description { margin-bottom: unset; font-size: 15px; color: var(--tid-gold); }
.pv__title { font-size: 15px; color: var(--tid-gold); margin: 8px 0; font-weight: 600; }
.card-img, .card-img-top { height: 300px; object-fit: cover; }

@media (max-width: 992px) {
  .blog-container { grid-template-columns: 1fr; gap: 24px; }
  .blog-sidebar { position: static; order: 2; margin-top: 16px; }
  .CONTENT-BLOG-LAYER { padding-right: 0; }
  .article-content { max-width: 100%; }
}
@media (max-width: 768px) {
  .blog-hero { min-height: 300px; }
  .blog-hero-layer-TITLE { font-size: clamp(1.3rem, 5vw, 1.8rem); }
  .blog-container { padding: 20px 16px 0; }
  .article-meta { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 16px; }
  .article-stats { margin-left: 0; }
  .article-content h1 { font-size: 1.3rem; }
  .article-content h2 { font-size: 1.2rem; }
  .sidebar-widget { padding: 16px; }
}

@media screen and (max-width: 1100px) {
  .LAYOUT-BLOG-INDEX { padding: 0px 20px !important; }
}
/* @media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
} */