/*
 * Content templates for posts, pages, archives, search and 404.
 * Scoped to .techpulse-content-template to avoid changing UX Builder pages.
 */

:root {
  --tp-bg: #080d16;
  --tp-bg-soft: #0b111b;
  --tp-surface: #0f141d;
  --tp-surface-2: #111827;
  --tp-surface-3: #182230;
  --tp-border: #22262f;
  --tp-border-soft: rgba(255, 255, 255, 0.08);
  --tp-text: #ffffff;
  --tp-text-soft: #d0d5dd;
  --tp-muted: #98a2b3;
  --tp-muted-2: #7e8aa0;
  --tp-orange: #ffa82d;
  --tp-orange-start: #ff8f2d;
  --tp-orange-end: #fb961b;
  --tp-radius-sm: 12px;
  --tp-radius-md: 16px;
  --tp-radius-lg: 24px;
  --tp-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  --tp-content-width: 1440px;
  --tp-reading-width: 820px;
}

.techpulse-content-template {
  background: var(--tp-bg);
  color: var(--tp-text-soft);
}

.techpulse-content-template #main,
.techpulse-content-template .page-wrapper,
.techpulse-content-template .blog-wrapper {
  background:
    radial-gradient(circle at 87% 4%, rgba(255, 168, 45, 0.12), transparent 23%),
    radial-gradient(circle at 8% 20%, rgba(255, 143, 45, 0.07), transparent 25%),
    var(--tp-bg);
}

.tp-shell {
  width: min(calc(100% - 40px), var(--tp-content-width));
  margin: 0 auto;
}

.tp-main {
  min-height: 65vh;
  padding: 42px 0 84px;
}

.tp-main a {
  color: inherit;
}

.tp-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 24px;
  color: var(--tp-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

.tp-breadcrumbs a {
  color: var(--tp-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.tp-breadcrumbs a:hover {
  color: var(--tp-orange);
}

.tp-breadcrumbs__separator {
  color: rgba(255, 255, 255, 0.25);
}

.tp-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 5vw, 64px);
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius-lg);
  background:
    radial-gradient(circle at 92% 8%, rgba(251, 146, 60, 0.18), transparent 20%),
    radial-gradient(circle at 72% 30%, rgba(249, 115, 22, 0.08), transparent 34%),
    linear-gradient(145deg, #1a2432 0%, var(--tp-surface) 52%, #0b1119 100%);
  box-shadow: var(--tp-shadow);
	margin-bottom: 20px;
}

.tp-hero::after {
  content: "";
  position: absolute;
  right: -65px;
  bottom: -90px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255, 168, 45, 0.16);
  border-radius: 50%;
  box-shadow:
    0 0 0 30px rgba(255, 168, 45, 0.035),
    0 0 0 64px rgba(255, 168, 45, 0.02);
  pointer-events: none;
}

.tp-hero__content {
  position: relative;
  z-index: 1;
  max-width: 970px;
}

.tp-eyebrow,
.tp-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 13px;
  border: 1px solid rgba(255, 168, 45, 0.18);
  border-radius: 999px;
  background: rgba(255, 168, 45, 0.08);
  color: var(--tp-orange) !important;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.25;
  text-decoration: none !important;
}

.tp-hero h1,
.tp-page-title {
  max-width: 1000px;
  margin: 18px 0 16px;
  color: var(--tp-text);
  font-family: "Host Grotesk", sans-serif;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 750;
  letter-spacing: -1.4px;
  line-height: 1.06;
}

.tp-hero__description {
  max-width: 760px;
  margin: 0;
  color: var(--tp-muted);
  font-size: 17px;
  line-height: 1.7;
}

.tp-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  color: var(--tp-muted);
  font-size: 13px;
  line-height: 1.5;
}

.tp-meta a {
  color: var(--tp-text-soft);
  text-decoration: none;
}

.tp-meta a:hover {
  color: var(--tp-orange);
}

.tp-meta__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 168, 45, 0.8);
}

