/* The Untold Story Begins — site shell */
:root {
  --red: #df1f2d;
  --red-deep: #b11313;
  --navy: #2b3784;
  --blue: #447bbe;
  --ink: #1a1a1a;
  --muted: #5a5a5a;
  --paper: #f7f7f7;
  --line: #e2e2e2;
  --white: #ffffff;
  --max: 1100px;
  --font-display: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", Tahoma, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(43, 55, 132, 0.08), transparent 280px),
    url("/assets/img/hero-bg.jpg") left top / 720px auto repeat,
    var(--paper);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

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

.site-header {
  background: rgba(20, 20, 28, 0.92);
  border-bottom: 3px solid var(--red);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(6px);
}

.header-inner,
.nav-inner,
.site-main,
.footer-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--white);
}

.brand:hover {
  text-decoration: none;
  color: var(--white);
}

.brand img {
  height: 48px;
  width: auto;
  display: block;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: var(--white);
}

.brand-text span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: #ffb4b8;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
}

.site-nav {
  background: #111118;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 48px;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.15rem;
  align-items: center;
}

.nav-list > li {
  position: relative;
}

.nav-list a {
  display: block;
  padding: 0.7rem 0.85rem;
  color: #f0f0f0;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: #fff;
  border-bottom-color: var(--red);
  background: rgba(223, 31, 45, 0.12);
  text-decoration: none;
}

.nav-list .has-sub > a::after {
  content: "";
  display: inline-block;
  margin-left: 0.4rem;
  border: 4px solid transparent;
  border-top-color: currentColor;
  vertical-align: middle;
}

.submenu {
  list-style: none;
  margin: 0;
  padding: 0.4rem 0;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 200px;
  background: #1c1c26;
  border: 1px solid #2e2e3a;
  border-top: 2px solid var(--red);
  display: none;
  z-index: 50;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.has-sub:hover > .submenu,
.has-sub:focus-within > .submenu {
  display: block;
  animation: drop 0.18s ease;
}

.submenu a {
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
  border-bottom: none;
  white-space: nowrap;
}

.submenu a:hover {
  background: rgba(223, 31, 45, 0.2);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid #444;
  color: #fff;
  padding: 0.45rem 0.7rem;
  font: inherit;
  cursor: pointer;
}

.site-main {
  flex: 1;
  padding: 1.75rem 0 3rem;
}

.page-header {
  margin: 0 0 1.25rem;
}

.page-header h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.03em;
  color: var(--navy);
  line-height: 1.15;
}

.hero {
  position: relative;
  margin: -1.75rem calc(50% - 50vw) 2rem;
  width: 100vw;
  min-height: min(72vh, 620px);
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(120deg, rgba(10, 10, 18, 0.82), rgba(43, 55, 132, 0.45) 55%, rgba(223, 31, 45, 0.35)),
    url("/assets/img/hero-bg.jpg") center / cover no-repeat;
  color: var(--white);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 80px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.45));
  pointer-events: none;
}

.hero-inner {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto 3.5rem;
  position: relative;
  z-index: 1;
  animation: rise 0.7s ease both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #ffc9cc;
  margin: 0 0 0.6rem;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

.hero p {
  margin: 0 0 1.25rem;
  max-width: 36rem;
  font-size: 1.05rem;
  color: #f0f0f0;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  border-radius: 2px;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--red);
  color: #fff;
}

.btn-primary:hover {
  background: var(--red-deep);
  color: #fff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.content-panel {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  padding: 1.5rem 1.6rem;
  box-shadow: 0 10px 30px rgba(20, 20, 40, 0.06);
}

.content-panel h2,
.content-panel h3 {
  font-family: var(--font-display);
  letter-spacing: 0.03em;
  color: var(--navy);
  margin: 1.5rem 0 0.6rem;
  line-height: 1.2;
}

.content-panel h2:first-child,
.content-panel h3:first-child {
  margin-top: 0;
}

.content-split {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-start;
}

.content-split .text {
  flex: 1 1 320px;
}

.content-split .media {
  flex: 0 1 320px;
}

.content-split .media img {
  display: block;
  width: 100%;
  border: 3px solid var(--red);
  animation: fade-in 0.8s ease both 0.15s;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--navy);
  letter-spacing: 0.04em;
  margin: 2rem 0 0.75rem;
  text-align: center;
}

.site-footer {
  background: #111118;
  color: #d8d8d8;
  border-top: 3px solid var(--red);
  padding: 2rem 0 1.5rem;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
}

.footer-links a {
  color: #fff;
  font-weight: 600;
}

.footer-meta {
  font-size: 0.92rem;
  color: #a8a8a8;
}

.footer-meta a {
  color: #ddd;
}

.social a {
  display: inline-block;
  padding: 0.35rem 0.6rem;
  border: 1px solid #3a3a48;
  color: #fff;
  margin-right: 0.4rem;
}

.social a:hover {
  border-color: var(--red);
  text-decoration: none;
  color: #fff;
}

.blog-container {
  margin-top: 0.5rem;
}

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

.blog-card {
  flex: 1 1 280px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  padding: 1.1rem 1.2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.blog-title {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  line-height: 1.3;
}

.blog-title a {
  color: var(--navy);
  text-decoration: none;
}

.blog-title a:hover {
  color: var(--red);
}

.blog-preview {
  color: var(--muted);
  font-size: 0.95rem;
}

.blog-preview p {
  margin: 0;
}

.lang-switch {
  font-size: 0.85rem;
  color: #bbb;
  white-space: nowrap;
}

.lang-switch a {
  color: #fff;
  font-weight: 700;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drop {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-list {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 0 1rem;
  }

  .nav-inner.is-open .nav-list {
    display: flex;
  }

  .nav-inner {
    flex-wrap: wrap;
    padding: 0.35rem 0;
  }

  .submenu {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    background: #16161f;
    min-width: 0;
  }

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

  .brand-text {
    display: none;
  }

  .hero {
    min-height: 58vh;
    align-items: center;
  }

  .hero-inner {
    margin-bottom: 2rem;
  }
}
