:root {
  --znh4-bg: #0d1215;
  --znh4-surface: #172227;
  --znh4-surface-alt: #1f2d34;
  --znh4-primary: #417c89;
  --znh4-primary-glow: rgba(65, 124, 137, 0.4);
  --znh4-accent: #ccb530;
  --znh4-text: #e2e8f0;
  --znh4-text-dim: #94a3b8;
  --znh4-border: #2a3d46;
  --znh4-font-head: 'Kanit', sans-serif;
  --znh4-font-body: 'Inter', sans-serif;
  --znh4-radius: 4px;
  --znh4-transition: 0.3s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  background-color: var(--znh4-bg);
  color: var(--znh4-text);
  font-family: var(--znh4-font-body);
  font-size: 16px;
  line-height: 1.5;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--znh4-font-head);
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0;
}

a {
  color: var(--znh4-accent);
  text-decoration: none;
  transition: color var(--znh4-transition);
}

a:hover {
  color: #fff;
}

.znh4-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.znh4-header {
  background-color: var(--znh4-surface);
  border-bottom: 2px solid var(--znh4-primary);
  position: relative;
  z-index: 10;
}

.znh4-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
}

.znh4-logo-wrap {
  flex-shrink: 0;
}

.znh4-logo {
  font-family: var(--znh4-font-head);
  font-size: 28px;
  font-weight: 800;
  color: var(--znh4-accent);
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(204, 181, 48, 0.3);
  letter-spacing: 1px;
}

.znh4-nav {
  overflow-x: auto;
  max-width: 100%;
}

.znh4-nav::-webkit-scrollbar {
  display: none;
}

.znh4-nav-list {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 8px 0;
  white-space: nowrap;
}

.znh4-nav-list a {
  color: var(--znh4-text);
  font-weight: 500;
  font-size: 15px;
  text-transform: uppercase;
}

.znh4-nav-list a:hover {
  color: var(--znh4-accent);
}

/* Ticker */
.znh4-ticker-wrapper {
  background-color: var(--znh4-surface-alt);
  border-bottom: 1px solid var(--znh4-border);
  overflow: hidden;
  padding: 10px 0;
  position: relative;
  display: flex;
  width: 100%;
}

.znh4-ticker-track {
  display: inline-flex;
  white-space: nowrap;
  animation: znh4-marquee 25s linear infinite;
  gap: 40px;
  padding-left: 100%;
}

@keyframes znh4-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

.znh4-ticker-item {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
}

.znh4-ticker-item a {
  color: var(--znh4-text);
}
.znh4-ticker-item a:hover {
  color: var(--znh4-primary);
}

/* Hero */
.znh4-hero {
  position: relative;
  padding: 60px 0;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid var(--znh4-border);
}

.znh4-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.znh4-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.znh4-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(13, 18, 21, 0.7) 0%, rgba(13, 18, 21, 0.95) 100%);
}

.znh4-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.znh4-hero-title {
  font-size: clamp(28px, 5vw, 48px);
  color: var(--znh4-accent);
  text-shadow: 0 0 15px rgba(204, 181, 48, 0.4);
  margin-bottom: 16px;
}

.znh4-hero-desc {
  font-size: 16px;
  color: var(--znh4-text);
  margin-bottom: 0;
}

/* Stats */
.znh4-stats {
  padding: 40px 16px;
}

.znh4-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  background: var(--znh4-surface);
  border: 1px solid var(--znh4-border);
  border-radius: var(--znh4-radius);
  padding: 24px;
}

.znh4-stat-box {
  text-align: center;
  padding: 16px 8px;
}

.znh4-stat-num {
  font-family: var(--znh4-font-head);
  font-size: 32px;
  font-weight: 700;
  color: var(--znh4-primary);
  line-height: 1.1;
  margin-bottom: 8px;
  text-shadow: 0 0 8px var(--znh4-primary-glow);
}