.tp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 32px;
  align-items: start;
  margin-top: 32px;
}

.tp-layout--single {
  grid-template-columns: minmax(0, 1fr) 340px;
}

.tp-content-card,
.tp-sidebar__panel,
.tp-author-box,
.tp-comments,
.tp-post-navigation,
.tp-empty-state {
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius-lg);
  background: linear-gradient(145deg, rgba(17, 24, 39, 0.97), rgba(15, 20, 29, 0.98));
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.14);
}

.tp-featured-image {
  overflow: hidden;
  margin: 0 0 28px;
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius-lg);
  background: var(--tp-surface);
  box-shadow: var(--tp-shadow);
}

.tp-featured-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8.6;
  object-fit: cover;
}

.tp-content-card {
  padding: clamp(24px, 4vw, 48px);
}

.tp-entry-content {
  max-width: var(--tp-reading-width);
  margin: 0 auto;
  color: var(--tp-text-soft);
  font-size: 17px;
  line-height: 1.78;
}

.tp-entry-content > *:first-child {
  margin-top: 0;
}

.tp-entry-content > *:last-child {
  margin-bottom: 0;
}

.tp-entry-content h2,
.tp-entry-content h3,
.tp-entry-content h4,
.tp-entry-content h5,
.tp-entry-content h6 {
  color: var(--tp-text);
  font-family: "Host Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: -0.35px;
}

.tp-entry-content h2 {
  margin: 2.15em 0 0.7em;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.15;
}

.tp-entry-content h3 {
  margin: 1.8em 0 0.65em;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.22;
}

.tp-entry-content h4 {
  margin: 1.6em 0 0.6em;
  font-size: 21px;
}

.tp-entry-content p,
.tp-entry-content ul,
.tp-entry-content ol,
.tp-entry-content blockquote,
.tp-entry-content table,
.tp-entry-content figure {
  margin-bottom: 1.35em;
}

.tp-entry-content a {
  color: var(--tp-orange);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.tp-entry-content strong {
  color: var(--tp-text);
}

.tp-entry-content ul,
.tp-entry-content ol {
  padding-left: 1.35em;
}

.tp-entry-content li + li {
  margin-top: 0.52em;
}

.tp-entry-content blockquote {
  position: relative;
  padding: 24px 26px 24px 30px;
  border: 1px solid rgba(255, 168, 45, 0.18);
  border-left: 4px solid var(--tp-orange);
  border-radius: 0 var(--tp-radius-md) var(--tp-radius-md) 0;
  background: rgba(255, 168, 45, 0.055);
  color: #e4e7ec;
  font-size: 1.05em;
}

.tp-entry-content img,
.tp-entry-content figure {
  max-width: 100%;
  border-radius: var(--tp-radius-md);
}

.tp-entry-content table {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--tp-border);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--tp-radius-md);
  background: var(--tp-surface);
}

.tp-entry-content th,
.tp-entry-content td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--tp-border);
  color: var(--tp-text-soft);
  text-align: left;
}

.tp-entry-content th {
  background: var(--tp-surface-3);
  color: var(--tp-text);
}

.tp-entry-content tr:last-child td {
  border-bottom: 0;
}

.tp-page-links {
  margin-top: 28px;
  color: var(--tp-muted);
}

.tp-page-links .post-page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  margin: 0 3px;
  border: 1px solid var(--tp-border);
  border-radius: 10px;
  color: var(--tp-text);
  text-decoration: none;
}

.tp-page-links .current {
  border-color: var(--tp-orange);
  background: var(--tp-orange);
  color: #111827;
}

.tp-post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--tp-border);
}

.tp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tp-tags a {
  display: inline-flex;
  padding: 7px 11px;
  border: 1px solid var(--tp-border);
  border-radius: 999px;
  background: var(--tp-surface);
  color: var(--tp-muted);
  font-size: 12px;
  text-decoration: none;
}

.tp-tags a:hover {
  border-color: rgba(255, 168, 45, 0.45);
  color: var(--tp-orange);
}

