:root {
  --bg-content: #192339;
  --color-h1: #f932b7;
  --color-linka: #fffc45;
}

.content {
  padding: 1em;
  background: var(--bg-content);
  border-radius: 1em;
}
.xo-123-h1,
.xo-123-h2 {
  color: var(--color-h1);
}

.xo-123-table {
  background: linear-gradient(90deg, #ff0066 0%, #ff1493 100%);
  border-radius: 1em;
}

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

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

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

.h-100 {
  height: 100%;
}

.list-xo-inside {
  list-style-position: inside;
}

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

.hotpink-table-container {
  width: 100%;
  max-width: 1050px;
  min-width: 680px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid #f06292;
  background-color: #161b26;
}

.hotpink-table {
  width: 100%;
  border-collapse: collapse;
  color: #ffffff;
}

.hotpink-table thead tr {
  background: linear-gradient(90deg, #ff0066 0%, #ff1493 100%);
}

.hotpink-table th {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.25em;
  padding: 16px 18px;
  text-align: center;
  border-bottom: 1.5px solid #f06292;
  border-right: 1.5px solid #f06292;
}

.hotpink-table th:last-child {
  border-right: none;
}

.hotpink-table td {
  padding: 15px 18px;
  text-align: center;
  font-weight: 500;
  font-size: 0.95em;
  line-height: 1.5;
  border-bottom: 1.5px solid #f06292;
  border-right: 1.5px solid #f06292;
}

.hotpink-table td:last-child {
  border-right: none;
}

.hotpink-table th:nth-child(1),
.hotpink-table td:nth-child(1) {
  width: 30%;
}

.hotpink-table th:nth-child(2),
.hotpink-table td:nth-child(2) {
  width: 36%;
}

.hotpink-table th:nth-child(3),
.hotpink-table td:nth-child(3) {
  width: 34%;
}

.hotpink-table tbody tr:last-child td {
  border-bottom: none;
}

.hotpink-table tbody tr:hover {
  background-color: #1f2637;
}

.g-3 {
  --bs-gutter-x: 1.25rem;
  --bs-gutter-y: 1.25rem;
}

.xo-article-col {
  display: flex;
  margin-bottom: 1.25rem;
}

.xo-blog-filter-bar {
  background: var(--bg-content);
  border: 1px solid rgba(249, 50, 183, 0.28);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.xo-search-input {
  flex: 1;
  min-width: 220px;
  background-color: #0f172b;
  border: 1.5px solid rgba(249, 50, 183, 0.45);
  border-radius: 12px;
  color: #ffffff;
  padding: 10px 16px;
  font-family: inherit;
  font-size: 0.96rem;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.xo-search-input:focus {
  border-color: #ff1a8c;
  box-shadow: 0 0 0 3px rgba(255, 26, 140, 0.22);
}

.xo-search-btn {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.xo-reset-filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #f9b5ca;
  text-decoration: none;
  font-size: 0.9rem;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.xo-reset-filter-btn:hover {
  background: rgba(255, 26, 140, 0.25);
  color: #ffffff;
}

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

.xo-cat-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 999px;
  background-color: #0f172b;
  border: 1px solid rgba(249, 181, 202, 0.3);
  color: #f9b5ca;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.xo-cat-pill:hover,
.xo-cat-pill.active {
  background: linear-gradient(180deg, #ff1a8c 0%, #f00675 100%);
  border-color: #ff1a8c;
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(255, 8, 127, 0.35);
}

.xo-active-filter-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 26, 140, 0.14);
  border: 1px solid rgba(255, 26, 140, 0.4);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 0.92rem;
}

.xo-clear-tag-link {
  color: var(--color-linka);
  text-decoration: none;
  font-weight: 700;
}

.xo-blog-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--bg-content);
  border: 1px solid rgba(249, 50, 183, 0.28);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
  animation: xoCardFadeIn 0.35s ease both;
}

@keyframes xoCardFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.xo-blog-card:hover {
  transform: translateY(-4px);
  border-color: #ff1a8c;
  box-shadow: 0 10px 24px rgba(255, 8, 127, 0.22);
}

.xo-blog-card-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #0f172b;
}

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

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

.xo-blog-category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(180deg, #ff1a8c 0%, #f00675 100%);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  text-decoration: none;
}

.xo-badge-inline {
  position: static;
  display: inline-block;
}

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

.xo-blog-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.82rem;
  color: #b8c2d8;
}

.xo-blog-card-title {
  font-size: 1.2rem;
  line-height: 1.4;
  margin: 0;
}

.xo-blog-card-title a {
  color: var(--color-h1);
  text-decoration: none;
  transition: color 0.2s ease;
}

.xo-blog-card-title a:hover {
  color: var(--color-linka);
}

