:root {
  --bg: #f8f6f0;
  --surface: #ffffff;
  --primary: #0f2a45;
  --primary-dark: #0c2237;
  --accent: #e1b85a;
  --muted: #4c5867;
  --border: #d8d2c8;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(15, 42, 69, 0.08);
}

body {
  background: var(--bg);
  color: #1b1b1d;
}

.wp-block {
  max-width: 90%;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.wp-block[data-align="wide"],
.wp-block[data-align="full"] {
  max-width: 100%;
}



.entry-content > * {
  max-width: 90%;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.entry-content > .alignwide,
.entry-content > .alignfull {
  max-width: 100%;
}

.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  background: var(--primary);
  border-bottom: 3px solid var(--accent);
  box-shadow: var(--shadow);
}

.nav-bar {
  max-width: 1400px;
  width: 90%;
  margin: 0 auto;
  padding: 14px 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  position: relative;
}
@media (max-width: 720px) {
  .nav-bar {
    width: 100%;
  }
}

.brand {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.4px;
  color: #f8fafc;
  flex-shrink: 0;
}

.brand img {
    max-width: 180px;
    height: auto;
    display: block;
    height: 80px;
    object-fit: contain;
    object-position: left;
}

.primary-nav {
  display: flex;
  justify-content: center;
}

.nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 12px;
  width: 44px;
  height: 44px;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #f8fafc;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  justify-content: center;
}

.nav-menu a {
  display: inline-flex;
  align-items: center;
  color: #f8fafc;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 17px;
  line-height: 1.4;
  text-decoration: none;
}

.nav-menu a:hover,
.nav-menu a:focus {
  background: rgba(225, 184, 90, 0.12);
}

.nav-menu li {
  position: relative;
}

.submenu-toggle {
  display: none;
}

.nav-menu .sub-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  background: var(--primary);
  border: 1px solid rgba(225, 184, 90, 0.22);
  border-radius: 10px;
  padding: 8px 0;
  min-width: 220px;
  box-shadow: var(--shadow);
  z-index: 10;
}

.nav-menu .sub-menu a {
  display: block;
  padding: 10px 16px;
  font-size: 15px;
  border-radius: 0;
}

.nav-menu li.menu-item-has-children > a::after {
  content: "▾";
  display: inline-block;
  margin-left: 8px;
  font-size: 12px;
  transform: translateY(-1px);
}

.hero {
  padding: 80px 20px;
  max-width: 1400px;
  width: 90%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: 36px;
  margin: 0 0 16px;
}

.hero p {
  color: var(--muted);
  font-size: 18px;
}

.cta-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #1b1b1d;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: #d6a84f;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--surface);
  color: #1f2933;
  border-color: var(--border);
}

.cards {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 30px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin-top: 0;
}

.site-main {
  flex: 1;
  padding: 25px 20px 25px;
}

.content-area {
  max-width: 1400px;
  width: 90%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 30px;
}

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

.content-area.full {
  grid-template-columns: 1fr;
}

.post {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  margin-bottom: 24px;
}

.post header {
  margin-bottom: 12px;
}

.post-meta {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 10px;
}

.widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
}

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);

}

.site-footer .footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.pagination {
  display: flex;
  gap: 8px;
}

.pagination a,
.pagination span {
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.error-404-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(20px, 4vw, 56px);
  color: #f8f6f0;
  background:
    radial-gradient(1100px 520px at 15% 10%, rgba(225, 184, 90, 0.32), transparent 60%),
    radial-gradient(900px 560px at 90% 20%, rgba(165, 30, 59, 0.24), transparent 55%),
    radial-gradient(1200px 700px at 50% 95%, rgba(15, 42, 69, 0.22), transparent 60%),
    linear-gradient(180deg, #0b1220, #0f2a45);
  position: relative;
  overflow: hidden;
}

.error-404-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.error-404-page .shell {
  width: min(1100px, 100%);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(18px, 3vw, 28px);
  align-items: center;
}

.error-404-page .card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(225, 184, 90, 0.28);
  border-radius: 22px;
  padding: clamp(18px, 3.2vw, 34px);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  animation: error-enter 0.55s ease both;
}

.error-404-page .card::after {
  content: "";
  position: absolute;
  inset: -2px;
  background:
    radial-gradient(400px 200px at 20% 15%, rgba(225, 184, 90, 0.28), transparent 60%),
    radial-gradient(380px 220px at 80% 20%, rgba(165, 30, 59, 0.18), transparent 60%);
  pointer-events: none;
}

.error-404-page .content {
  position: relative;
  z-index: 1;
}

.error-404-page .kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.68);
  font-weight: 600;
  letter-spacing: 0.2px;
  font-size: 14px;
}

.error-404-page .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, rgba(255, 255, 255, 0.1) 35%),
    linear-gradient(135deg, #e1b85a, #a51e3b);
  box-shadow: 0 0 0 4px rgba(225, 184, 90, 0.15);
}

.error-404-page h1 {
  margin: 16px 0 10px;
  font-size: 47px;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #f8f6f0;
}

.error-404-page .lead {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.55;
  max-width: 55ch;
}

.error-404-page .actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.error-404-page .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  user-select: none;
}

.error-404-page .btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.22);
}

