:root {
  color-scheme: dark;
  --bg: #09111d;
  --bg-soft: #0f1a2b;
  --panel: linear-gradient(180deg, #111827 0%, #0b1220 100%);
  --card: rgba(255,255,255,0.04);
  --card-strong: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.14);
  --text: #f8fafc;
  --muted: rgba(248,250,252,0.72);
  --soft: rgba(248,250,252,0.55);
  --green: #84cc16;
  --gold: #facc15;
  --danger: #f87171;
  --shadow: 0 20px 48px rgba(0,0,0,0.28);
  --radius: 24px;
  --radius-sm: 16px;
  --content-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  max-width: 100%;
  overflow-x: clip;
}
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(132,204,22,0.08), transparent 20%),
    radial-gradient(circle at top right, rgba(250,204,21,0.08), transparent 20%),
    linear-gradient(180deg, #07111c 0%, #0b1220 100%);
  line-height: 1.65;
}
body.menu-open { overflow: hidden; }
#page, .site, .site-content, .site-main, main, .content-grid, .post-grid, .home-promo-grid, .footer-grid, .nav-inner, .hero-section { max-width: 100%; }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--green); }
img { max-width: 100%; height: auto; display: block; }
input, textarea, select, button { font: inherit; }

.container {
  width: min(calc(100% - 40px), var(--content-width));
  margin-inline: auto;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

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

.site-content { padding-top: 28px; padding-bottom: 50px; min-width: 0; }

.site-header {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 999;
  backdrop-filter: blur(12px);
  background: rgba(9, 17, 29, 0.88);
  border-bottom: 1px solid var(--border);
}
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 16px;
}
.site-branding {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.site-logo img,
.custom-logo {
  max-height: 72px;
  width: auto;
}
.site-title {
  margin: 0;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.05;
  font-weight: 800;
}
.site-title a { color: var(--text); }
.site-description {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  padding: 12px;
}
.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 999px;
}

.primary-nav { border-top: 1px solid var(--border); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 14px;
}
.primary-nav ul {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}
.primary-nav li { margin: 0; min-width: 0; }
.primary-nav .menu-item-has-children > a::after { content: "▾"; font-size: .8em; margin-left: 8px; opacity: .7; }
.primary-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a {
  background: rgba(255,255,255,0.06);
  color: var(--text);
}
.header-search { width: min(320px, 100%); min-width: 0; }
.header-search .search-form { margin: 0; }
.header-ad,
.footer-ad { padding-top: 14px; padding-bottom: 14px; }

.search-form {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.search-form label { flex: 1; }
.search-field,
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="password"],
textarea,
select {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border-strong);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  padding: 14px 16px;
  outline: none;
}
.search-field::placeholder,
textarea::placeholder,
input::placeholder { color: var(--soft); }
.search-field:focus,
input:focus,
textarea:focus,
select:focus {
  border-color: rgba(132,204,22,0.55);
  box-shadow: 0 0 0 3px rgba(132,204,22,0.14);
}
textarea { min-height: 180px; resize: vertical; }

.button,
button,
input[type="submit"],
.search-submit,
.wp-block-button__link,
.more-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green) 0%, var(--gold) 100%);
  color: #101827;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
  box-shadow: 0 14px 28px rgba(132,204,22,0.18);
}
.button:hover,
button:hover,
input[type="submit"]:hover,
.search-submit:hover,
.wp-block-button__link:hover,
.more-link:hover {
  transform: translateY(-1px);
  color: #101827;
}
.button-secondary {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}
.button-secondary:hover { color: var(--text); background: rgba(255,255,255,0.09); }

.content-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 28px;
  align-items: start;
}
.content-column,
.sidebar-column,
.page-layout { min-width: 0; }

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
  gap: 24px;
  padding: 32px;
  background:
    radial-gradient(circle at top right, rgba(250,204,21,0.14), transparent 30%),
    radial-gradient(circle at left center, rgba(132,204,22,0.10), transparent 28%),
    var(--panel);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(132,204,22,0.12);
  border: 1px solid rgba(132,204,22,0.22);
  color: #d9f99d;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero-section h1 {
  margin: 0 0 14px;
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.hero-text { margin: 0 0 20px; color: var(--muted); font-size: 1.05rem; max-width: 60ch; }
.hero-points {
  display: grid;
  gap: 14px;
  align-content: start;
}
.info-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px;
}
.info-card strong { display: block; margin-bottom: 6px; font-size: 1rem; }
.info-card span { color: var(--muted); font-size: .95rem; }

