:root {
  color-scheme: dark;
  --prime-bg: #010911;
  --prime-surface: #1a1a1a;
  --prime-surface-soft: #454545;
  --prime-accent: #3f96f1;
  --prime-accent-strong: #1a98ff;
  --prime-accent-light: #8fccff;
  --prime-text: #ffffff;
  --prime-border: rgba(26, 152, 255, 0.18);
  --prime-border-strong: rgba(26, 152, 255, 0.5);
  --prime-glow: rgba(63, 150, 241, 0.28);
  --prime-gradient: linear-gradient(94deg, #1a98ff -20%, #454545 122%);
  --color-bg: var(--prime-bg);
  --color-surface: #0d1520;
  --color-surface-hover: #162334;
  --color-surface-muted: var(--prime-surface-soft);
  --color-gold: var(--prime-accent);
  --color-gold-glow: var(--prime-glow);
  --color-gold-light: var(--prime-accent-light);
  --color-text: var(--prime-text);
  --color-text-secondary: rgba(255, 255, 255, 0.72);
  --color-text-muted: rgba(255, 255, 255, 0.45);
  --color-border: var(--prime-border);
  --color-border-hover: var(--prime-border-strong);
  --color-success: #4ade80;
  --shadow-card: 0 18px 48px rgba(1, 9, 17, 0.55), 0 0 0 1px rgba(26, 152, 255, 0.08);
  --shadow-card-soft: 0 10px 24px rgba(1, 9, 17, 0.42), 0 0 0 1px rgba(26, 152, 255, 0.12);
  --radius-card: 0.875rem;
  --radius-sm: 0.5rem;
  --radius-pill: 99px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top center, rgba(63, 150, 241, 0.18), transparent 34%),
    linear-gradient(180deg, #06101b 0%, var(--color-bg) 38%, var(--color-bg) 100%);
  color: var(--color-text);
  font-family: Krub, sans-serif;
  font-weight: 400;
  line-height: 1.7;
}

a {
  color: var(--color-gold);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-gold-light);
  text-decoration: underline;
}

.blog-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 56px;
}

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 20px;
  align-items: start;
}

.post-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, rgba(13, 21, 32, 0.98), rgba(9, 17, 28, 0.98));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
}

.post-header {
  position: relative;
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}

.post-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.header-left-menu {
  position: relative;
  flex: 0 0 auto;
}

.header-left-menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  margin: 0;
  padding: 6px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(22, 35, 52, 0.96), rgba(13, 21, 32, 0.96));
  color: var(--color-text);
  font-size: 0.9rem;
  cursor: pointer;
  list-style: none;
}

.header-left-menu-toggle:hover {
  border-color: var(--color-border-hover);
  background: var(--color-surface-muted);
}

.header-left-menu-toggle::-webkit-details-marker {
  display: none;
}

.header-left-menu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--prime-gradient);
  color: var(--color-text);
  font-size: 0.9rem;
  line-height: 1;
}

.header-left-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 12;
  width: min(320px, calc(100vw - 48px));
  max-height: 70vh;
  overflow: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(180deg, rgba(14, 22, 34, 0.98), rgba(8, 15, 24, 0.98));
  box-shadow: var(--shadow-card-soft);
  padding: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-10px);
  transform-origin: left center;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.header-left-menu[open] .header-left-menu-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.header-left-menu-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.header-left-menu-link {
  display: block;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface-hover);
  padding: 8px 10px;
  color: var(--color-text-secondary);
  font-size: 0.92rem;
  line-height: 1.4;
  transition: all 0.2s ease;
}

.header-left-menu-link:hover {
  border-color: var(--color-gold);
  background: rgba(26, 152, 255, 0.12);
  color: var(--color-gold);
  text-decoration: none;
}

.post-logo-link {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  max-width: 240px;
  text-decoration: none;
}

.post-logo-link:hover {
  text-decoration: none;
}

.post-logo-image {
  display: block;
  max-width: 100%;
  max-height: 56px;
  width: auto;
  object-fit: contain;
}

.post-title {
  margin: 0;
  color: var(--color-text);
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  font-weight: 700;
  line-height: 1.25;
}

.post-body {
  display: grid;
  gap: 20px;
}

.post-section {
  min-width: 0;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--color-border);
}

.post-section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.post-section-title,
.post-block-title {
  margin: 0 0 10px;
  color: var(--color-gold);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.35;
}

