/* Base reset */
* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
  line-height: 1.6;
  color: #1a1a1a;
  margin: 0;
  background: linear-gradient(135deg, #1e1e2e 0%, #2d2d44 100%);
  min-height: 100vh;
}

a {
  color: #d4af37;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #f4d03f;
  text-decoration: underline
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #fff;
  border-bottom: 2px solid #d4af37;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

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

.brand {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .2px;
  display: flex;
}

.brand img {
  width: 160px;
  height: auto;
}

.nav {
  margin-left: auto;
  display: flex;
  gap: 14px;
  flex-wrap: wrap
}

.nav a {
  color: #e0e0e0;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.nav a:hover {
  background: rgba(212, 175, 55, 0.2);
  color: #d4af37;
}

.nav a.active {
  color: #d4af37;
  background: rgba(212, 175, 55, 0.15);
  text-decoration: none;
}

.main {
  max-width: 1200px;
  margin: 0 auto;
}

.article {
  background: linear-gradient(135deg, #2d2d44 0%, #1e1e2e 100%);
  border: 2px solid #d4af37;
  border-radius: 16px;
  padding: 24px;
  max-width: 100%;
  min-width: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.article h1 {
  font-size: 32px;
  margin: 0 0 12px;
  color: #d4af37;
  font-weight: 700;
  line-height: 1.3;
}

.article .meta {
  color: #b0b0b0;
  font-size: 13px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.blocks {
  display: flex;
  flex-direction: column;
  gap: 20px
}

.block {
  padding: 20px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 12px;
  background: rgba(30, 30, 46, 0.6);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.block:hover {
  border-color: #d4af37;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.block h2 {
  margin-top: 0;
  color: #d4af37;
  font-weight: 600;
}

.block p, .block li {
  color: #e0e0e0;
}

/* Author block */
.author {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #e0e0e0;
  border-radius: 14px;
  padding: 20px;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.author .avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #0ea5e9;
  display: inline-block;
  flex: none;
  overflow: hidden
}

.author .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.author .info {
  font-size: 14px
}

/* FAQ accordion */
.faq .item {
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 12px;
  margin: 10px 0;
  background: rgba(30, 30, 46, 0.6);
  overflow: hidden;
}

.faq .q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 16px 20px;
  background: rgba(212, 175, 55, 0.15);
  border-radius: 12px;
  cursor: pointer;
  color: #d4af37;
  font-weight: 600;
  transition: all 0.3s ease;
}

.faq .q:hover {
  background: rgba(212, 175, 55, 0.25);
}

.faq .a {
  display: none;
  padding: 16px 20px;
  color: #e0e0e0;
}

.faq .item.open .a {
  display: block
}

/* Footer */
.footer {
  margin-top: 48px;
  color: #b0b0b0;
  text-align: center;
  font-size: 13px;
  padding: 32px 24px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-top: 2px solid #d4af37;
}

code,
pre {
  background: rgba(30, 30, 46, 0.8);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 8px;
  padding: .2em .4em;
  color: #d4af37;
}

table {
  border-collapse: collapse;
  width: 100%;
  background: rgba(30, 30, 46, 0.6);
  border-radius: 8px;
  overflow: hidden;
}

td,
th {
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 10px 12px;
  text-align: left;
}

th {
  background: rgba(212, 175, 55, 0.2);
  color: #d4af37;
  font-weight: 600;
}

td {
  color: #e0e0e0;
}

/* ------------------------------ */
/* Mobile navigation and burger  */
/* These styles add a hamburger button for small screens and toggle the primary navigation. */

/* Base burger button: hidden by default on larger screens */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 24px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.burger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #fff;
}

/* Ensure the burger is hidden on larger screens */
@media (min-width: 769px) {
  .burger {
    display: none;
  }
}

/* Responsive adjustments for screens 768px and narrower */
@media (max-width: 768px) {

  .btns-group a {
    min-width: auto !important;
  }

  /* Allow header content to wrap so nav appears on a new row */
  .header .wrap {
    flex-wrap: wrap;
  }

  /* Hide nav by default and stack its links vertically when shown */
  .nav {
    display: none;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    margin-left: 0;
    padding: 8px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-top: 2px solid #d4af37;
  }

  /* Show nav when it has .open class, toggled via JS */
  .nav.open {
    display: flex;
  }

  /* Style nav links for mobile */
  .nav a {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    color: #e0e0e0;
  }
  
  .nav a:hover {
    background: rgba(212, 175, 55, 0.2);
    color: #d4af37;
  }

  /* Display the burger button and push it to the right */
  .burger {
    display: flex;
    margin-left: auto;
  }
}

.wp-block-table {
  margin: 0;
  display: block;
  overflow-x: auto;
}

.btns-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 20px 0;
}

.btns-group a {
  border: 2px solid #d4af37;
  padding: 12px 24px;
  border-radius: 8px;
  background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
  color: #1a1a2e;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 700;
  min-width: 180px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.btns-group a:hover {
  background: linear-gradient(135deg, #f4d03f 0%, #d4af37 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.5);
  text-decoration: none;
}