:root {
  --gold-primary: #d4af37;
  --gold-light: #fdf0a6;
  --gold-accent: #f5c842;
  --border-gold: rgba(212, 175, 55, 0.38);
  --border-gold-strong: rgba(245, 200, 66, 0.75);

  --bg-dark: #120907;
  --blog-surface: linear-gradient(180deg, rgba(42, 10, 12, 0.9) 0%, rgba(20, 6, 7, 0.96) 100%);
  --blog-surface-soft: rgba(24, 7, 8, 0.82);
  --blog-text: #efe9de;
  --blog-text-muted: #c8bfb0;

  --color-primary: #140407;
  --color-secondary: #1a0606;
  --color-accent: #1a0606;
  --color-accent-light: #f7e9b8;
  --color-header: #141414;
  --color-button: #1a0606;
  --color-button-hover: #fff;
  --color-text: #fff;

  --footer-bg-: #000000;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg-dark);
  color: #e5e5e5;
  font-display: swap;
  font-family:
    "Kanit",
    "Kanit Fallback",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  overflow-x: hidden;
  padding-bottom: 75px;
  letter-spacing: 0.2px;
  line-height: 1.5;
}

.list-inside {
  list-style: inside;
}
.list-inside li::marker {
  color: #ad211e;
}

ul li a {
  color: var(--gold-light);
}

.footer-copyright {
  background: var(--footer-bg-);
  padding: 1em;
}

p a,
p strong {
  color: var(--gold-primary);
}

.txt-int {
  text-indent: 1em;
}

ol li strong,
ul li strong {
  color: var(--gold-primary);
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.toc-title {
  text-align: center;
  font-weight: 700;
  margin: 0;
  padding: 0;
  visibility: hidden;
  position: relative;
  justify-content: center;
}

.toc-title:after {
  visibility: visible;
  display: flex;
  justify-content: center;
  content: "สารบัญ";
  font-size: 2em;
  color: #fff126;
}

.widget-toc {
  display: table;
  background-image: linear-gradient(rgb(0, 0, 0, 0.3), rgb(0, 0, 0, 0.3));
  border-radius: 5px;
  border: 2px solid transparent;
  padding-right: 1rem;
  margin: 2em 0 !important;
  font-size: 95%;
  width: 50%;
}

@media (max-width: 991px) {
  .widget-toc {
    width: 100%;
  }
}

.widget-toc a {
  color: #f1f1f1;
  text-decoration: underline !important;
  font-size: 16px;
}
.widget-toc a:hover {
  text-decoration: none;
  opacity: 0.6;
  transition: 0.3s;
}
.widget-toc ol {
  padding-right: 0px;
  counter-reset: item;
}
.widget-toc ol li {
  display: block;
  position: relative;
}
.widget-toc ol li:before {
  content: counters(item, ".");
  counter-increment: item;
  position: absolute;
  margin-right: 100%;
  right: 0.5rem;
  inline-size: max-content;
}

/* Mobile */
#account-actions-mobile {
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 10;
  width: 100%;
}

@media (min-width: 992px) {
  #account-actions-mobile {
    display: none;
  }
}

#account-actions-mobile .-outer-wrapper {
  display: flex;
  align-items: flex-end;
}

#account-actions-mobile .-left-wrapper,
#account-actions-mobile .-right-wrapper {
  display: flex;
  align-items: flex-end;
  flex: 1;
  z-index: 2;
  height: 70px;
  padding-bottom: 6px;
  background: linear-gradient(
    180deg,
    var(--color-button, #225db9),
    var(--color-primary, #041d4a)
  );
  border-top: 3px solid var(--color-accent, #fcb502);
  transition: -webkit-filter 0.2s;
  transition: filter 0.2s;
  transition:
    filter 0.2s,
    -webkit-filter 0.2s;
}

#account-actions-mobile .-center-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  z-index: 2;
  width: 74px;
  height: 74px;
  margin: 0 8px 16px;
  padding-bottom: 8px;
  color: var(--color-text, #f5f0e6);
  background: linear-gradient(
    180deg,
    var(--color-button, #1f55ad),
    var(--color-primary, #0a2a60)
  );
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 0 10px hsla(0, 0%, 100%, 0.4);
}

#account-actions-mobile .-center-wrapper:hover {
  text-shadow:
    0 0 10px white,
    0 0 10px white;
  color: #fff;
  text-decoration: none;
}

#account-actions-mobile .-center-wrapper .-selected {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  transition: all 0.4s;
  background-size: 450px;
  background-repeat: no-repeat;
  height: 100%;
  width: 100%;
  background-position: 0 0;
  border-radius: 50%;
}

.-selected h5 {
  position: absolute;
  bottom: 6px;
  font-size: 12px;
  font-weight: 300;
  margin: 0;
  color: var(--color-text);
}

.-selected img {
  width: 65px !important;
  max-width: 65px !important;
  height: auto;
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
}

#account-actions-mobile .-fake-center-bg-wrapper {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  width: 100%;
  height: 50px;
  transition: -webkit-filter 0.2s;
  transition: filter 0.2s;
  transition:
    filter 0.2s,
    -webkit-filter 0.2s;
  overflow: hidden;
}

#account-actions-mobile .-fake-center-bg-wrapper svg {
  position: absolute;
  left: 50%;
  bottom: 0;
  height: 108px;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
}