.znh4-stat-label {
  font-size: 13px;
  color: var(--znh4-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Portal Tabs */
.znh4-portal {
  padding: 40px 16px;
}

.znh4-portal-header {
  margin-bottom: 24px;
  text-align: center;
}

.znh4-portal-title {
  font-size: 24px;
  color: #fff;
  display: inline-block;
  border-bottom: 2px solid var(--znh4-primary);
  padding-bottom: 8px;
}

.znh4-tabs-wrapper {
  overflow-x: auto;
  margin-bottom: 24px;
  padding-bottom: 4px;
}

.znh4-tabs-wrapper::-webkit-scrollbar {
  height: 4px;
}
.znh4-tabs-wrapper::-webkit-scrollbar-thumb {
  background: var(--znh4-border);
  border-radius: var(--znh4-radius);
}

.znh4-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  min-width: max-content;
}

.znh4-tab-btn {
  background: var(--znh4-surface);
  color: var(--znh4-text);
  border: 1px solid var(--znh4-border);
  padding: 10px 24px;
  font-family: var(--znh4-font-head);
  font-size: 14px;
  border-radius: var(--znh4-radius);
  cursor: pointer;
  transition: all var(--znh4-transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.znh4-tab-btn:hover {
  background: var(--znh4-surface-alt);
  border-color: var(--znh4-primary);
}

.znh4-tab-btn.znh4-active {
  background: var(--znh4-primary);
  color: #fff;
  border-color: var(--znh4-primary);
  box-shadow: 0 0 12px var(--znh4-primary-glow);
}

.znh4-tab-panel {
  display: none;
  animation: znh4-fade-in 0.4s ease;
}

.znh4-tab-panel.znh4-active {
  display: block;
}

@keyframes znh4-fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Cards & Grid */
.znh4-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.znh4-card {
  background: var(--znh4-surface);
  border: 1px solid var(--znh4-border);
  border-radius: var(--znh4-radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transition: transform var(--znh4-transition), box-shadow var(--znh4-transition), border-color var(--znh4-transition);
}

.znh4-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.4);
  border-color: var(--znh4-primary);
}

.znh4-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--znh4-surface-alt);
  overflow: hidden;
}

.znh4-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.znh4-card:hover .znh4-card-img img {
  transform: scale(1.08);
}

.znh4-card-content {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.znh4-card-title {
  font-size: 14px;
  color: #fff;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.znh4-card-sub {
  font-size: 12px;
  color: var(--znh4-text-dim);
  margin: 0 0 8px 0;
}

.znh4-badge {
  align-self: flex-start;
  background: var(--znh4-surface-alt);
  border: 1px solid var(--znh4-accent);
  color: var(--znh4-accent);
  font-size: 12px;
  padding: 2px 6px;
  border-radius: var(--znh4-radius);
  margin-top: auto;
  font-weight: 600;
}

/* Benefits & Sections */
.znh4-section-title {
  font-size: 22px;
  text-align: center;
  margin-bottom: 32px;
  color: var(--znh4-accent);
}

.znh4-benefits, .znh4-steps, .znh4-payments {
  padding: 40px 16px;
}

.znh4-benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.znh4-benefit-card {
  background: var(--znh4-surface);
  border-top: 3px solid var(--znh4-primary);
  padding: 24px;
  border-radius: var(--znh4-radius);
  text-align: center;
}

.znh4-benefit-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.znh4-benefit-title {
  font-size: 18px;
  margin-bottom: 12px;
}

.znh4-benefit-desc {
  font-size: 14px;
  color: var(--znh4-text-dim);
  margin: 0;
}

/* Steps */
.znh4-steps-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.znh4-step-item {
  display: flex;
  background: var(--znh4-surface);
  border: 1px solid var(--znh4-border);
  border-radius: var(--znh4-radius);
  padding: 20px;
  align-items: center;
  gap: 20px;
}

.znh4-step-num {
  font-family: var(--znh4-font-head);
  font-size: 36px;
  color: var(--znh4-primary);
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 0 10px var(--znh4-primary-glow);
  min-width: 40px;
  text-align: center;
}

.znh4-step-content {
  flex-grow: 1;
}

.znh4-step-title {
  font-size: 16px;
  margin-bottom: 6px;
}

.znh4-step-desc {
  font-size: 14px;
  color: var(--znh4-text-dim);
  margin: 0;
}

/* Payments */
.znh4-payments-sub {
  text-align: center;
  color: var(--znh4-text-dim);
  margin-bottom: 24px;
  font-size: 14px;
}

.znh4-payments-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.znh4-payment-label {
  background: var(--znh4-surface);
  border: 1px dashed var(--znh4-border);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--znh4-radius);
  color: var(--znh4-text);
}

/* Article & Semantic Content */
.znh4-content-wrap {
  padding: 40px 16px;
}

.znh4-article {
  background: var(--znh4-surface);
  border: 1px solid var(--znh4-border);
  border-radius: var(--znh4-radius);
  padding: 32px 24px;
  max-width: 900px;
  margin: 0 auto;
}

.znh4-article h1, .znh4-article h2, .znh4-article h3, .znh4-article h4 {
  color: var(--znh4-accent);
  margin-top: 1.5em;
  margin-bottom: 0.75em;
  border-bottom: 1px solid var(--znh4-border);
  padding-bottom: 8px;
}

.znh4-article p {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 1.25em;
  color: #cbd5e1;
}

.znh4-article ul, .znh4-article ol {
  margin-bottom: 1.25em;
  padding-left: 20px;
  color: #cbd5e1;
  font-size: 15px;
}