.home-promo-grid,
.post-grid {
  display: grid;
  grid-template-columns: repeat( auto-fit, minmax(260px, 1fr) );
  gap: 22px;
}
.latest-posts-section { margin-top: 34px; }
.section-heading { margin-bottom: 18px; }
.section-heading h2,
.archive-title,
.comments-title,
.comment-reply-title,
.widget-title {
  margin: 0 0 8px;
  line-height: 1.1;
}
.section-heading p,
.archive-description { margin: 0; color: var(--muted); }
.archive-header,
.not-found,
.page-card,
.single-post-card,
.comments-area,
.widget,
.no-results { padding: 26px; }

.post-card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.post-thumbnail img {
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
}
.post-card-content { padding: 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.post-title { margin: 0; font-size: 1.32rem; line-height: 1.2; }
.post-title a { color: var(--text); }
.post-excerpt { margin: 0; color: var(--muted); }
.entry-meta,
.post-card .entry-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: .92rem;
  color: var(--soft);
}
.entry-title { margin: 0 0 16px; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.03; }
.featured-media { margin-bottom: 22px; }
.featured-media img,
.entry-content img,
.wp-post-image { border-radius: 18px; }
.entry-content, .entry-content > *, .post-card-content, .section-heading, .footer-brand, .widget, .comment-body, .hero-copy, .hero-points, .info-card { min-width: 0; }
.entry-content iframe, .entry-content video, .entry-content embed, .entry-content object, .wp-block-embed iframe { max-width: 100%; }
.entry-content table { display: block; overflow-x: auto; white-space: nowrap; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content blockquote,
.entry-content table,
.entry-content .wp-block-image,
.entry-content .wp-block-gallery { margin: 0 0 1.2em; }
.entry-content h2,
.entry-content h3,
.entry-content h4 { margin: 1.4em 0 .6em; line-height: 1.18; }
.entry-content blockquote {
  margin-left: 0;
  padding: 16px 18px;
  border-left: 4px solid var(--green);
  background: rgba(255,255,255,0.04);
  border-radius: 0 16px 16px 0;
  color: var(--muted);
}
.entry-content code,
.entry-content pre {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.entry-content pre { padding: 16px; overflow: auto; }
.entry-footer,
.post-navigation,
.posts-navigation,
.comments-area { margin-top: 24px; }
.post-navigation .nav-links,
.posts-navigation .nav-links {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}
.post-navigation a,
.posts-navigation a,
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text);
}
.current.page-numbers {
  background: linear-gradient(135deg, var(--green), var(--gold));
  color: #101827;
  border: 0;
}

.widget { margin-bottom: 20px; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li + li { margin-top: 10px; }
.widget a { color: var(--muted); }
.widget a:hover { color: var(--text); }

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.comment-list li { list-style: none; margin-bottom: 16px; }
.comment-body {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
}
.comment-meta,
.comment-metadata,
.comment-notes,
.logged-in-as { color: var(--soft); font-size: .92rem; }
.comment-content p { margin: .9em 0 0; }
.comment-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.comment-form p { margin: 0; }
.comment-form-comment,
.comment-form-cookies-consent,
.form-submit { grid-column: 1 / -1; }
label { display: block; margin-bottom: 8px; font-weight: 700; }

.footer-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(0, 1.6fr);
  gap: 28px;
  padding-top: 28px;
  padding-bottom: 12px;
  border-top: 1px solid var(--border);
}
.footer-title { margin: 0 0 10px; font-size: 1.2rem; font-weight: 800; }
.footer-brand p:last-child { margin: 0; color: var(--muted); }
.footer-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}
.footer-widget {
  padding: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 18px;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 12px;
  padding-bottom: 30px;
  flex-wrap: wrap;
}
.footer-menu {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
.copyright { margin: 0; color: var(--soft); }

table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 10px; border-bottom: 1px solid var(--border); text-align: left; }