#account-actions-mobile .-fake-center-bg-wrapper svg path {
  fill: url(#rectangleGradient);
}

#account-actions-mobile .-left-wrapper {
  border-top-left-radius: 10px;
  border-top-right-radius: 22px;
}

#account-actions-mobile .-right-wrapper {
  border-top-right-radius: 10px;
  border-top-left-radius: 22px;
}

#account-actions-mobile .-item-wrapper {
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  color: var(--color-text, #f5f0e6);
  position: relative;
}

.-ic-img img {
  width: 40px;
  height: auto;
  display: block;
  margin: 0 auto;
  padding-bottom: 20px;
  position: relative;
}

#account-actions-mobile .-item-wrapper .-text {
  font-size: 0.875rem;
  color: var(--color-text);
  transition: color 0.2s;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  margin: 0 auto;
  margin-top: 0.25rem;
}

@media (max-width: 575.98px) {
  #account-actions-mobile .-item-wrapper .-text {
    font-size: 0.8rem;
  }
}

#account-actions-mobile .-item-wrapper:active,
#account-actions-mobile .-item-wrapper:hover {
  text-decoration: none;
}

#account-actions-mobile .-item-wrapper:active .-text,
#account-actions-mobile .-item-wrapper:hover .-text {
  color: var(--color-button-hover, #ffffff);
}

#account-actions-mobile .-fully-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background: rgba(0, 0, 0, 0.6);
}

#account-actions-mobile.-active .-fake-center-bg-wrapper,
#account-actions-mobile.-active .-left-wrapper,
#account-actions-mobile.-active .-right-wrapper {
  -webkit-filter: brightness(0.5);
  filter: brightness(0.5);
}

#account-actions-mobile.-active .-fake-center-bg-wrapper a,
#account-actions-mobile.-active .-left-wrapper a,
#account-actions-mobile.-active .-right-wrapper a {
  pointer-events: none;
}

#account-actions-mobile.-active .-center-wrapper {
  background: linear-gradient(
    0deg,
    rgba(251, 200, 68, 0.85),
    rgba(248, 128, 18, 0.85)
  );
}

#account-actions-mobile.-active .-center-wrapper .-selected {
  display: none;
}

#account-actions-mobile.-active .-fully-overlay {
  display: block;
}

/* =========================================
   Blog, Article View & Author Pages
   ========================================= */
.blog-section {
  max-width: 1200px;
  margin: 0 auto;
}

/* Breadcrumb */
.blog-breadcrumb {
  margin-bottom: 18px;
}

.blog-breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 0;
  list-style: none;
  margin: 0;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--blog-surface-soft);
  border: 1px solid rgba(212, 175, 55, 0.22);
  font-size: 13px;
  line-height: 1.5;
  color: var(--blog-text-muted);
}

.blog-breadcrumb-list li {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
}

.blog-breadcrumb-list li + li::before {
  content: "/";
  margin: 0 9px;
  color: rgba(212, 175, 55, 0.5);
  user-select: none;
}

.blog-breadcrumb-list a {
  color: var(--gold-light);
  text-decoration: none;
  transition: color 0.18s ease;
}

.blog-breadcrumb-list a:hover {
  color: var(--gold-accent);
  text-decoration: underline;
}

.blog-breadcrumb-list li[aria-current="page"] {
  color: var(--blog-text);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 420px;
}

