:root {
  --blue: #0a73e8;
  --ink: #0b1220;
  --muted: #677489;
  --paper: #ffffff;
  --soft: #f4f8fc;
  --line: rgba(16, 35, 62, 0.1);
  --shadow: 0 16px 42px rgba(10, 29, 58, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: #fff;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

img,
svg {
  display: block;
}

button,
input {
  font: inherit;
}

.site {
  min-height: 100vh;
  overflow-x: hidden;
}

.hero {
  position: relative;
  display: grid;
  min-height: 0;
  overflow: hidden;
  background: #07111d;
  color: #fff;
}

.hero > .hero-slider,
.hero > .hero-shade {
  grid-area: 1 / 1;
}

.hero-slider {
  display: grid;
  width: 100%;
}

.hero-slide {
  grid-area: 1 / 1;
  display: block;
  animation: pgm-hero-slide 24s infinite;
  opacity: 0;
}

.hero-bg {
  width: 100%;
  height: auto;
  min-height: 0;
  display: block;
  object-fit: contain;
  object-position: center;
}

.hero-slide-1 {
  opacity: 0.95;
}

.hero-slide-2 {
  animation-delay: 6s;
}

.hero-slide-3 {
  animation-delay: 12s;
}

.hero-slide-4 {
  animation-delay: 18s;
}

@keyframes pgm-hero-slide {
  0%,
  20% {
    opacity: 0.95;
  }

  28%,
  92% {
    opacity: 0;
  }

  100% {
    opacity: 0.95;
  }
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 7, 12, 0.92) 0%, rgba(2, 7, 12, 0.72) 31%, rgba(2, 7, 12, 0.16) 62%, rgba(2, 7, 12, 0.2) 100%),
    linear-gradient(180deg, rgba(2, 7, 12, 0.54), transparent 34%);
}

