:root {
  --bg: #08183f;
  --bg-soft: #182a57;
  --bg-alt: #24345c;
  --card: #1e2d55;
  --text: #f5f7fb;
  --muted: #9ba8c7;
  --gold: #f0c20f;
  --tcnh-header-bg: #08163c;
  --line: rgba(230, 184, 14, 0.25);
  --tcnh-base-font-size: 17px;
  --tcnh-nav-font-size: 18px;
  --tcnh-h1-max-size: 92px;
  --tcnh-h2-max-size: 64px;
  --tcnh-logo-size: 44px;
  --tcnh-container-width: 1280px;
  --tcnh-header-height: 80px;
  --tcnh-card-radius: 20px;
  --tcnh-button-radius: 999px;
  --tcnh-body-font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --tcnh-heading-font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--tcnh-body-font-family);
  font-size: var(--tcnh-base-font-size);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  isolation: isolate;
}

.container {
  width: min(var(--tcnh-container-width), 92vw);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 9999;
  background: #ffffff;
  color: #08163c;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
}

.skip-link:focus {
  top: 10px;
}

.skip-link:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.site-main {
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.site-nav-overlay {
  display: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: var(--tcnh-header-bg);
  border-bottom: 1px solid rgba(230, 184, 14, 0.2);
  backdrop-filter: none;
}

.admin-bar .site-header {
  top: 32px;
}

.site-header-inner {
  min-height: var(--tcnh-header-height);
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.brand-badge {
  width: var(--tcnh-logo-size);
  height: var(--tcnh-logo-size);
  border-radius: 999px;
  background: var(--gold);
  color: #101826;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.brand-text {
  font-size: clamp(1.25rem, 2vw, 2rem);
  line-height: 1.1;
}

.brand-logo {
  display: inline-flex;
}

.brand-logo .custom-logo-link {
  display: inline-flex;
}

.brand-logo img,
.custom-logo {
  width: var(--tcnh-logo-size);
  height: var(--tcnh-logo-size);
  border-radius: 999px;
  object-fit: cover;
}

.site-nav {
  margin-left: auto;
  position: relative;
  z-index: 2;
}

.site-nav-list {
  list-style: none;
  display: flex;
  gap: clamp(12px, 1.3vw, 24px);
  margin: 0;
  padding: 0;
  align-items: center;
}

.site-nav-item {
  position: relative;
}

.site-nav-link {
  color: #d1d7e6;
  font-weight: 600;
  font-size: clamp(0.88rem, 0.9vw, var(--tcnh-nav-font-size));
  line-height: 1.2;
  font-family: var(--tcnh-heading-font-family);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  white-space: nowrap;
}

.site-nav-link:hover {
  color: #fff;
}

.current-menu-item > .site-nav-link,
.current-menu-ancestor > .site-nav-link,
.current-page-ancestor > .site-nav-link {
  color: #fff;
}

.menu-item-has-children > .site-nav-link::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #99a7c7;
  margin-top: 2px;
}

.site-sub-menu {
  list-style: none;
  margin: 0;
  padding: 10px 0;
  position: absolute;
  top: 100%;
  left: -14px;
  min-width: 220px;
  background: #0a1a45;
  border: 1px solid rgba(230, 184, 14, 0.25);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.26);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 60;
}

.site-sub-menu .site-nav-item {
  width: 100%;
}

.site-sub-menu .site-nav-link {
  width: 100%;
  padding: 10px 16px;
  white-space: normal;
}

.site-sub-menu .site-nav-link:hover {
  background: rgba(230, 184, 14, 0.12);
}

.site-nav-item:hover > .site-sub-menu,
.site-nav-item:focus-within > .site-sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.site-sub-menu .site-sub-menu {
  left: calc(100% + 8px);
  top: -10px;
}

.submenu-toggle {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--tcnh-button-radius);
  padding: 14px 28px;
  font-weight: 700;
  font-family: var(--tcnh-heading-font-family);
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

h1,
h2,
h3,
h4,
.brand-text {
  font-family: var(--tcnh-heading-font-family);
}

.btn-gold {
  background: var(--gold);
  color: #101826;
}

.btn-gold:hover {
  filter: brightness(1.06);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.8);
  color: #fff;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 0;
  width: 42px;
  height: 42px;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 6px 0;
  background: #fff;
}