.tp-author-box {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 20px;
  margin-top: 24px;
  padding: 26px;
}

.tp-author-box img {
  width: 76px;
  height: 76px;
  border: 2px solid rgba(255, 168, 45, 0.45);
  border-radius: 50%;
}

.tp-author-box h3 {
  margin: 2px 0 8px;
  color: var(--tp-text);
  font-size: 21px;
}

.tp-author-box p {
  margin: 0;
  color: var(--tp-muted);
  line-height: 1.65;
}

.tp-author-box__label {
  color: var(--tp-orange);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tp-post-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
  overflow: hidden;
}

.tp-post-navigation > div + div {
  border-left: 1px solid var(--tp-border);
}

.tp-post-navigation a {
  display: block;
  height: 100%;
  padding: 24px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.tp-post-navigation a:hover {
  background: rgba(255, 168, 45, 0.055);
}

.tp-post-navigation__label {
  display: block;
  margin-bottom: 8px;
  color: var(--tp-muted);
  font-size: 12px;
  font-weight: 650;
  text-transform: uppercase;
}

.tp-post-navigation__title {
  color: var(--tp-text);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.4;
}

.tp-sidebar {
  position: sticky;
  top: 110px;
}

.tp-sidebar__panel {
  overflow: hidden;
}

.tp-widget,
.tp-sidebar__panel > .widget {
  margin: 0;
  padding: 24px;
}

.tp-widget + .tp-widget,
.tp-sidebar__panel > .widget + .widget {
  border-top: 1px solid var(--tp-border);
}

.tp-widget__title,
.tp-sidebar .widget-title {
  display: block;
  margin: 0 0 16px;
  color: var(--tp-text);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.tp-sidebar ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tp-sidebar li {
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  color: var(--tp-muted);
}

.tp-sidebar li:last-child {
  border-bottom: 0;
}

.tp-sidebar li a {
  color: var(--tp-text-soft);
  text-decoration: none;
}

.tp-sidebar li a:hover {
  color: var(--tp-orange);
}

.tp-sidebar select,
.tp-sidebar input[type="text"],
.tp-sidebar input[type="search"] {
  width: 100%;
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius-sm);
  background: var(--tp-surface-2);
  color: var(--tp-text);
}

.tp-search-form {
  display: flex;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--tp-border-soft);
  border-radius: 14px;
  background: var(--tp-surface-2);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tp-search-form:focus-within {
  border-color: rgba(255, 168, 45, 0.72);
  box-shadow: 0 0 0 4px rgba(255, 168, 45, 0.09);
}

.tp-search-form input[type="search"] {
  flex: 1;
  min-width: 0;
  height: 52px;
  margin: 0 !important;
  padding: 0 17px !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--tp-text) !important;
  box-shadow: none !important;
  font-size: 14px;
}

.tp-search-form input[type="search"]::placeholder {
  color: var(--tp-muted-2);
}

.tp-search-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  height: 52px;
  margin: 0 !important;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: linear-gradient(180deg, var(--tp-orange-start), var(--tp-orange-end)) !important;
  color: #111827 !important;
  font-size: 17px;
  box-shadow: none !important;
}

.tp-search-form button:hover {
  background: linear-gradient(180deg, #ff9b3d, var(--tp-orange-start)) !important;
}

.tp-archive-header {
  margin-bottom: 30px;
}

.tp-archive-header .tp-hero {
  padding: clamp(28px, 4vw, 52px);
}

.tp-post-grid,
.tp-related__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.tp-post-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius-md);
  background: linear-gradient(180deg, rgba(15, 20, 29, 0.96), rgba(17, 24, 39, 0.98));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.13);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.tp-post-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 168, 45, 0.35);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.tp-post-card__media {
  display: block;
  overflow: hidden;
  background: var(--tp-surface-2);
}

.tp-post-card__media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9.6;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.tp-post-card:hover .tp-post-card__media img {
  transform: scale(1.035);
}

.tp-post-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px;
}

