﻿:root {
  --page-bg: #f2f2f2;
  --surface: #ffffff;
  --surface-border: #d6d6d6;
  --text: #232323;
  --muted: #666666;
  --link: #005a9c;
  --link-hover: #003f6d;
  --header-bg: #1b1b1b;
  --header-text: #f7f7f7;
  --shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #f8f8f8 0%, var(--page-bg) 100%);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.7;
}

a {
  color: var(--link);
}

a:hover,
a:focus-visible {
  color: var(--link-hover);
}

img,
object,
iframe {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  padding: 0.75rem 1rem;
  background: #000;
  color: #fff;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  padding: 1.5rem 5vw;
  background: var(--header-bg);
  color: var(--header-text);
}

.site-brand a {
  color: inherit;
  text-decoration: none;
  font-size: 1.8rem;
  font-weight: 700;
}

.site-brand p {
  margin: 0.35rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.98rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.site-nav a {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

.site-nav a.is-active,
.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.page-shell {
  width: min(980px, calc(100% - 1.5rem));
  margin: 1.5rem auto 3rem;
}

.page-content {
  padding: clamp(1.25rem, 3vw, 2.5rem);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow);
}

.page-content > :first-child {
  margin-top: 0;
}

.page-content p,
.page-content li {
  font-size: 1.05rem;
}

.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4 {
  line-height: 1.2;
  margin-top: 2.2rem;
  margin-bottom: 0.8rem;
}

.page-content h2,
.page-content h3,
.page-content h4 {
  color: #111;
}

.page-content figure,
.wp-block-image,
.wp-block-group {
  margin: 1.5rem 0;
}

.page-content .aligncenter,
.page-content figure.aligncenter,
.page-content .wp-block-image {
  text-align: center;
}

.page-content img {
  height: auto;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid #cfcfcf;
}

.page-content .wp-block-image img,
.page-content figure img {
  max-width: min(100%, 680px);
}

body.page-cyber-security .page-content .wp-block-image img,
body.page-cyber-security .page-content figure img {
  max-width: min(100%, 520px);
}

body.page-games .page-content .wp-block-image img,
body.page-games .page-content figure img {
  max-width: min(100%, 760px);
}

.video-embed {
  margin: 1.5rem auto;
}

.video-embed iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.pdf-embed {
  margin: 1.5rem 0;
}

.pdf-embed object {
  width: 100%;
  min-height: 75vh;
  border: 1px solid var(--surface-border);
}

.external-embed {
  margin: 1.5rem 0;
  padding: 1rem;
  background: #f8fafc;
  border-left: 4px solid #b9c5d0;
}

.site-footer {
  width: min(980px, calc(100% - 1.5rem));
  margin: 0 auto 2rem;
  color: var(--muted);
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 0.98rem;
  }

  .page-shell {
    width: min(100% - 0.75rem, 980px);
    margin-top: 0.75rem;
  }

  .page-content {
    padding: 1rem;
  }
}