/* Section Headers & Empty State */
.blog-page-header,
.blog-section-heading,
.blog-empty-state {
  background: var(--blog-surface);
  border: 1px solid var(--border-gold);
  border-radius: 10px;
  padding: 26px 24px;
  margin-bottom: 24px;
  text-align: center;
  box-shadow:
    inset 0 1px 0 rgba(253, 240, 166, 0.08),
    0 8px 24px rgba(0, 0, 0, 0.45);
}

.blog-section-heading {
  padding: 16px 20px;
  margin-bottom: 20px;
}

.blog-empty-state {
  padding: 44px 24px;
  margin: 24px 0;
}

.blog-empty-state p,
.blog-page-header p {
  color: var(--blog-text);
  max-width: 760px;
  margin: 10px auto 0;
  font-size: 15px;
  line-height: 1.7;
}

.blog-heading-1 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--gold-accent);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
}

.blog-heading-2 {
  margin: 0;
  font-size: clamp(1.25rem, 2.3vw, 1.65rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--gold-accent);
}

/* Buttons */
.btn-gold-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 22px;
  border-radius: 6px;
  border: 1px solid rgba(253, 240, 166, 0.78);
  background: linear-gradient(180deg, #f8d367 0%, #d5a238 55%, #b17d1f 100%);
  color: #1a1003;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow:
    inset 0 1px 0 rgba(255, 246, 198, 0.8),
    0 4px 14px rgba(0, 0, 0, 0.4);
  transition:
    transform 0.18s ease,
    filter 0.18s ease,
    box-shadow 0.18s ease;
}

.btn-gold-cta:hover {
  color: #120c02;
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 246, 198, 0.95),
    0 6px 18px rgba(212, 175, 55, 0.32);
}

.btn-gold-cta:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.btn-outline-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 9px 16px;
  border-radius: 6px;
  border: 1px solid rgba(212, 175, 55, 0.52);
  background: rgba(24, 7, 8, 0.78);
  color: var(--gold-light);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.btn-outline-gold:hover {
  background: rgba(212, 175, 55, 0.16);
  border-color: var(--gold-accent);
  color: #ffffff;
}

/* Filter & Search Bar */
.blog-filter-bar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 20px;
  margin-bottom: 24px;
  border-radius: 10px;
  background: var(--blog-surface);
  border: 1px solid var(--border-gold);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.38);
}

.blog-search-form {
  width: 100%;
}

.blog-search-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.blog-search-input {
  flex: 1 1 260px;
  min-width: 0;
  min-height: 42px;
  padding: 9px 14px;
  border-radius: 6px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(12, 4, 5, 0.85);
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.blog-search-input::placeholder {
  color: #9e9386;
}

.blog-search-input:focus {
  outline: none;
  border-color: var(--gold-accent);
  box-shadow: 0 0 0 3px rgba(245, 200, 66, 0.18);
}

.blog-category-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.blog-cat-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  background: rgba(14, 4, 5, 0.72);
  color: var(--blog-text);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.blog-cat-pill:hover {
  border-color: var(--gold-accent);
  background: rgba(212, 175, 55, 0.16);
  color: var(--gold-light);
}

.blog-cat-pill.active {
  border-color: rgba(253, 240, 166, 0.85);
  background: linear-gradient(90deg, #f8d367 0%, #d5a238 65%, #b17d1f 100%);
  color: #1a1003;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.28);
}

.blog-active-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 6px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.32);
  font-size: 14px;
  color: var(--blog-text);
}

.blog-active-filter strong {
  color: var(--gold-accent);
}

.blog-clear-filter {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(200, 16, 46, 0.65);
  background: rgba(200, 16, 46, 0.16);
  color: #ff8c9b;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition:
    background-color 0.18s ease,
    color 0.18s ease;
}

.blog-clear-filter:hover {
  background: rgba(200, 16, 46, 0.32);
  color: #ffffff;
}

/* Blog Cards */
.blog-card-col {
  display: flex;
}

.blog-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  background: var(--blog-surface);
  border: 1px solid var(--border-gold);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.42);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold-strong);
  box-shadow:
    0 12px 26px rgba(212, 175, 55, 0.15),
    0 6px 18px rgba(0, 0, 0, 0.55);
}

.blog-card-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #100405;
}

.blog-card-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(16, 4, 5, 0.55) 100%);
  pointer-events: none;
}

.blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.blog-card:hover .blog-card-img {
  transform: scale(1.04);
}