.tp-post-card__title {
  margin: 15px 0 10px;
  color: var(--tp-text);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.35px;
  line-height: 1.24;
}

.tp-post-card__title a {
  color: inherit;
  text-decoration: none;
}

.tp-post-card__title a:hover {
  color: var(--tp-orange);
}

.tp-post-card .tp-meta {
  margin-top: 0;
  font-size: 12px;
}

.tp-post-card__excerpt {
  margin: 15px 0 18px;
  color: var(--tp-muted);
  font-size: 14px;
  line-height: 1.65;
}

.tp-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--tp-orange) !important;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none !important;
}

.tp-text-link span {
  transition: transform 0.2s ease;
}

.tp-text-link:hover span {
  transform: translateX(3px);
}

.tp-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.tp-section-heading h2 {
  margin: 10px 0 0;
  color: var(--tp-text);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.15;
}

.tp-related {
  margin-top: 54px;
}

.tp-related__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tp-related .tp-post-card__title {
  font-size: 20px;
}

.tp-related .tp-post-card__excerpt {
  display: none;
}

.navigation.pagination {
  margin-top: 34px;
}

.navigation.pagination .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.navigation.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 13px;
  border: 1px solid var(--tp-border);
  border-radius: 12px;
  background: var(--tp-surface);
  color: var(--tp-text-soft);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.navigation.pagination .page-numbers:hover,
.navigation.pagination .current {
  border-color: var(--tp-orange);
  background: var(--tp-orange);
  color: #111827;
}

.tp-empty-state {
  padding: clamp(34px, 6vw, 70px);
  text-align: center;
}

.tp-empty-state__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 168, 45, 0.23);
  border-radius: 50%;
  background: rgba(255, 168, 45, 0.08);
  color: var(--tp-orange);
  font-size: 28px;
}

.tp-empty-state h1,
.tp-empty-state h2 {
  margin: 0 0 12px;
  color: var(--tp-text);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
}

.tp-empty-state p {
  max-width: 620px;
  margin: 0 auto 24px;
  color: var(--tp-muted);
  font-size: 16px;
  line-height: 1.7;
}

.tp-empty-state .tp-search-form {
  max-width: 620px;
  margin: 0 auto;
}

.tp-404-code {
  display: block;
  margin-bottom: 4px;
  color: var(--tp-orange);
  font-size: clamp(74px, 13vw, 150px);
  font-weight: 800;
  letter-spacing: -6px;
  line-height: 0.9;
  text-shadow: 0 0 44px rgba(255, 168, 45, 0.25);
}

.tp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 21px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--tp-orange-start), var(--tp-orange-end));
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tp-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 143, 45, 0.24);
}

.tp-comments {
  margin-top: 24px;
  padding: clamp(24px, 4vw, 38px);
}

.tp-comments__title {
  margin: 0 0 24px;
  color: var(--tp-text);
  font-size: 26px;
}

.tp-comments .comment-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tp-comments .comment-body {
  margin-bottom: 20px;
  padding: 20px;
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius-md);
  background: var(--tp-surface);
}

.tp-comments .comment-author img {
  border-radius: 50%;
}

.tp-comments .comment-meta,
.tp-comments .comment-meta a {
  color: var(--tp-muted);
  font-size: 12px;
}

.tp-comments .comment-content {
  color: var(--tp-text-soft);
}

.tp-comments input[type="text"],
.tp-comments input[type="email"],
.tp-comments input[type="url"],
.tp-comments textarea {
  width: 100%;
  border: 1px solid var(--tp-border) !important;
  border-radius: 12px !important;
  background: var(--tp-surface-2) !important;
  color: var(--tp-text) !important;
}

.tp-comments input[type="submit"] {
  border-radius: 14px !important;
  background: linear-gradient(180deg, var(--tp-orange-start), var(--tp-orange-end)) !important;
  color: #fff !important;
  text-transform: none !important;
}

@media (max-width: 1100px) {
  .tp-layout,
  .tp-layout--single {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 24px;
  }

  .tp-related__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tp-related__grid .tp-post-card:last-child {
    display: none;
  }
}

