:root {
  color-scheme: dark;
  --color-bg: #090808;
  --color-surface: #161414;
  --color-surface-hover: #231f1f;
  --color-surface-muted: #4a4242;
  --color-gold: #fbba05;
  --color-gold-glow: rgba(251, 186, 5, 0.25);
  --color-gold-light: #eccb70;
  --color-text: #ffffff;
  --color-text-secondary: rgba(255, 255, 255, 0.55);
  --color-text-muted: rgba(255, 255, 255, 0.35);
  --color-border: rgba(255, 255, 255, 0.1);
  --color-border-hover: rgba(255, 255, 255, 0.18);
  --color-success: #4ade80;
  --radius-card: 0.75rem;
  --radius-sm: 0.5rem;
  --radius-pill: 99px;
}

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

body {
  margin: 0;
  background: var(--color-bg);
  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: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.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: var(--color-surface-hover);
  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(--color-gold);
  color: #000;
  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: var(--color-surface);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.36);
  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: var(--color-surface-muted);
  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: var(--color-surface-hover);
  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(--color-gold);
  color: #000;
  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: #000;
}

.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(--color-gold);
  color: #000;
}

.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: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 16px 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.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: var(--color-surface-hover);
  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(--color-gold);
  color: #000;
  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: var(--color-surface-muted);
  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(9, 8, 8, 0.75) 0%,
    rgba(9, 8, 8, 0.2) 55%,
    transparent 100%
  );
}

.vtr-hero-btn {
  display: inline-block;
  background-color: var(--color-gold, #fbba05);
  color: #090808;
  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;
  }
}
