:root {
  --blue: #1e73be;
  --blue-dark: #00408b;
  --bg: #e8e8e8;
  --surface: #ffffff;
  --text: #222222;
  --muted: #555555;
  --accent: #c8102e;
  --radius: 2px;
  --font: "Source Sans 3", "Segoe UI", sans-serif;
  --display: "Oswald", "Arial Narrow", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    linear-gradient(180deg, #d5d5d5 0%, var(--bg) 180px),
    var(--bg);
  line-height: 1.55;
}

a {
  color: var(--blue-dark);
  text-decoration: none;
}

a:hover {
  color: var(--blue);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

.wrap {
  width: min(1140px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-top {
  background: var(--blue-dark);
  color: #fff;
}

.top-bar {
  padding: 0.35rem 0;
}

.nav-secondary .menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.85rem;
  list-style: none;
  margin: 0;
  padding: 0.35rem 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.nav-secondary a,
.nav-secondary .menu-label {
  color: #e8f1fb;
}

.nav-secondary a:hover {
  color: #fff;
}

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

.has-children {
  position: relative;
}

.has-children > .sub-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 220px;
  background: #fff;
  color: var(--text);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  z-index: 40;
  padding: 0.4rem 0;
}

.has-children:hover > .sub-menu,
.has-children:focus-within > .sub-menu {
  display: block;
}

.sub-menu li a,
.sub-menu .menu-label {
  display: block;
  padding: 0.45rem 0.9rem;
  color: var(--text);
  text-transform: none;
  font-size: 0.9rem;
}

.sub-menu li a:hover {
  background: #eef5fc;
  color: var(--blue-dark);
  text-decoration: none;
}

.brand-hero {
  background:
    linear-gradient(90deg, rgba(0, 64, 139, 0.88), rgba(30, 115, 190, 0.55)),
    url("/assets/img/header.jpg") center / cover no-repeat;
  border-bottom: 4px solid var(--accent);
}

.brand-inner {
  display: flex;
  align-items: center;
  min-height: 132px;
  padding: 1.1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #fff;
  text-decoration: none;
}

.brand:hover {
  color: #fff;
  text-decoration: none;
}

.brand img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.85);
  background: #fff;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.brand-name {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-transform: uppercase;
}

.brand-tag {
  font-size: 0.98rem;
  opacity: 0.95;
}

.nav-primary {
  background: var(--blue);
  position: sticky;
  top: 0;
  z-index: 30;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.08);
}

.nav-primary .wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 48px;
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: transparent;
  color: #fff;
  font-family: var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
}

.menu-primary {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  width: 100%;
}

.menu-primary > li > a {
  display: block;
  color: #fff;
  padding: 0.85rem 0.75rem;
  font-family: var(--display);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}

.menu-primary > li > a:hover,
.menu-primary > li.is-active > a {
  background: var(--blue-dark);
  text-decoration: none;
}

.menu-primary .sub-menu {
  background: #fff;
}

.site-main {
  padding: 1.5rem 0 2.5rem;
}

.layout-with-sidebar {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.layout-with-sidebar > .content-col {
  flex: 1 1 0;
  min-width: 0;
}

.layout-with-sidebar > .sidebar-col {
  flex: 0 0 300px;
}

.panel {
  background: var(--surface);
  padding: 1.15rem 1.25rem;
  margin-bottom: 1rem;
  border-top: 3px solid var(--blue);
}

.panel h2,
.panel h3,
.panel h4,
.page-header h1 {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--blue-dark);
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.page-header {
  margin-bottom: 1rem;
}

.card-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.news-card {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #e5e5e5;
}

.news-card:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.news-card img {
  width: 120px;
  flex: 0 0 120px;
  object-fit: cover;
  aspect-ratio: 16 / 10;
  background: #eee;
}

.news-card h3 {
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font);
  font-weight: 700;
}

.news-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.home-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.home-grid .panel {
  flex: 1 1 320px;
}

.featured-hero .news-card {
  flex-direction: column;
}

.featured-hero .news-card img {
  width: 100%;
  flex: none;
  aspect-ratio: 21 / 9;
}

.sidebar-card {
  background: var(--surface);
  padding: 0.9rem 1rem;
  margin-bottom: 0.85rem;
  border-left: 4px solid var(--blue);
}

.sidebar-card h3 {
  font-family: var(--display);
  font-size: 0.95rem;
  text-transform: uppercase;
  margin: 0 0 0.55rem;
  color: var(--blue-dark);
}

.sidebar-card img {
  display: block;
  width: 100%;
}

.romlicontainer,
.page-body {
  background: var(--surface);
  padding: 1.25rem 1.35rem 1.6rem;
}

.romlicontainer img,
.page-body img {
  max-width: 100%;
  height: auto;
}

.more-link {
  font-weight: 600;
}

.site-footer {
  background: #1a1a1a;
  color: #ddd;
  padding: 2rem 0 2.4rem;
  margin-top: 1rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
}

.footer-brand,
.footer-social,
.footer-meta {
  flex: 1 1 220px;
}

.site-footer a {
  color: #cfe4f8;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0 0.8rem;
}

.blog-container {
  background: var(--surface);
  padding: 1.25rem;
}

.blog-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.blog-card {
  flex: 1 1 260px;
  border-top: 3px solid var(--blue);
  background: #f7fafc;
  padding: 1rem;
}

@media (max-width: 900px) {
  .layout-with-sidebar {
    flex-direction: column;
  }

  .layout-with-sidebar > .sidebar-col {
    flex: 1 1 auto;
    width: 100%;
  }

  .nav-toggle {
    display: inline-block;
    margin: 0.55rem 0;
  }

  .menu-primary {
    display: none;
    flex-direction: column;
    background: var(--blue-dark);
    margin-bottom: 0.5rem;
  }

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

  .has-children > .sub-menu {
    position: static;
    box-shadow: none;
    display: none;
    background: rgba(0, 0, 0, 0.15);
  }

  .has-children:hover > .sub-menu,
  .has-children:focus-within > .sub-menu,
  .menu-primary.is-open .has-children > .sub-menu {
    display: block;
  }

  .nav-secondary .menu {
    font-size: 0.7rem;
  }

  .news-card {
    flex-direction: column;
  }

  .news-card img {
    width: 100%;
    flex: none;
  }
}