@media (max-width: 849px) {
  .tp-main {
    padding: 28px 0 64px;
  }

  .tp-shell {
    width: min(calc(100% - 30px), var(--tp-content-width));
  }

  .tp-layout,
  .tp-layout--single {
    grid-template-columns: 1fr;
  }

  .tp-sidebar {
    position: static;
  }

  .tp-hero {
    border-radius: 20px;
  }

  .tp-post-grid {
    grid-template-columns: 1fr;
  }

  .tp-related__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .tp-shell {
    width: min(calc(100% - 24px), var(--tp-content-width));
  }

  .tp-main {
    padding-top: 20px;
  }

  .tp-breadcrumbs {
    margin-bottom: 16px;
    font-size: 12px;
  }

  .tp-hero {
    padding: 25px 22px;
    border-radius: 18px;
  }

  .tp-hero h1,
  .tp-page-title {
    margin-top: 14px;
    font-size: 38px;
    letter-spacing: -0.7px;
  }

  .tp-hero__description {
    font-size: 15px;
    line-height: 1.65;
  }

  .tp-layout {
    margin-top: 20px;
  }

  .tp-featured-image,
  .tp-content-card,
  .tp-sidebar__panel,
  .tp-author-box,
  .tp-comments,
  .tp-post-navigation,
  .tp-empty-state {
    border-radius: 18px;
  }

  .tp-content-card {
    padding: 24px 20px;
  }

  .tp-entry-content {
    font-size: 16px;
    line-height: 1.75;
  }

  .tp-entry-content h2 {
    font-size: 29px;
  }

  .tp-entry-content h3 {
    font-size: 23px;
  }

  .tp-entry-content table {
    display: block;
    overflow-x: auto;
  }

  .tp-post-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .tp-author-box {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 14px;
    padding: 20px;
  }

  .tp-author-box img {
    width: 58px;
    height: 58px;
  }

  .tp-post-navigation {
    grid-template-columns: 1fr;
  }

  .tp-post-navigation > div + div {
    border-top: 1px solid var(--tp-border);
    border-left: 0;
  }

  .tp-post-card__body {
    padding: 19px;
  }

  .tp-post-card__title {
    font-size: 22px;
  }

  .tp-related {
    margin-top: 42px;
  }

  .tp-related__grid {
    grid-template-columns: 1fr;
  }

  .tp-related__grid .tp-post-card:last-child {
    display: flex;
  }

  .navigation.pagination .page-numbers {
    min-width: 38px;
    height: 38px;
  }
}

/* =========================================================
   STATIC PAGE — CLEAN PREMIUM UI
   Áp dụng cho page.php có class .tp-page-fullwidth
========================================================= */

/* Khung trang tối đa 1440px */
.tp-page-main {
  padding: 30px 0 90px;
}

.tp-page-main .tp-shell {
  width: calc(100% - 40px) !important;
  max-width: 1440px !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

/* Breadcrumb gọn hơn */
.tp-page-main .tp-breadcrumbs {
  margin-bottom: 18px;
  padding: 0 4px;
}

/* Hero trang tĩnh */
.tp-page-main .tp-page-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 190px;
  padding: 44px 58px;
  overflow: hidden;
  border: 1px solid var(--tp-border);
  border-radius: 24px;
  background:
    radial-gradient(
      circle at 93% 50%,
      rgba(255, 168, 45, 0.17) 0%,
      rgba(255, 143, 45, 0.07) 16%,
      transparent 36%
    ),
    linear-gradient(
      135deg,
      #151e2b 0%,
      #101722 58%,
      #0f141d 100%
    );
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.tp-page-main .tp-page-hero::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 64px;
  width: 175px;
  height: 175px;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 168, 45, 0.16);
  border-radius: 50%;
  box-shadow:
    0 0 0 28px rgba(255, 168, 45, 0.035),
    0 0 0 56px rgba(255, 168, 45, 0.018);
  pointer-events: none;
}