.xo-blog-card-excerpt {
  font-size: 0.92rem;
  line-height: 1.55;
  color: #d7deec;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.xo-tag-chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 252, 69, 0.1);
  border: 1px solid rgba(255, 252, 69, 0.35);
  color: var(--color-linka);
  font-size: 0.78rem;
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.xo-tag-chip:hover {
  background: var(--color-linka);
  color: #111324;
}

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

.xo-blog-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.xo-blog-author-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #ff1a8c;
  background: #0f172b;
}

.xo-blog-author-name {
  font-size: 0.85rem;
  color: #e5e5e5;
}

.xo-blog-readmore {
  color: var(--color-linka);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s ease;
}

.xo-blog-readmore:hover {
  transform: translateX(3px);
}

.xo-load-more-wrap {
  padding: 12px 0;
}

.xo-articles-counter {
  font-size: 0.92rem;
  color: #b8c2d8;
  margin-bottom: 12px;
}

.xo-load-more-btn {
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1.05rem;
  padding: 12px 34px;
  border-radius: 999px;
}

.xo-load-more-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.xo-breadcrumb-nav {
  background: rgba(25, 35, 57, 0.75);
  border-radius: 12px;
  padding: 10px 16px;
}

.xo-breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}

.xo-breadcrumb-list li + li::before {
  content: "/";
  margin-right: 8px;
  color: #f932b7;
}

.xo-breadcrumb-list a {
  color: var(--color-linka);
  text-decoration: none;
}

.xo-breadcrumb-list a:hover {
  text-decoration: underline;
}

.xo-breadcrumb-list li[aria-current="page"] {
  color: #d7deec;
}

.xo-article-reader {
  padding: 24px;
  border: 1px solid rgba(249, 50, 183, 0.3);
}

.xo-article-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 16px;
}

.xo-article-header-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.xo-article-meta-item {
  font-size: 0.88rem;
  color: #b8c2d8;
}

.xo-article-main-title {
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
  line-height: 1.35;
  margin-bottom: 14px;
}

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

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

.xo-author-label {
  font-size: 0.78rem;
  color: #b8c2d8;
}

.xo-author-name {
  font-size: 0.95rem;
  color: #ffffff;
}

.xo-article-featured-figure {
  margin: 20px 0;
  text-align: center;
}

.xo-article-featured-img {
  border-radius: 14px;
  max-height: 520px;
  width: 100%;
  object-fit: cover;
  border: 1px solid rgba(249, 50, 183, 0.3);
}

.xo-article-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #eceff5;
  overflow-wrap: break-word;
}

.xo-article-body h2,
.xo-article-body h3,
.xo-article-body h4 {
  color: var(--color-h1);
  margin: 1.2em 0 0.5em;
  line-height: 1.4;
}

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

.xo-article-body ul,
.xo-article-body ol {
  margin: 0.8em 0 1.2em 1.5em;
}

.xo-article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 12px 0;
}

.xo-article-tags-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.xo-tags-label {
  font-size: 0.92rem;
  color: #b8c2d8;
}

.xo-article-prev-next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.xo-prev-next-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #0f172b;
  border: 1px solid rgba(249, 50, 183, 0.3);
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}

.xo-prev-next-link:hover {
  border-color: #ff1a8c;
  transform: translateY(-2px);
}

.xo-prev-next-link small {
  color: #b8c2d8;
  font-size: 0.8rem;
}

.xo-prev-next-link span {
  color: var(--color-linka);
  font-weight: 700;
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.xo-next-link {
  text-align: right;
}

@media (max-width: 768px) {
  .xo-article-reader {
    padding: 16px;
  }

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

  .xo-next-link {
    text-align: left;
  }
  .xo-123-agent {
    flex-direction: column;
  }
}

.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;
}

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

.split-card-table {
  width: 100%;
  max-width: 1050px;
  min-width: 680px;
  margin: 0 auto;
  border-collapse: separate;
  border-spacing: 14px 0;
  color: #ffffff;
}

.split-card-table th,
.split-card-table td {
  width: 25%;
  text-align: center;
  border-left: 2px solid #f06292;
  border-right: 2px solid #f06292;
  border-bottom: 1.5px solid #f06292;
}

.split-card-table th {
  background: linear-gradient(90deg, #ff0055 0%, #ff1493 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.25em;
  padding: 15px 12px;
  border-top: 2px solid #f06292;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

.split-card-table td {
  background-color: #161b26;
  padding: 13px 12px;
  font-weight: 500;
  font-size: 0.95em;
  line-height: 1.4;
}

.split-card-table tbody tr:last-child td {
  border-bottom: 2px solid #f06292;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}

.split-card-table tbody tr:hover td {
  background-color: #1f2637;
}