.topbar {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  right: 0;
  width: min(1160px, calc(100% - 72px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
  padding: 20px 0;
}

.blog-template-header {
  position: relative;
  z-index: 4;
  width: min(1160px, calc(100% - 72px));
  border-radius: 0 0 8px 8px;
  background:
    linear-gradient(90deg, rgba(8, 17, 29, 0.96), rgba(8, 33, 61, 0.9)),
    #08111d;
  padding: 14px 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: #fff;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  width: auto;
  height: auto;
}

.brand-mark img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand strong {
  display: block;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

.brand small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 750;
}

.blog-menu-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.blog-menu-button {
  display: none;
}

.blog-menu-panel {
  display: contents;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 28px;
}

.nav a {
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 800;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.blog-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.blog-search label {
  display: block;
}

.blog-search input {
  width: 150px;
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 0 14px;
}

.blog-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.icon-button,
.upload-button,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 7px;
  font-weight: 850;
}

.icon-button {
  width: 36px;
  height: 36px;
  background: transparent;
  color: #fff;
  padding: 0;
}

.icon-button svg,
.upload-button svg,
.primary-button svg,
.secondary-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.upload-button {
  min-height: 42px;
  gap: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 18px;
}

.hero-copy {
  position: absolute;
  z-index: 2;
  top: clamp(92px, 10vw, 126px);
  left: 0;
  right: 0;
  width: min(1160px, calc(100% - 72px));
  margin: 0 auto;
}

.hero-copy h1 {
  max-width: 520px;
  margin: 0 0 16px;
  font-size: clamp(44px, 5.2vw, 68px);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.99;
}

.hero-copy p {
  margin: 0 0 24px;
  font-size: 21px;
  font-weight: 750;
}

.hero-catchphrase-slider {
  display: grid;
  min-height: 34px;
  max-width: 620px;
  margin: 0 0 24px;
}

.hero-catchphrase {
  grid-area: 1 / 1;
  margin: 0 !important;
  animation: pgm-hero-slide 24s infinite;
  opacity: 0;
}

.hero-catchphrase-1 {
  opacity: 1;
}

.hero-catchphrase-2 {
  animation-delay: 6s;
}

.hero-catchphrase-3 {
  animation-delay: 12s;
}

.hero-catchphrase-4 {
  animation-delay: 18s;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.primary-button,
.secondary-button {
  min-width: 150px;
  min-height: 46px;
  gap: 8px;
  padding: 0 20px;
  font-size: 14px;
}

.primary-button {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 12px 26px rgba(10, 115, 232, 0.28);
}

.secondary-button {
  border: 1px solid rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.section {
  width: min(1160px, calc(100% - 72px));
  margin: 28px auto 0;
}

.blog-list-section {
  margin-bottom: 32px;
}

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

.blog-list-card {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(10, 29, 58, 0.08);
}

.blog-list-card > a {
  width: 200px;
  min-height: 150px;
}

.blog-list-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-list-card > div {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 20px;
}

.blog-list-meta {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.blog-list-card h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.12;
}

.blog-list-card h3 a,
.blog-list-read {
  color: var(--ink);
}

.blog-list-card p:not(.blog-list-meta) {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.blog-list-read {
  font-weight: 900;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}

.pagination .page-numbers {
  display: inline-flex;
  min-width: 36px;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  padding: 0 10px;
}

.pagination .current {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 15px;
}

.section-head h2,
.newsletter h2,
.footer h3 {
  margin: 0;
  letter-spacing: 0;
}

.section-head h2,
.panel-title {
  font-size: 20px;
  font-weight: 900;
}

.section-head a {
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
}

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

.story-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: 8px;
  background: #111;
  color: #fff;
  box-shadow: var(--shadow);
}

.story-card::after {
  content: "";
  position: absolute;
  inset: 38% 0 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
}

.story-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-card > div {
  position: absolute;
  z-index: 1;
  left: 16px;
  right: 16px;
  bottom: 14px;
}

.story-card h3 {
  margin: 0 0 7px;
  font-size: 19px;
  line-height: 1.1;
}

.story-card p {
  display: flex;
  gap: 14px;
  margin: 0;
  font-size: 12px;
  font-weight: 750;
}

.world-map {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #dcebfa;
  box-shadow: 0 12px 34px rgba(10, 29, 58, 0.1);
}

.map-content {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.map-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.map-section-head h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 900;
}

.map-section-head a {
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
}

.world-map iframe {
  width: 100%;
  height: clamp(420px, 48vw, 640px);
  border: 0;
  border-radius: 7px;
  background: #dcebfa;
}

.tabs,
.post-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.tabs button,
.post-tabs button {
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #1c2a3d;
  font-size: 11px;
  font-weight: 800;
  padding: 7px 13px;
}

.post-tabs button:first-child {
  background: var(--blue);
  color: #fff;
}

.dashboard-grid {
  display: grid;
  align-items: start;
  grid-template-columns: 1fr;
  gap: 18px;
}

.compact {
  margin-bottom: 12px;
}

.post-tabs {
  margin-bottom: 13px;
}

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

.post-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(10, 29, 58, 0.08);
}

.post-card-media {
  display: block;
}

.post-card img {
  width: 100%;
  aspect-ratio: 1.38;
  object-fit: cover;
}

.post-card > span {
  display: inline-flex;
  margin: 10px 10px 6px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  padding: 4px 7px;
  text-transform: uppercase;
}

.post-card h3 {
  margin: 0 10px 10px;
  font-size: 13px;
  line-height: 1.2;
}

.post-card h3 a {
  color: inherit;
}

.post-card p {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  padding: 0 10px 12px;
}

.newsletter {
  position: relative;
  width: min(1160px, calc(100% - 72px));
  min-height: 112px;
  margin: 26px auto 20px;
  overflow: visible;
  border-radius: 7px;
  background:
    radial-gradient(circle at 88% 50%, rgba(10, 115, 232, 0.34), transparent 20%),
    linear-gradient(90deg, #08213d, #052445);
  color: #fff;
  padding: 22px 320px 20px 28px;
}

.newsletter-copy {
  display: flex;
  align-items: center;
  gap: 18px;
}

.newsletter-copy svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.newsletter h2 {
  font-size: 21px;
  font-weight: 900;
}

.newsletter p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 750;
}

.newsletter-form {
  position: absolute;
  top: 25px;
  right: 346px;
  display: flex;
  width: 420px;
  height: 38px;
}

.newsletter-form label {
  display: flex;
  flex: 1;
  min-width: 0;
}

.newsletter-form input {
  min-width: 0;
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-right: 0;
  border-radius: 6px 0 0 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  padding: 0 16px;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.48);
}

.newsletter-form button {
  width: 116px;
  border: 0;
  border-radius: 0 6px 6px 0;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
}

.newsletter-status {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  width: 100%;
  margin: 0 !important;
  font-size: 12px !important;
  font-weight: 800;
}

.newsletter-status.is-success {
  color: #8dffb0 !important;
}

.newsletter-status.is-error {
  color: #ffd0d0 !important;
}

.newsletter-polaroids {
  position: absolute;
  right: 34px;
  bottom: 8px;
  display: flex;
  gap: 20px;
}

.newsletter-polaroids img {
  width: 68px;
  height: 74px;
  border: 6px solid #fff;
  border-bottom-width: 14px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.newsletter-polaroids img:first-child {
  transform: rotate(8deg);
}

.newsletter-polaroids img:last-child {
  transform: rotate(-11deg);
}

.footer {
  display: grid;
  grid-template-columns: minmax(230px, 1.6fr) repeat(3, minmax(120px, 1fr)) minmax(150px, 1.1fr);
  gap: 38px;
  background:
    radial-gradient(circle at 84% 45%, rgba(10, 115, 232, 0.18), transparent 18%),
    #08111d;
  color: #fff;
  padding: 28px max(48px, calc((100vw - 1160px) / 2)) 22px;
}

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

.footer .brand strong {
  font-size: 21px;
}

.footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.55;
}

.footer h3 {
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 900;
}

.footer nav a {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 750;
}

.connect > div {
  display: flex;
  gap: 14px;
}

.connect a {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

.copyright {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
}

@media (max-width: 900px) {
  .topbar,
  .section,
  .newsletter {
    width: min(100% - 28px, 1160px);
  }

  .topbar,
  .dashboard-grid,
  .footer {
    grid-template-columns: 1fr;
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    padding-top: 12px;
    z-index: 5;
  }

  .brand {
    max-width: calc(100vw - 92px);
  }

  .brand-mark img {
    width: 34px;
    height: 34px;
  }

  .brand strong {
    font-size: 18px;
  }

  .brand small {
    font-size: 9px;
    line-height: 1.15;
  }

  .blog-menu-button {
    display: inline-flex;
    position: relative;
    z-index: 6;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 8px;
    background: rgba(8, 17, 29, 0.78);
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
  }

  .blog-menu-button span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #fff;
    transition: transform 0.18s ease, opacity 0.18s ease;
  }

  .blog-menu-toggle:checked + .blog-menu-button span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .blog-menu-toggle:checked + .blog-menu-button span:nth-child(2) {
    opacity: 0;
  }

  .blog-menu-toggle:checked + .blog-menu-button span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .blog-menu-panel {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(8, 17, 29, 0.82);
    backdrop-filter: blur(14px);
    padding: 12px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
  }

  .blog-menu-toggle:checked ~ .blog-menu-panel {
    display: grid;
    gap: 12px;
  }

  .nav {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
    gap: 4px;
    overflow: visible;
  }

  .nav a {
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.08);
    padding: 10px 12px;
  }

  .top-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    justify-content: stretch;
    gap: 10px;
  }

  .top-actions .upload-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .blog-search {
    width: 100%;
  }

  .blog-search label,
  .blog-search input {
    width: 100%;
  }

  .hero-copy {
    width: min(100% - 28px, 1160px);
    top: 220px;
  }

  .hero {
    min-height: 620px;
  }

  .hero-slider,
  .hero-slide,
  .hero-bg {
    height: 100%;
    min-height: 620px;
  }

  .hero-bg {
    object-fit: cover;
  }

  .story-grid,
  .blog-list-card,
  .post-grid {
    grid-template-columns: 1fr;
  }

  .blog-list-card > a {
    width: 100%;
    min-height: 190px;
  }

  .world-map iframe {
    height: 620px;
  }

  .dashboard-grid {
    gap: 24px;
  }

  .newsletter {
    padding: 20px;
  }

  .newsletter-form {
    position: static;
    width: 100%;
    height: auto;
    margin-top: 16px;
    flex-wrap: wrap;
  }

  .newsletter-form label {
    min-height: 38px;
  }

  .newsletter-status {
    position: static;
    width: 100%;
    margin-top: 8px !important;
  }

  .newsletter-polaroids {
    display: none;
  }

  .footer {
    padding-inline: 24px;
  }
}