.tp-page-main .tp-page-hero .tp-hero__content {
  position: relative;
  z-index: 2;
  max-width: 980px;
}

.tp-page-main .tp-page-hero .tp-eyebrow {
  margin: 0 0 14px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tp-page-main .tp-page-title {
  margin: 0;
  max-width: 1000px;
  color: #fff;
  font-size: clamp(42px, 5vw, 66px);
  font-weight: 750;
  line-height: 1.04;
  letter-spacing: -1.4px;
}

.tp-page-main .tp-hero__description {
  max-width: 760px;
  margin-top: 18px;
  color: var(--tp-muted);
  font-size: 17px;
  line-height: 1.7;
}

/* Không dùng grid/sidebar ở trang tĩnh */
.tp-page-main .tp-page-fullwidth {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 22px 0 0 !important;
  padding: 0 !important;
}

/* Card chiếm trọn khung 1440px */
.tp-page-main .tp-page-fullwidth .tp-page-card {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: clamp(38px, 4.5vw, 68px) clamp(28px, 5vw, 76px) !important;
  border: 1px solid var(--tp-border) !important;
  border-radius: 24px !important;
  background:
    linear-gradient(
      145deg,
      rgba(17, 24, 39, 0.99) 0%,
      rgba(15, 20, 29, 0.99) 100%
    ) !important;
  box-shadow:
    0 20px 56px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.02);
  box-sizing: border-box !important;
}

/* Giới hạn chiều dài dòng chữ để dễ đọc */
.tp-page-main .tp-page-fullwidth .tp-entry-content {
  width: 100% !important;
  max-width: 1040px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  color: var(--tp-text-soft);
  font-size: 17px;
  line-height: 1.78;
  box-sizing: border-box !important;
}

.tp-page-main .tp-entry-content > :first-child {
  margin-top: 0 !important;
}

.tp-page-main .tp-entry-content > :last-child {
  margin-bottom: 0 !important;
}

/* Đoạn văn */
.tp-page-main .tp-entry-content p {
  margin: 0 0 22px;
  color: var(--tp-text-soft);
  font-size: 17px;
  line-height: 1.78;
}

/* Heading */
.tp-page-main .tp-entry-content h2 {
  position: relative;
  margin: 56px 0 20px;
  padding-left: 18px;
  color: #fff;
  font-size: clamp(29px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.45px;
}

.tp-page-main .tp-entry-content h2::before {
  content: "";
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 0;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    var(--tp-orange-start),
    var(--tp-orange)
  );
  box-shadow: 0 0 16px rgba(255, 168, 45, 0.32);
}

.tp-page-main .tp-entry-content h2:first-of-type {
  margin-top: 38px;
}

.tp-page-main .tp-entry-content h3 {
  margin: 40px 0 15px;
  color: #fff;
  font-size: clamp(23px, 2.4vw, 28px);
  font-weight: 700;
  line-height: 1.28;
}

.tp-page-main .tp-entry-content h4 {
  margin: 32px 0 12px;
  color: #fff;
  font-size: 21px;
  font-weight: 700;
}

/* Danh sách */
.tp-page-main .tp-entry-content ul,
.tp-page-main .tp-entry-content ol {
  margin: 0 0 25px;
  padding-left: 26px;
}

.tp-page-main .tp-entry-content li {
  margin-bottom: 9px;
  padding-left: 3px;
  color: var(--tp-text-soft);
}

.tp-page-main .tp-entry-content li::marker {
  color: var(--tp-orange);
}

/* Dòng Last updated ở đầu nội dung */
.tp-page-main .tp-entry-content > ul:first-child {
  margin: 0 0 42px;
  padding: 0;
  list-style: none;
}

.tp-page-main .tp-entry-content > ul:first-child li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 9px 14px;
  border: 1px solid var(--tp-border-soft);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--tp-muted);
  font-size: 14px;
  line-height: 1.4;
}

.tp-page-main .tp-entry-content > ul:first-child li::before {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--tp-orange);
  box-shadow: 0 0 10px rgba(255, 168, 45, 0.62);
}