.blog-category-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 5px;
  background: linear-gradient(90deg, #f8d367 0%, #d4a138 60%, #b07c1c 100%);
  color: #1a1003;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  transition: filter 0.18s ease;
}

.blog-category-badge:hover {
  filter: brightness(1.08);
  color: #120b02;
}

.blog-category-badge.is-inline {
  position: static;
  box-shadow: none;
}

.blog-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 10px;
  font-size: 12.5px;
  color: var(--blog-text-muted);
}

.blog-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: var(--blog-text-muted);
  line-height: 1.3;
}

.blog-meta-item svg,
.author-stat-pill svg,
.article-tags-label svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  opacity: 0.85;
}

.blog-card-title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.42;
}

.blog-card-title a {
  color: #f7f3ea;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.18s ease;
}

.blog-card-title a:hover {
  color: var(--gold-accent);
}

.blog-card-excerpt {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--blog-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.blog-tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--gold-light);
  font-size: 12px;
  line-height: 1.4;
  text-decoration: none;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.blog-tag-chip:hover {
  background: rgba(212, 175, 55, 0.25);
  border-color: var(--gold-accent);
  color: #ffffff;
}

.blog-card-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(212, 175, 55, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.blog-card-footer.is-end {
  justify-content: flex-end;
}

.blog-card-author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--blog-text);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.18s ease;
}

.blog-card-author:hover {
  color: var(--gold-accent);
}

.blog-author-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--gold-primary);
  flex-shrink: 0;
}

.blog-author-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blog-readmore {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--gold-accent);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition:
    gap 0.18s ease,
    color 0.18s ease;
}

.blog-readmore:hover {
  color: var(--gold-light);
  gap: 7px;
}

/* Load More */
.blog-load-more {
  text-align: center;
  margin: 28px 0 12px;
}

.blog-counter {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--blog-text-muted);
}

.blog-counter strong {
  color: var(--gold-accent);
}

/* Article Reader (view.php) */
.article-reader {
  background: var(--blog-surface);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 30px 34px;
  margin-bottom: 32px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.48);
}

.article-header {
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.22);
}

.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-bottom: 14px;
}

.article-title {
  margin-bottom: 18px;
}

.article-author-bar {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.article-author-avatar-link {
  display: inline-flex;
  line-height: 0;
  border-radius: 50%;
}

.article-author-bar .blog-author-avatar {
  width: 42px;
  height: 42px;
}

.article-author-info {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.article-author-label {
  font-size: 12px;
  color: var(--blog-text-muted);
}

.article-author-name {
  color: var(--gold-light);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.18s ease;
}

.article-author-name:hover {
  color: var(--gold-accent);
  text-decoration: underline;
}

.article-featured {
  margin: 0 0 26px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.26);
  background: #100405;
}

.article-featured-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 540px;
  object-fit: cover;
}

.article-body {
  color: var(--blog-text);
  font-size: 16px;
  line-height: 1.85;
  overflow-wrap: break-word;
}

.article-body > :first-child {
  margin-top: 0;
}

.article-body > :last-child {
  margin-bottom: 0;
}

.article-body h2,
.article-body h3,
.article-body h4 {
  color: var(--gold-accent);
  margin: 1.6em 0 0.65em;
  line-height: 1.38;
  font-weight: 700;
}

.article-body h2 {
  font-size: clamp(1.28rem, 2.2vw, 1.55rem);
  padding-bottom: 0.35em;
  border-bottom: 1px solid rgba(212, 175, 55, 0.22);
}

.article-body h3 {
  font-size: clamp(1.12rem, 1.8vw, 1.3rem);
}

.article-body h4 {
  font-size: 1.05rem;
}

.article-body p {
  margin-bottom: 1.05em;
}

.article-body a {
  color: var(--gold-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.18s ease;
}

.article-body a:hover {
  color: var(--gold-light);
}

.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 16px auto;
  display: block;
}

.article-body figure {
  margin: 1.4em 0;
  text-align: center;
}

.article-body figcaption {
  margin-top: 6px;
  font-size: 13px;
  color: var(--blog-text-muted);
}

.article-body ul,
.article-body ol {
  padding-left: 1.45rem;
  margin-bottom: 1.15em;
}

.article-body li {
  margin-bottom: 0.45em;
}

.article-body blockquote {
  margin: 1.3em 0;
  padding: 14px 18px;
  border-left: 3px solid var(--gold-accent);
  background: rgba(212, 175, 55, 0.08);
  border-radius: 0 8px 8px 0;
  color: #f6f0e4;
}

