/* Additions required by the server-rendered templates. */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

.site-menu-toggle {
  display: none;
}

.news-page .header-news {
  height: 300px;
  background-color: #123f67;
  background-image:
    linear-gradient(110deg, rgba(8, 31, 54, 0.18), rgba(37, 99, 235, 0.08)),
    url('/image/banner-300-container-news-background.jpg');
  background-position: center, center top;
  background-repeat: no-repeat;
  background-size: cover, cover;
}

.news-page .banner-wave {
  position: absolute;
  inset: 0;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
}

.contact-card__value--manager {
  font-size: 18px;
  letter-spacing: 0;
}

.news-card__media-fallback {
  display: flex;
  width: 100%;
  height: 100%;
  color: rgba(37, 99, 235, 0.4);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(37, 99, 235, 0.02)),
    #edf3f8;
  align-items: center;
  justify-content: center;
  font-size: 58px;
  font-weight: 700;
}

.news-empty {
  display: flex;
  min-height: 260px;
  padding: 42px;
  color: var(--news-muted);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 9px 28px rgba(19, 43, 68, 0.06);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.news-empty strong {
  margin-bottom: 10px;
  color: var(--news-ink);
  font-size: 22px;
  font-weight: 600;
}

.news-empty span {
  font-size: 14px;
  line-height: 1.8;
}

.news-empty a {
  margin-top: 18px;
  padding: 10px 18px;
  color: #fff;
  border-radius: 7px;
  background: var(--news-accent);
  font-size: 14px;
}

.news-empty--large {
  min-height: 420px;
}

.news-side__note {
  color: var(--news-muted);
  font-size: 13px;
  line-height: 1.9;
}

.news-article__cover {
  display: block;
  width: 100%;
  max-height: 500px;
  margin: 0 0 26px;
  border-radius: 8px;
  object-fit: cover;
}

.news-detail-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.news-detail-stats div {
  padding: 15px 12px;
  border-radius: 8px;
  background: #f4f8fc;
}

.news-detail-stats span,
.news-detail-stats strong {
  display: block;
}

.news-detail-stats span {
  color: var(--news-muted);
  font-size: 12px;
}

.news-detail-stats strong {
  margin-top: 7px;
  color: var(--news-ink);
  font-size: 24px;
  font-variant-numeric: tabular-nums;
}

.news-pagination {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.news-pagination > a {
  display: inline-flex;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  color: #52657a;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(19, 43, 68, 0.06);
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.news-pagination > a:hover,
.news-pagination > a:focus-visible,
.news-pagination > a.this {
  color: #fff;
  background: var(--news-accent);
}

.news-navigation {
  display: grid;
  margin-top: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.news-navigation__item {
  display: grid;
  min-width: 0;
  padding: 18px 20px;
  color: var(--news-ink);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 9px 28px rgba(19, 43, 68, 0.06);
  gap: 6px;
}

.home-sr-only {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Shared mobile header rules. These apply to every public page, not only contact. */
@media screen and (max-width: 1024px) {
  .header-container,
  .header-container-scroll,
  .header-container .header,
  .header-container-scroll .header {
    min-width: 0;
    width: 100%;
  }

  .header-container .header,
  .header-container-scroll .header {
    width: calc(100% - 32px);
  }

  .header-container .header-nav,
  .header-container-scroll .header-nav {
    width: 70px;
    height: 70px;
  }

  .header-container .header-shadow,
  .header-container-scroll .header-shadow {
    width: 100%;
    min-width: 0;
  }

  .mobile-inner-header {
    right: 16px;
  }

  .site-menu-toggle {
    position: fixed;
    top: 10px;
    right: 16px;
    z-index: 1000000;
    display: flex;
    width: 50px;
    height: 50px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 10px;
    background: rgba(4, 18, 34, 0.28);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 7px;
    transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
  }

  .site-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    transition: transform 220ms ease;
  }

  .site-menu-toggle.is-open span:first-child {
    transform: translateY(4.5px) rotate(45deg);
  }

  .site-menu-toggle.is-open span:last-child {
    transform: translateY(-4.5px) rotate(-45deg);
  }

  .header-container-scroll .site-menu-toggle {
    border-color: #e2e8f0;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 24px rgba(15, 35, 58, 0.1);
  }

  .header-container-scroll .site-menu-toggle span {
    background: #12263b;
  }

  .mobile-inner-header-icon {
    padding: 0;
    border: 0;
    background: transparent;
  }

  .mobile-inner-header-icon span {
    background: #fff;
    box-shadow: 0 0 0 1px rgba(7, 22, 38, 0.08);
  }

  .header-container-scroll .mobile-inner-header-icon span {
    background: #12263b;
    box-shadow: none;
  }

  .mobile-inner-nav.is-open {
    display: block;
    max-height: calc(100svh - 70px);
    overflow-y: auto;
    padding: 12px 0 24px;
    background: rgba(7, 22, 38, 0.97);
    box-shadow: 0 24px 60px rgba(3, 13, 25, 0.24);
    backdrop-filter: blur(18px);
    animation: mobile-nav-enter 220ms ease both;
  }

  .mobile-inner-nav a {
    display: block;
    width: auto;
    margin: 0 20px;
    padding: 0 4px;
    font-size: 15px;
    font-weight: 400;
    line-height: 52px;
  }

  .mobile-inner-nav a[aria-current='page'] {
    color: #93c5fd;
    border-bottom-color: #2563eb;
  }

  .foot_fd {
    width: 100%;
    font-size: 16px;
  }

  .foot_fd a {
    font-size: 14px;
  }

  .foot_fd img {
    width: 20px;
    height: 20px;
    margin-right: 6px;
  }
}

@keyframes mobile-nav-enter {
  from {
    opacity: 0;
    transform: translate3d(0, -8px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media screen and (max-width: 720px) {
  .news-navigation {
    grid-template-columns: 1fr;
  }
}