.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  background-image:
    radial-gradient(circle at 14% 12%, rgba(33, 56, 112, 0.42) 0, rgba(7, 20, 58, 0) 34%),
    linear-gradient(rgba(8, 19, 52, 0.92), rgba(8, 19, 52, 0.92));
}

.hero.has-hero-image {
  background-image: linear-gradient(rgba(8, 19, 52, 0.82), rgba(8, 19, 52, 0.82)), var(--tcnh-hero-image);
  background-size: cover;
  background-position: center;
}

.hero-content {
  padding: 72px 0;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 42px;
}

.pill {
  display: inline-flex;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--gold);
  font-weight: 600;
}

.hero-copy h1 {
  font-size: clamp(2.8rem, 6vw, var(--tcnh-h1-max-size));
  line-height: 1.02;
  margin: 18px 0;
}

.hero-copy h1 span {
  color: var(--gold);
}

.hero-copy p {
  color: #cad2e5;
  font-size: clamp(1.12rem, 2vw, 1.9rem);
  max-width: 640px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 20px;
  align-self: center;
}

.stat-card {
  background: rgba(26, 40, 75, 0.9);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  min-height: 140px;
}

.stat-card strong {
  display: block;
  color: var(--gold);
  font-size: clamp(2rem, 3.5vw, 3.6rem);
  line-height: 1;
  margin-bottom: 12px;
}

.stat-card span {
  color: #d8deec;
  font-size: clamp(1rem, 2.2vw, 1.75rem);
}

.section {
  padding: clamp(56px, 8vw, 108px) 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-cta {
  background: linear-gradient(180deg, #10214a, #0b1739);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 28px;
  gap: 20px;
}

.section-head.center {
  justify-content: center;
  text-align: center;
}

h2 {
  font-size: clamp(2rem, 4.8vw, var(--tcnh-h2-max-size));
  margin: 0 0 10px;
}

.section-head p,
.section p {
  color: var(--muted);
  margin: 0;
  font-size: clamp(1rem, 1.2vw, 1.35rem);
}

.section-link {
  color: var(--gold);
  font-weight: 700;
}

.welcome-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.welcome-card {
  background: var(--card);
  border: 1px solid rgba(111, 130, 172, 0.35);
  border-radius: var(--tcnh-card-radius);
  padding: 24px;
}

.welcome-card p {
  margin: 0;
  color: #d5dcee;
  font-size: clamp(1rem, 1.15vw, 1.15rem);
  line-height: 1.6;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.event-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  padding: 22px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid rgba(111, 130, 172, 0.35);
}

.event-date {
  width: 78px;
  height: 92px;
  border-radius: 14px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
}

.event-date strong {
  color: var(--gold);
  font-size: 2.2rem;
  line-height: 1;
}

.event-date span {
  color: #b8c1d8;
  font-size: 0.88rem;
}

.event-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.event-top h3 {
  margin: 0;
  font-size: clamp(1.3rem, 2.2vw, 2rem);
}

.event-content ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 14px;
  color: #aeb8ce;
}

.event-content li {
  margin-bottom: 6px;
  font-size: clamp(0.95rem, 1.5vw, 1.2rem);
}

.event-content a,
.news-body a {
  color: var(--gold);
  font-weight: 700;
}

.event-empty {
  grid-column: 1 / -1;
}

.event-empty h3 {
  margin: 0 0 10px;
}

.tag {
  display: inline-flex;
  font-size: 0.82rem;
  color: #111a2c;
  background: rgba(230, 184, 14, 0.85);
  padding: 6px 12px;
  border-radius: 999px;
}

.tag.blue {
  background: rgba(64, 133, 255, 0.85);
  color: #e8f0ff;
}

.news-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 26px;
}

.news-card {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(111, 130, 172, 0.35);
  background: var(--card);
}

.news-image {
  min-height: 230px;
  background-size: cover;
  background-position: center;
}

.news-image img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
  display: block;
}

.image-fallback {
  background-image: linear-gradient(rgba(11, 20, 45, 0.24), rgba(11, 20, 45, 0.7)), url("../images/news-1.png");
}

.news-body {
  padding: 22px;
}