/* Link */
.tp-page-main .tp-entry-content a {
  color: var(--tp-orange);
  text-decoration: none;
  text-underline-offset: 3px;
}

.tp-page-main .tp-entry-content a:hover {
  color: #ffbd5c;
  text-decoration: underline;
}

.tp-page-main .tp-entry-content strong {
  color: #fff;
  font-weight: 700;
}

.tp-page-main .tp-entry-content em {
  color: #b8c1cf;
}

/* Blockquote */
.tp-page-main .tp-entry-content blockquote {
  margin: 32px 0;
  padding: 22px 26px;
  border: 1px solid rgba(255, 168, 45, 0.18);
  border-left: 4px solid var(--tp-orange);
  border-radius: 14px;
  background: rgba(255, 168, 45, 0.045);
  color: var(--tp-text-soft);
}

/* Divider */
.tp-page-main .tp-entry-content hr {
  height: 1px;
  margin: 44px 0;
  border: 0;
  background: var(--tp-border-soft);
}

/* Table */
.tp-page-main .tp-entry-content table {
  width: 100%;
  margin: 30px 0;
  overflow: hidden;
  border: 1px solid var(--tp-border);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 14px;
  background: var(--tp-surface);
}

.tp-page-main .tp-entry-content th,
.tp-page-main .tp-entry-content td {
  padding: 14px 17px;
  border-right: 1px solid var(--tp-border);
  border-bottom: 1px solid var(--tp-border);
  text-align: left;
}

.tp-page-main .tp-entry-content th {
  background: var(--tp-surface-3);
  color: #fff;
}

.tp-page-main .tp-entry-content tr:last-child td {
  border-bottom: 0;
}

.tp-page-main .tp-entry-content th:last-child,
.tp-page-main .tp-entry-content td:last-child {
  border-right: 0;
}

/* Tablet */
@media screen and (max-width: 1024px) {
  .tp-page-main {
    padding-top: 24px;
  }

  .tp-page-main .tp-shell {
    width: calc(100% - 30px) !important;
  }

  .tp-page-main .tp-page-hero {
    min-height: 175px;
    padding: 38px 40px;
  }

  .tp-page-main .tp-page-hero::after {
    right: 18px;
    opacity: 0.72;
  }

  .tp-page-main .tp-page-fullwidth .tp-page-card {
    padding: 48px 42px !important;
  }

  .tp-page-main .tp-page-fullwidth .tp-entry-content {
    max-width: 100% !important;
  }
}

/* Mobile */
@media screen and (max-width: 600px) {
  .tp-page-main {
    padding: 18px 0 62px;
  }

  .tp-page-main .tp-shell {
    width: calc(100% - 24px) !important;
  }

  .tp-page-main .tp-page-hero {
    min-height: 150px;
    padding: 28px 22px;
    border-radius: 18px;
  }

  .tp-page-main .tp-page-hero::after {
    right: -84px;
    width: 155px;
    height: 155px;
  }

  .tp-page-main .tp-page-title {
    font-size: 38px;
    letter-spacing: -0.75px;
  }

  .tp-page-main .tp-page-fullwidth {
    margin-top: 14px !important;
  }

  .tp-page-main .tp-page-fullwidth .tp-page-card {
    padding: 32px 21px !important;
    border-radius: 18px !important;
  }

  .tp-page-main .tp-page-fullwidth .tp-entry-content,
  .tp-page-main .tp-entry-content p {
    font-size: 15px;
    line-height: 1.72;
  }

  .tp-page-main .tp-entry-content h2 {
    margin-top: 44px;
    padding-left: 15px;
    font-size: 27px;
  }

  .tp-page-main .tp-entry-content h3 {
    margin-top: 32px;
    font-size: 22px;
  }

  .tp-page-main .tp-entry-content > ul:first-child {
    margin-bottom: 34px;
  }

  .tp-page-main .tp-entry-content table {
    display: block;
    overflow-x: auto;
  }
}