.article-body hr {
  border: 0;
  border-top: 1px solid rgba(212, 175, 55, 0.25);
  margin: 1.8em 0;
}

.article-body iframe,
.article-body video {
  max-width: 100%;
  border-radius: 8px;
}

.article-body table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 1.3em 0;
}

.article-body th,
.article-body td {
  padding: 10px 12px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  text-align: left;
}

.article-body th {
  background: rgba(212, 175, 55, 0.14);
  color: var(--gold-accent);
  font-weight: 700;
}

.article-tags-footer {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(212, 175, 55, 0.22);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.article-tags-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-light);
}

.article-prev-next {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(212, 175, 55, 0.22);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.article-nav-slot {
  display: flex;
  min-width: 0;
}

.article-nav-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 8px;
  background: rgba(14, 4, 5, 0.78);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: #f5f2eb;
  text-decoration: none;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    transform 0.18s ease;
}

.article-nav-link.is-next {
  text-align: right;
}

.article-nav-link small {
  color: var(--gold-accent);
  font-size: 12px;
  font-weight: 700;
}

.article-nav-link span {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-nav-link:hover {
  border-color: var(--gold-accent);
  background: rgba(212, 175, 55, 0.12);
  transform: translateY(-2px);
}

.article-back-wrap {
  text-align: center;
  margin-top: 24px;
}

.related-articles {
  margin-top: 32px;
}

/* Author Profile Card (author.php) */
.author-profile-card {
  background: var(--blog-surface);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 26px 28px;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.author-profile-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}

.author-profile-avatar-wrap {
  flex-shrink: 0;
}

.author-profile-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold-primary);
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.25);
}

.author-profile-details {
  flex: 1;
  min-width: 0;
}

.author-profile-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.author-username-tag {
  font-size: 13px;
  color: var(--blog-text-muted);
  padding: 3px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.24);
}

.author-profile-name {
  margin-bottom: 8px;
}

.author-profile-bio {
  margin: 0 0 14px;
  color: var(--blog-text);
  font-size: 15px;
  line-height: 1.65;
}

.author-profile-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.author-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(14, 4, 5, 0.78);
  border: 1px solid rgba(212, 175, 55, 0.28);
  font-size: 13px;
  color: var(--blog-text);
}

.author-stat-pill strong {
  color: var(--gold-accent);
}

/* Focus Accessibility */
.btn-gold-cta:focus-visible,
.btn-outline-gold:focus-visible,
.blog-cat-pill:focus-visible,
.blog-tag-chip:focus-visible,
.blog-clear-filter:focus-visible,
.blog-card-thumb:focus-visible,
.blog-card-title a:focus-visible,
.blog-card-author:focus-visible,
.blog-readmore:focus-visible,
.article-nav-link:focus-visible,
.blog-breadcrumb-list a:focus-visible {
  outline: 2px solid var(--gold-accent);
  outline-offset: 2px;
}

/* Responsive (Blog, Article, Author) */
@media (max-width: 767px) {
  .blog-page-header,
  .blog-filter-bar {
    padding: 18px 16px;
  }

  .blog-breadcrumb-list {
    padding: 8px 12px;
    font-size: 12.5px;
  }

  .blog-breadcrumb-list li[aria-current="page"] {
    max-width: 240px;
  }

  .blog-search-wrap {
    flex-direction: column;
    align-items: stretch;
  }

  .blog-search-input {
    flex: 1 1 auto;
    width: 100%;
  }

  .blog-search-wrap .btn-gold-cta,
  .blog-search-wrap .btn-outline-gold {
    width: 100%;
  }

  .article-reader {
    padding: 20px 16px;
  }

  .article-body {
    font-size: 15px;
    line-height: 1.8;
  }

  .article-prev-next {
    grid-template-columns: 1fr;
  }

  .article-nav-link.is-next {
    text-align: left;
  }

  .author-profile-card {
    padding: 20px 16px;
  }

  .author-profile-inner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .author-profile-avatar {
    width: 92px;
    height: 92px;
  }

  .author-profile-badges,
  .author-profile-stats {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blog-card,
  .blog-card-img,
  .btn-gold-cta,
  .article-nav-link,
  .blog-readmore {
    transition: none;
  }

  .blog-card:hover,
  .blog-card:hover .blog-card-img,
  .btn-gold-cta:hover,
  .article-nav-link:hover {
    transform: none;
  }
}