.news-body small {
  display: block;
  color: var(--muted);
  margin-top: 12px;
}

.news-body h3 {
  margin: 12px 0;
  font-size: clamp(1.4rem, 2.8vw, 2.6rem);
}

.cards-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(var(--tcnh-sponsor-columns, 4), minmax(0, 1fr));
  gap: 18px;
}

.sponsor-card {
  background: rgba(20, 35, 70, 0.66);
  border: 1px solid rgba(111, 130, 172, 0.35);
  border-radius: var(--tcnh-card-radius);
  min-height: 118px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.sponsor-card:hover {
  border-color: rgba(240, 194, 15, 0.62);
  background: rgba(26, 44, 84, 0.88);
  transform: translateY(-2px);
}

.sponsor-card a {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sponsor-card img {
  max-width: 100%;
  max-height: 74px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: saturate(0.98);
}

.info-card {
  border-radius: 18px;
  background: var(--card);
  border: 1px solid rgba(111, 130, 172, 0.35);
  padding: 28px;
}

.cards-with-icon .info-card {
  display: grid;
  align-content: start;
  gap: 10px;
}

.info-icon {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(230, 184, 14, 0.08);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.12rem;
}

.info-card h3 {
  margin: 0 0 12px;
  font-size: clamp(1.3rem, 2.2vw, 2rem);
}

.trainer-box {
  margin-top: 28px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid rgba(111, 130, 172, 0.35);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

.trainer-box > div:first-child {
  padding: 30px;
}

.trainer-box h3 {
  margin-top: 0;
  font-size: clamp(1.7rem, 3vw, 3rem);
}

.trainer-box ul {
  margin: 16px 0 0;
  padding-left: 18px;
}

.trainer-points {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.trainer-points li {
  position: relative;
  padding-left: 18px;
  color: #d2d9ea;
}

.trainer-points li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--gold);
  position: absolute;
  left: 0;
  top: 0.62em;
  transform: translateY(-50%);
}

.trainer-box li {
  margin-bottom: 8px;
}

.trainer-image {
  min-height: 340px;
  background-image: url("../images/trainer.png");
  background-position: center;
  background-size: cover;
}

.cta-wrap {
  text-align: center;
}

.footer-contactband {
  background: var(--gold);
  color: #091733;
  padding: 42px 0;
}

.footer-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.contact-item {
  display: flex;
  gap: 16px;
}

.contact-icon {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: #07143a;
  color: var(--gold);
  display: grid;
  place-items: center;
  font-weight: 800;
}

.contact-item h4 {
  margin: 0 0 8px;
  font-size: 2rem;
}

.contact-item p {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.45;
}

.contact-item a {
  color: #091733;
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}

.footer-main {
  background: #020c2a;
  padding: 56px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
}

.footer-brand {
  margin-bottom: 16px;
}

.footer-main h4 {
  color: var(--gold);
  margin: 8px 0 16px;
  font-size: 1.55rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a,
.footer-main p {
  color: #a7b2cb;
  font-size: 1.15rem;
  line-height: 1.55;
}

.socials {
  display: flex;
  gap: 12px;
}

.socials a {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: #172545;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.footer-legal {
  border-top: 1px solid rgba(150, 161, 188, 0.25);
  margin-top: 28px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-legal p,
.footer-legal a {
  color: #8f9bb8;
  font-size: 1rem;
}

.footer-legal div {
  display: flex;
  gap: 20px;
}

.post-list {
  display: grid;
  gap: 16px;
}

.post-card {
  padding: 20px;
  border-radius: 14px;
  border: 1px solid rgba(111, 130, 172, 0.35);
  background: var(--card);
}

.page-content {
  background: var(--card);
  border: 1px solid rgba(111, 130, 172, 0.35);
  border-radius: 18px;
  padding: 32px;
  max-width: min(100%, 1100px);
}

.page-layout {
  display: grid;
  gap: 24px;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
}

.content-card {
  max-width: 100%;
}

.page-content p,
.page-content li {
  color: #cfd8eb;
  line-height: 1.75;
  max-width: 72ch;
}

.page-content h2,
.page-content h3,
.page-content h4 {
  margin-top: 1.2em;
  margin-bottom: 0.5em;
  max-width: 22ch;
}

.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.page-content p,
.page-content ul,
.page-content ol,
.page-content blockquote {
  margin-left: auto;
  margin-right: auto;
}

.page-content img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}

.page-content .wp-block-columns,
.page-content .wp-block-gallery {
  max-width: none;
}

.page-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.page-highlight-card {
  padding: 22px;
  border-radius: 16px;
  background: rgba(22, 38, 72, 0.92);
  border: 1px solid rgba(111, 130, 172, 0.35);
}

.page-highlight-card p {
  margin: 0;
  max-width: none;
}

.page-related h2 {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  margin: 0 0 14px;
}

.related-grid .info-card {
  height: 100%;
}

a:focus-visible,
button:focus-visible,
.site-nav-link:focus-visible,
.btn:focus-visible,
.section-link:focus-visible {
  outline: 3px solid rgba(240, 194, 15, 0.85);
  outline-offset: 2px;
  border-radius: 8px;
}

@media (max-width: 1024px) {
  .header-cta {
    display: none;
  }

  .site-nav {
    display: none;
    position: absolute;
    inset: 76px 0 auto;
    background: #08153a;
    border-bottom: 1px solid rgba(230, 184, 14, 0.2);
    max-height: calc(100vh - 76px);
    overflow-y: auto;
    z-index: 130;
  }

  .site-nav.open {
    display: block;
  }

  .site-nav-list {
    flex-direction: column;
    gap: 0;
    padding: 12px 4vw 20px;
    align-items: stretch;
  }

  .site-nav-link {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid rgba(145, 160, 190, 0.2);
    white-space: normal;
  }

  .menu-item-has-children > .site-nav-link::after {
    content: none;
  }

  .site-nav-item.menu-item-has-children {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 8px;
  }

  .site-nav-item.menu-item-has-children > .site-nav-link {
    border-bottom: 1px solid rgba(145, 160, 190, 0.2);
  }

  .submenu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #d1d7e6;
    font-size: 0.92rem;
    cursor: pointer;
  }

  .site-nav-item.submenu-open > .submenu-toggle {
    background: rgba(230, 184, 14, 0.2);
    color: #fff;
  }

  .site-sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    border: 0;
    border-left: 1px solid rgba(230, 184, 14, 0.3);
    border-radius: 0;
    min-width: 0;
    margin: 0 0 10px 10px;
    padding: 4px 0;
    background: transparent;
    display: none;
    grid-column: 1 / -1;
  }

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

  .site-sub-menu .site-nav-link {
    padding: 10px 0 10px 12px;
    font-size: 0.95rem;
  }

  .site-sub-menu .site-nav-link:hover {
    background: transparent;
  }

  .menu-toggle {
    display: block;
    z-index: 131;
    position: relative;
  }

  .site-nav-overlay {
    display: block;
    position: fixed;
    inset: var(--tcnh-header-height) 0 0;
    background: rgba(5, 12, 30, 0.56);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 110;
  }

  .site-nav-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
  }

  body.menu-open {
    overflow: hidden;
  }

  .admin-bar .site-nav-overlay {
    inset: calc(var(--tcnh-header-height) + 32px) 0 0;
  }

  .hero-content,
  .news-grid,
  .trainer-box,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .events-grid,
  .cards-4,
  .footer-contact-grid,
  .welcome-grid,
  .sponsor-grid,
  .page-highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding: 52px 0;
  }

  .hero-copy p {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .admin-bar .site-header {
    top: 46px;
  }

  .admin-bar .site-nav-overlay {
    inset: calc(var(--tcnh-header-height) + 46px) 0 0;
  }

  .brand-text {
    font-size: 1.18rem;
  }

  .events-grid,
  .cards-4,
  .footer-contact-grid,
  .welcome-grid,
  .sponsor-grid,
  .page-highlights {
    grid-template-columns: 1fr;
  }

  .event-card {
    grid-template-columns: 1fr;
  }

  .event-date {
    width: 100%;
    height: auto;
    padding: 10px;
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: baseline;
  }

  .btn {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-item h4 {
    font-size: 1.45rem;
  }

  .contact-item p,
  .footer-links a,
  .footer-main p {
    font-size: 1rem;
  }

  .trainer-image {
    min-height: 220px;
  }
}

@media (max-width: 1320px) {
  .header-cta {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