@media (max-width: 1080px) {
  .content-grid {
  min-width: 0;
    grid-template-columns: 1fr;
  }
  .sidebar-column { order: 2; }
  .hero-section {
    grid-template-columns: 1fr;
  }
  .header-search { width: min(280px, 100%); }
}

@media (max-width: 820px) {
  .container { width: min(calc(100% - 28px), var(--content-width)); }
  .menu-toggle { display: inline-block; }
  .primary-nav {
    display: none;
    border-top: 1px solid var(--border);
  }
  .primary-nav.is-open { display: block; }
  .nav-inner {
    flex-direction: column;
    align-items: stretch;
    padding-block: 14px 18px;
  }
  .primary-nav ul {
  min-width: 0; flex-direction: column; align-items: stretch; gap: 8px; }
  .primary-nav a { width: 100%; justify-content: flex-start; }
  .header-search { width: 100%; }
  .hero-section,
  .archive-header,
  .not-found,
  .page-card,
  .single-post-card,
  .comments-area,
  .widget,
  .no-results { padding: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .container { width: min(calc(100% - 20px), var(--content-width)); }
  .site-content { padding-top: 18px; }
  .header-top { padding-block: 12px; }
  .site-branding {
  flex: 1 1 auto; align-items: flex-start; }
  .site-description { font-size: .92rem; }
  .hero-section,
  .archive-header,
  .not-found,
  .page-card,
  .single-post-card,
  .comments-area,
  .widget,
  .no-results { padding: 18px; border-radius: 20px; }
  .hero-text,
  .post-excerpt,
  .entry-content,
  .entry-content p { font-size: 1rem; }
  .search-form,
  .comment-form { grid-template-columns: 1fr; display: grid; }
  .search-form { gap: 10px; }
  .search-submit,
  .button,
  .button-secondary,
  .wp-block-button__link,
  button,
  input[type="submit"] { width: 100%; }
  .post-navigation .nav-links,
  .posts-navigation .nav-links,
  .footer-bottom { flex-direction: column; align-items: stretch; }
  .footer-menu { flex-direction: column; }
}


.site-branding-text { min-width: 0; }
.site-title a, .site-description { overflow-wrap: anywhere; }
.primary-menu,
.primary-menu ul { list-style: none; margin: 0; padding: 0; }
.primary-menu .page_item.current_page_item > a,
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a {
  background: rgba(255,255,255,0.06);
  color: var(--text);
}
.primary-menu .children,
.primary-menu .sub-menu {
  display: none;
}
.header-top,
.nav-inner,
.footer-bottom,
.footer-widgets,
.comment-form,
.post-navigation .nav-links,
.posts-navigation .nav-links { min-width: 0; }
.hero-copy { min-width: 0; }
.hero-points { min-width: 0; }
.site-main > * + * { margin-top: 0; }
.search-form label { min-width: 0; }
.widget, .footer-widget, .info-card, .post-card-content, .single-post-card, .page-card, .archive-header, .comments-area, .not-found, .no-results {
  overflow-wrap: anywhere;
}
@media (max-width: 820px) {
  .site-content.container {
    width: min(calc(100% - 28px), var(--content-width));
  }
  .site-header {
    position: sticky;
  }
  .header-top {
    align-items: center;
  }
  .site-logo img,
  .custom-logo {
    max-height: 56px;
  }
  .site-title {
    font-size: 1.35rem;
  }
  .primary-nav {
    background: rgba(9, 17, 29, 0.98);
  }
  .nav-inner {
    gap: 14px;
  }
  .primary-nav a {
    min-height: 46px;
    border-radius: 16px;
  }
}
@media (max-width: 600px) {
  html, body {
    overflow-x: hidden;
  }
  .site, #page {
    overflow-x: hidden;
  }
  .site-content.container {
    width: min(calc(100% - 20px), var(--content-width));
  }
  .header-top {
    gap: 12px;
  }
  .site-branding {
    gap: 12px;
  }
  .site-logo img,
  .custom-logo {
    max-height: 48px;
  }
  .hero-section {
    gap: 18px;
  }
  .hero-section h1 {
    font-size: clamp(1.9rem, 10vw, 2.8rem);
  }
  .info-card {
    padding: 16px;
  }
}