.post-section-content {
  color: var(--color-text-secondary);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.post-section-content > :first-child {
  margin-top: 0;
}

.post-section-content > :last-child {
  margin-bottom: 0;
}

.post-section-content strong {
  color: var(--color-text);
  font-weight: 500;
}

.post-faq {
  margin-top: 30px;
}

.post-faq-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.post-faq-item {
  background: linear-gradient(180deg, rgba(22, 35, 52, 0.94), rgba(13, 21, 32, 0.94));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  transition: border-color 0.2s ease;
}

.post-faq-item:hover {
  border-color: var(--color-border-hover);
}

.post-faq-question {
  display: block;
  margin-bottom: 6px;
  color: var(--color-gold);
  font-weight: 700;
}

.post-faq-answer {
  color: var(--color-text-secondary);
}

.post-faq-answer > :first-child {
  margin-top: 0;
}

.post-faq-answer > :last-child {
  margin-bottom: 0;
}

.post-cta {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--color-border);
}

.post-cta-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.post-cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 1.75rem;
  border-radius: var(--radius-pill);
  background: var(--prime-gradient);
  color: var(--color-text);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.post-cta-link:hover {
  box-shadow: 0 4px 24px var(--color-gold-glow);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--color-text);
}

.post-cta-link:nth-child(even) .post-cta-link,
.post-cta-list li:nth-child(even) .post-cta-link {
  background: transparent;
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
}

.post-cta-list li:nth-child(even) .post-cta-link:hover {
  background: var(--prime-gradient);
  color: var(--color-text);
}

.post-footer {
  margin-top: 24px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

.blog-sidebar-card {
  position: sticky;
  top: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, rgba(13, 21, 32, 0.98), rgba(9, 17, 28, 0.98));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 16px 14px;
  box-shadow: var(--shadow-card);
}

.blog-sidebar-title {
  margin: 0;
  color: var(--color-text);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
}

.sidebar-menu {
  display: grid;
  gap: 12px;
}

.sidebar-menu-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(22, 35, 52, 0.96), rgba(13, 21, 32, 0.96));
  color: var(--color-text);
  cursor: pointer;
  list-style: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.sidebar-menu-toggle:hover {
  border-color: var(--color-border-hover);
  background: var(--color-surface-muted);
}

.sidebar-menu-toggle::-webkit-details-marker {
  display: none;
}

.sidebar-menu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--prime-gradient);
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
}

.keyword-nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.keyword-nav-link {
  display: block;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface-hover);
  padding: 8px 10px;
  color: var(--color-text-secondary);
  font-size: 0.92rem;
  line-height: 1.4;
  transition: all 0.2s ease;
}

.keyword-nav-link:hover {
  border-color: var(--color-gold);
  background: rgba(26, 152, 255, 0.12);
  color: var(--color-gold);
  text-decoration: none;
}

@media (max-width: 1100px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }

  .blog-sidebar-card {
    position: static;
  }
}

@media (max-width: 720px) {
  .blog-page {
    padding: 24px 14px 40px;
  }

  .header-left-menu-panel {
    width: min(320px, calc(100vw - 32px));
  }

  .post-logo-image {
    max-height: 76px;
  }

  .post-card {
    border-radius: var(--radius-sm);
    padding: 22px 16px;
  }
}

.breadcrumb-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 6px;
  font-size: 0.85em;
  color: var(--color-surface-muted, #4a4242);
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  margin-right: 6px;
}

.breadcrumb-item a {
  color: var(--color-gold, #fbba05);
  text-decoration: none;
}

.post-section-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.95em;
}

.post-section-content th,
.post-section-content td {
  padding: 10px 14px;
  border: 1px solid var(--color-surface-muted, #4a4242);
  text-align: left;
}

.post-section-content th {
  background: var(--color-surface, #161414);
  font-weight: 600;
  color: var(--color-gold, #fbba05);
}

.post-section-content tr:hover {
  background: var(--color-surface-hover, #231f1f);
}

/* ── VTR Hero Video Banner ───────────────────── */

.vtr-hero-banner {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  border-radius: var(--radius-card, 0.75rem);
  margin-bottom: 1.5rem;
}

.vtr-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vtr-hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding-left: 2rem;
  background: linear-gradient(
    to right,
    rgba(1, 9, 17, 0.82) 0%,
    rgba(1, 9, 17, 0.3) 55%,
    transparent 100%
  );
}

.vtr-hero-btn {
  display: inline-block;
  background: var(--prime-gradient);
  color: var(--color-text);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill, 99px);
  text-decoration: none;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.vtr-hero-btn:hover {
  opacity: 0.85;
}

@media (max-width: 720px) {
  .vtr-hero-banner {
    height: 180px;
  }

  .vtr-hero-btn {
    font-size: 0.875rem;
    padding: 0.6rem 1.1rem;
  }
}