.error-404-page .btn.primary {
  border-color: rgba(225, 184, 90, 0.7);
  background: linear-gradient(135deg, rgba(225, 184, 90, 0.98), rgba(165, 30, 59, 0.9));
  box-shadow: 0 12px 35px rgba(225, 184, 90, 0.25);
}

.error-404-page .btn.ghost {
  background: rgba(0, 0, 0, 0.14);
}

.error-404-page .btn:focus-visible {
  outline: 3px solid rgba(225, 184, 90, 0.4);
  outline-offset: 3px;
}

.error-404-page .meta {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 13px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.error-404-page .meta code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.78);
}

.error-404-page .art {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(225, 184, 90, 0.22);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  isolation: isolate;
  animation: error-enter 0.55s ease both;
  animation-delay: 0.08s;
}

.error-404-page .art::before {
  content: "";
  position: absolute;
  inset: -40px;
  background:
    radial-gradient(380px 320px at 35% 35%, rgba(225, 184, 90, 0.32), transparent 60%),
    radial-gradient(420px 320px at 70% 55%, rgba(165, 30, 59, 0.2), transparent 60%),
    conic-gradient(from 180deg at 50% 50%, rgba(225, 184, 90, 0), rgba(225, 184, 90, 0.24), rgba(165, 30, 59, 0.2), rgba(15, 42, 69, 0.18), rgba(225, 184, 90, 0));
  filter: blur(8px);
  opacity: 0.9;
  z-index: 0;
}

.error-404-page .grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.25;
  mask-image: radial-gradient(closest-side, rgba(0, 0, 0, 1) 55%, rgba(0, 0, 0, 0) 100%);
  z-index: 1;
}

.error-404-page .badge404 {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 2;
}

.error-404-page .badge404 .num {
  font-weight: 900;
  font-size: clamp(78px, 9vw, 120px);
  letter-spacing: -0.06em;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.62));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  position: relative;
}

.error-404-page .badge404 .num::after {
  content: "";
  position: absolute;
  inset: -16px -22px;
  border-radius: 999px;
  background:
    radial-gradient(closest-side, rgba(225, 184, 90, 0.24), transparent 70%),
    radial-gradient(closest-side, rgba(165, 30, 59, 0.16), transparent 70%);
  filter: blur(2px);
  z-index: -1;
}

.error-404-page .orbit {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.error-404-page .orb {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  animation: float 6.5s ease-in-out infinite;
}

.error-404-page .orb.small {
  width: 92px;
  height: 92px;
  animation-duration: 7.8s;
}
.error-404-page .orb.tiny {
  width: 64px;
  height: 64px;
  animation-duration: 5.9s;
}

.error-404-page .orb.p1 {
  left: 18%;
  top: 28%;
}
.error-404-page .orb.p2 {
  left: 82%;
  top: 32%;
}
.error-404-page .orb.p3 {
  left: 66%;
  top: 78%;
}

.error-404-page .hint {
  position: absolute;
  left: 18px;
  bottom: 16px;
  right: 18px;
  z-index: 4;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  line-height: 1.45;
}

.error-404-page .hint .spark {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 1px;
  background: conic-gradient(from 90deg, #e1b85a, #a51e3b, #0f2a45, #e1b85a);
  border-radius: 6px;
  box-shadow: 0 0 0 4px rgba(225, 184, 90, 0.12);
}

@keyframes float {
  0%,
  100% {
    transform: translate(-50%, -50%) translateY(0);
  }
  50% {
    transform: translate(-50%, -50%) translateY(-10px);
  }
}

@keyframes error-enter {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.no-results {
  text-align: center;
}

@media (max-width: 900px) {
  .error-404-page .art {
    order: -1;
  }

  .content-area {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-bar {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 12px 16px;
    gap: 12px;
    width: 100%;
  }

  .primary-nav {
    grid-column: 1 / -1;
    width: 100%;
    order: 3;
  }

  .nav-toggle {
    display: inline-flex;
    position: relative;
    z-index: 11;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #0f1a2b;
    padding: 12px 14px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.4);
    gap: 6px;
    z-index: 10;
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu a {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 8px;
    text-align: left;
    font-size: 16px;
    border-radius: 6px;
    background: transparent;
    border: none;
  }

  .nav-menu .sub-menu {
    position: static;
    display: none;
    padding: 6px 0 6px 12px;
    background: transparent;
    border-left: none;
    margin-top: 6px;
  }

  .nav-menu .sub-open > .sub-menu {
    display: block;
  }

  .nav-menu li.menu-item-has-children > a::after {
    display: none;
  }

  .submenu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: #f8fafc;
    font-size: 18px;
    position: absolute;
    right: 12px;
    top: 22px;
    transform: translateY(-50%);
    margin-left: 0;
  }

  .nav-menu li.menu-item-has-children {
    position: relative;
    padding-right: 56px;
  }

  .nav-menu li.menu-item-has-children > a {
    padding-right: 0;
  }
}

@media (min-width: 901px) {
  .nav-menu li:hover > .sub-menu,
  .nav-menu li:focus-within > .sub-menu {
    display: block;
  }
}


.container {
    max-width: 1400px;
    padding: 8px 18px;
    width: 90%;
    margin: 0 auto;
    display: block;
}

@media (max-width: 720px) {
    .container {
        width: 100%;
    }
}