.znh4-article li {
  margin-bottom: 8px;
}

.znh4-article img {
  max-width: 100%;
  height: auto;
  border-radius: var(--znh4-radius);
  margin: 1em 0;
  display: block;
}

.znh4-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 14px;
}

.znh4-article th, .znh4-article td {
  border: 1px solid var(--znh4-border);
  padding: 10px;
  text-align: left;
}

.znh4-article th {
  background: var(--znh4-surface-alt);
  color: var(--znh4-primary);
}

.znh4-article blockquote {
  border-left: 4px solid var(--znh4-primary);
  margin: 1.5em 0;
  padding: 10px 20px;
  background: var(--znh4-surface-alt);
  font-style: italic;
  color: var(--znh4-text);
}

/* Page specific */
.znh4-breadcrumbs-wrap {
  padding: 16px;
  background: var(--znh4-surface);
  border-bottom: 1px solid var(--znh4-border);
}

.znh4-breadcrumbs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
}

.znh4-crumb-item {
  display: flex;
  align-items: center;
}

.znh4-crumb-item:not(:last-child)::after {
  content: '/';
  margin-left: 8px;
  color: var(--znh4-text-dim);
}

.znh4-crumb-item a {
  color: var(--znh4-text-dim);
}

.znh4-crumb-item a:hover {
  color: var(--znh4-primary);
}

.znh4-page-header {
  padding: 40px 16px;
  text-align: center;
  max-width: 800px;
}

.znh4-page-title {
  font-size: 32px;
  color: var(--znh4-accent);
  margin-bottom: 16px;
}

.znh4-page-desc {
  font-size: 16px;
  color: var(--znh4-text-dim);
}

.znh4-page-article {
  margin-bottom: 40px;
}

/* FAQ */
.znh4-faq-section {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 2px dashed var(--znh4-border);
}

.znh4-faq-heading {
  font-size: 20px;
  margin-bottom: 24px;
  color: #fff;
}

.znh4-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.znh4-faq-item {
  background: var(--znh4-surface-alt);
  border: 1px solid var(--znh4-border);
  border-radius: var(--znh4-radius);
  overflow: hidden;
}

.znh4-faq-q {
  padding: 16px;
  font-family: var(--znh4-font-head);
  font-size: 15px;
  font-weight: 500;
  color: var(--znh4-text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}

.znh4-faq-q::-webkit-details-marker {
  display: none;
}

.znh4-faq-q::after {
  content: '+';
  color: var(--znh4-primary);
  font-size: 20px;
  font-weight: 700;
}

.znh4-faq-item[open] .znh4-faq-q::after {
  content: '-';
  color: var(--znh4-accent);
}

.znh4-faq-a {
  padding: 0 16px 16px;
  font-size: 14px;
  color: var(--znh4-text-dim);
  line-height: 1.6;
}

/* Pager */
.znh4-pagination {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--znh4-border);
}

.znh4-pager-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.znh4-pager-item a {
  display: inline-block;
  background: var(--znh4-surface-alt);
  padding: 10px 20px;
  border-radius: var(--znh4-radius);
  border: 1px solid var(--znh4-border);
  font-size: 14px;
  font-weight: 500;
}

.znh4-pager-item a:hover {
  border-color: var(--znh4-primary);
  background: var(--znh4-surface);
}

.znh4-related {
  padding: 40px 16px;
  background: var(--znh4-surface-alt);
}

/* Footer */
.znh4-footer {
  background: var(--znh4-surface);
  border-top: 2px solid var(--znh4-primary);
  padding: 40px 0 20px;
  margin-top: 40px;
}

.znh4-footer-nav {
  margin-bottom: 24px;
}

.znh4-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.znh4-footer-links a {
  font-size: 14px;
  color: var(--znh4-text);
}

.znh4-footer-links a:hover {
  color: var(--znh4-accent);
}

.znh4-footer-legal {
  text-align: center;
  font-size: 12px;
  color: var(--znh4-text-dim);
  margin-bottom: 24px;
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.znh4-footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-top: 1px solid var(--znh4-border);
  padding-top: 20px;
  gap: 8px;
}

.znh4-logo-muted {
  font-family: var(--znh4-font-head);
  font-size: 20px;
  color: var(--znh4-text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.znh4-copyright {
  font-size: 13px;
  color: var(--znh4-text-dim);
  margin: 0;
}

/* Animations */
.znh4-anim {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.znh4-anim.znh4-in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Media Queries */
@media (min-width: 480px) {
  .znh4-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

@media (min-width: 768px) {
  .znh4-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
  .znh4-article {
    padding: 40px;
  }
  .znh4-footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 900px) {
  .znh4-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
