@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@200;300;400;500;600;700&display=swap');

:root {
  --color-primary: #0074be;
  --color-primary-hover: #5e9cca;
  --color-accent: #FF6700;
  --color-accent-hover: #e05c00;
  --color-banner-bg: #8494a0;
  --color-text: #303030;
  --color-text-light: #606060;
  --color-bg-light: #f7f7f7;
  --color-border: #e2e6ea;
  --max-width: 1200px;
  --header-height: 84px;
}

* { box-sizing: border-box; }

html, body {
  min-height: 100%;
  margin: 0;
  font-family: 'Prompt', sans-serif;
  font-weight: 400;
  font-size: 15px;
  color: var(--color-text);
  background: #fff;
}

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

a { color: var(--color-primary); text-decoration: none; }
a:hover, a:focus { color: var(--color-primary-hover); }

h1, h2, h3, h4, h5, h6 { font-weight: 600; margin: 0 0 16px; color: var(--color-primary); }
p { line-height: 1.8; margin: 0 0 16px; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.wrapper { min-height: calc(100vh - 220px); }

button, input, textarea, select { font-family: inherit; font-size: inherit; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 10px 28px;
  border-radius: 4px;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  background: transparent;
  cursor: pointer;
  transition: all .2s ease;
  font-size: 14px;
}
.btn:hover { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.btn-primary {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover { background: var(--color-primary-hover); border-color: var(--color-primary-hover); color: #fff; }
.btn-accent {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: #fff;
}
.btn-accent:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); color: #fff; }
.btn-sm { padding: 6px 18px; font-size: 13px; }

/* ===== Mobile topbar (hamburger, top-left) — sits above the banner, not over it ===== */
.mobile-topbar {
  display: flex;
  align-items: center;
  padding: 8px 0 8px 10px;
  background: #fff;
}
@media (min-width: 992px) {
  .mobile-topbar { display: none; }
}

/* ===== Site banner (masthead image, page order: topbar -> banner -> menu bar -> hero/page banner -> content) ===== */
.site-banner {
  width: 100%;
  line-height: 0;
  background: var(--color-banner-bg);
}
.site-banner img { width: 100%; display: block; }

/* ===== Desktop menu bar — frosted glass, sticks to the top on scroll ===== */
.menu-bar {
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border-bottom: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
.menu-bar .container { display: flex; justify-content: center; }
.top-nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
}
.top-nav-menu > li { position: relative; }
.top-nav-menu > li > a {
  display: block;
  padding: 16px 18px;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.top-nav-menu > li > a:hover,
.top-nav-menu > li.is-active > a { color: var(--color-accent); background: rgba(255,103,0,.08); }
.top-nav-menu .caret { font-size: 11px; margin-left: 2px; }

.top-nav-menu .dropdown-menu {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  z-index: 50;
}
.top-nav-menu li.has-dropdown:hover .dropdown-menu,
.top-nav-menu li.has-dropdown.is-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.top-nav-menu .dropdown-menu a {
  display: block;
  padding: 10px 18px;
  font-size: 14px;
  color: var(--color-text);
}
.top-nav-menu .dropdown-menu li.is-active a,
.top-nav-menu .dropdown-menu a:hover { color: #fff; background: var(--color-accent); }

/* Hamburger — hidden on desktop, shown only under the responsive breakpoint */
.nav-toggle {
  width: 30px;
  height: 26px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  padding: 2px 0;
}
@media (max-width: 991px) {
  .menu-bar { display: none; }
  .nav-toggle { display: flex; }
}
.nav-toggle span {
  display: block;
  height: 3px;
  border-radius: 8px;
  background: #383633;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(13px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-13px) rotate(-45deg); }

/* ===== Overlay nav (mobile-style menu at all sizes) ===== */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  visibility: hidden;
}
.nav-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  opacity: 0;
  transition: opacity .25s ease;
}
.nav-panel {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 300px;
  max-width: 86vw;
  background: var(--color-banner-bg);
  font-family: 'Prompt', sans-serif;
  transform: translateX(-100%);
  transition: transform .3s ease;
  overflow-y: auto;
  padding: 60px 0 30px;
}
.nav-overlay.is-open { visibility: visible; }
.nav-overlay.is-open .nav-overlay-backdrop { opacity: 1; }
.nav-overlay.is-open .nav-panel { transform: translateX(0); }

.nav-close {
  position: absolute;
  top: 14px; right: 16px;
  width: 34px; height: 34px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
}

.nav-menu, .nav-submenu { list-style: none; margin: 0; padding: 0; }
.nav-menu > li::after { content: ''; display: block; border-bottom: 1px solid #6a7680; }
.nav-menu > li > a, .nav-menu > li > button.nav-group-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 20px;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  background: #778792;
  border: none;
  text-align: left;
  cursor: pointer;
}
.nav-menu > li > a:hover,
.nav-menu > li.is-active > a,
.nav-menu > li > button.nav-group-toggle:hover { background: var(--color-accent); color: #fff; }
.nav-group-toggle .caret { transition: transform .2s ease; }
.nav-menu > li.is-open .nav-group-toggle .caret { transform: rotate(180deg); }

.nav-submenu { max-height: 0; overflow: hidden; transition: max-height .25s ease; background: #667783; }
.nav-menu > li.is-open .nav-submenu { max-height: 400px; }
.nav-submenu li { border-top: 1px solid #5b6771; }
.nav-submenu li a {
  display: block;
  padding: 12px 20px 12px 40px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}
.nav-submenu li a:hover, .nav-submenu li.is-active a { color: #fff; background: var(--color-accent); }

/* ===== Hero (home) ===== */
/* ===== Hero slider (auto-rotating fade slides with dot pager) ===== */
.hero-wrap { position: relative; }
.hero-slider {
  position: relative;
  width: 100%;
  height: 60vw;
  max-height: 620px;
  min-height: 280px;
  overflow: hidden;
  background: var(--color-banner-bg);
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-note {
  /* Desktop: offset toward the right (txtOnRight in the original), clear of the center dots */
  position: absolute;
  left: 60%;
  bottom: 46px;
  width: 35%;
  max-width: 600px;
  margin: 0;
  font-size: 10px;
  line-height: 1.4;
  color: #fff;
  text-align: center;
  background: rgba(105,116,162,.67);
  padding: 4px;
}
@media (max-width: 768px) {
  /* Take it out of the overlay entirely — flows below the image + dots, no overlap */
  .hero-note {
    position: static;
    display: block;
    width: 100%;
    max-width: none;
    color: #fff;
    background: #6974A2;
    padding: 6px 12px;
  }
}
.hero-dots {
  position: absolute;
  left: 0; right: 0; bottom: 34px;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 5;
}
.hero-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: rgba(255,255,255,.35);
  padding: 0;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.hero-dot:hover { transform: scale(1.15); }
.hero-dot.is-active { background: #fff; }
@media (max-width: 600px) {
  .hero-dots { bottom: 18px; }
}

/* ===== Subpage banner ===== */
.page-banner {
  position: relative;
  width: 100%;
  min-height: 130px;
  background: var(--color-banner-bg) center / cover no-repeat;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(15,30,42,.78) 0%, rgba(15,30,42,.45) 45%, rgba(15,30,42,.08) 85%);
}
.page-banner .container { position: relative; z-index: 2; }
.page-banner h1 {
  color: #fff;
  font-size: 26px;
  margin: 0;
  font-weight: 600;
  letter-spacing: .2px;
  text-shadow: 0 2px 10px rgba(0,0,0,.35);
}
.page-banner h1::after {
  content: '';
  display: block;
  width: 54px;
  height: 3px;
  background: var(--color-accent);
  margin-top: 12px;
  border-radius: 2px;
}

/* ===== Home teaser sections ===== */
.section { padding: 60px 0; }
.section-alt { background: var(--color-bg-light); }

/* ===== Homepage video ===== */
.video-section { width: 100%; line-height: 0; background: #000; }
.video-section video { width: 100%; height: auto; display: block; }
.teaser {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}
.teaser > div { flex: 1 1 420px; }
.teaser p { font-size: 16px; }

/* ===== About teaser: large map as a parallax "background", white opacity card on top ===== */
.about-teaser-section {
  position: relative;
  background: #FFCE5C;
  padding: 90px 0;
  overflow: hidden;
  min-height: 640px;
  display: flex;
  align-items: center;
}
.about-teaser-bg {
  position: absolute;
  right: -6%;
  top: -10%;
  width: 85%;
  max-width: 1100px;
  height: 120%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0,0,0,.35);
  will-change: transform;
  z-index: 1;
}
.about-teaser-section .container { position: relative; z-index: 2; }
.about-teaser-section .parallax-card { max-width: min(480px, 55vw); }
@media (max-width: 900px) {
  .about-teaser-section {
    display: block;
    min-height: 0;
    padding: 30px 0;
  }
  .about-teaser-bg {
    position: static;
    display: block;
    width: 100%;
    max-width: none;
    margin-bottom: 24px;
    transform: none !important;
  }
  .about-teaser-section .parallax-card { max-width: 100%; }
}

/* ===== Parallax scroll effect (background pinned while content scrolls over it) ===== */
.parallax-section {
  position: relative;
  padding: 70px 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}
.parallax-card {
  max-width: min(560px, 60vw);
  background: rgba(255,255,255,.94);
  border-radius: 8px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0,0,0,.15);
}
@media (max-width: 760px) {
  /* Drop the background image on mobile entirely — plain color, content card only */
  .parallax-section {
    background-image: none !important;
    background-color: #EED6C9;
    padding: 30px 0;
  }
  .parallax-card {
    max-width: 100%;
  }
}

/* ===== News grid / cards ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin: 30px 0;
}
.news-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  display: flex;
  flex-direction: column;
  transition: box-shadow .25s ease, transform .25s ease;
}
.news-card:hover { box-shadow: 0 10px 28px rgba(0,0,0,.16); transform: translateY(-3px); }
.news-card img { height: 190px; object-fit: cover; width: 100%; transition: transform .35s ease; }
.news-card:hover img { transform: scale(1.08); }
.news-card .news-card-body { padding: 16px; display: flex; flex-direction: column; align-items: center; text-align: center; flex: 1; }
.news-card .news-date { font-size: 12px; color: #999; margin-bottom: 6px; }
.news-card .news-title { font-weight: 600; color: var(--color-primary); margin-bottom: 14px; flex: 1; font-size: 16px; line-height: 1.4; }
.news-card .btn { align-self: center; }

/* home news teaser row */
.news-row {
  display: flex;
  gap: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  overflow: hidden;
  margin-bottom: 16px;
}
.news-row img { width: 220px; height: 150px; object-fit: cover; flex-shrink: 0; }
.news-row .news-row-body { padding: 16px; }
@media (max-width: 600px) {
  .news-row { flex-direction: column; }
  .news-row img { width: 100%; height: 180px; }
}

/* ===== Two-column with side-nav (about pages) ===== */
.page-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding: 50px 0;
  align-items: flex-start;
}
.side-nav { flex: 0 0 260px; max-width: 100%; }
.side-nav ul { list-style: none; margin: 0; padding: 0; }
.side-nav li a {
  display: block;
  padding: 12px 16px;
  background: var(--color-accent);
  color: #fff;
  font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,.25);
  position: relative;
}
.side-nav li a:hover { background: var(--color-accent-hover); }
.side-nav li.is-active a { background: var(--color-accent-hover); font-weight: 600; }
.page-content { flex: 1 1 500px; min-width: 0; }
.page-content h2 { font-size: 26px; font-weight: 500; }
.page-content h4 { font-size: 20px; font-weight: 600; margin-top: 28px; }
.page-content table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.page-content table th, .page-content table td { border: 1px solid var(--color-border); padding: 8px 12px; text-align: left; }
.page-content table th { background: var(--color-primary); color: #fff; }

/* ===== Contact page ===== */
.contact-wrap { max-width: 820px; margin: 0 auto; text-align: center; }
.contact-wrap h2 { text-align: center; }
.contact-block {
  display: grid;
  grid-template-columns: 190px 1fr;
  align-items: center;
  gap: 24px;
  margin: 0 auto 24px;
  text-align: left;
  max-width: 680px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}
.contact-block:last-child { border-bottom: none; }
.contact-block .logo-slot { display: flex; align-items: center; justify-content: center; height: 140px; }
.contact-block .logo-slot img { max-width: 100%; max-height: 140px; object-fit: contain; }
.contact-block .address p { margin: 4px 0; color: var(--color-text-light); }

.contact-form { max-width: 700px; margin-top: 20px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: #fff;
}
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--color-primary); }
.form-msg { margin-top: 12px; font-size: 14px; }
.form-msg.success { color: #1a7a34; }
.form-msg.error { color: #c0392b; }

/* ===== Footer ===== */
.site-footer { background: var(--color-bg-light); padding-top: 30px; margin-top: 40px; }
.footer-top { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; padding-bottom: 20px; }
.footer-top img { max-width: 110px; }
.footer-top h3 { font-size: 16px; margin-bottom: 8px; }
.footer-top p { margin: 2px 0; color: var(--color-text-light); font-size: 14px; }
.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding: 16px 0;
  text-align: center;
  font-size: 13px;
  color: var(--color-text-light);
}
.visitor-count {
  margin-top: 8px;
  font-size: 14px;
}
.visitor-count span {
  display: inline-block;
  background-color: #222222dd;
  color: #ffffff;
  margin: 2px;
  padding: 8px 0 6px 10px;
  letter-spacing: 10px;
  border-radius: 8px;
  font-size: 16px;
  font-family: 'Prompt', sans-serif;
}

/* ===== Back to top ===== */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .25s ease;
  z-index: 150;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--color-accent-hover); color: #fff; }

/* ===== Breadcrumb ===== */
.breadcrumb { font-size: 13px; color: #888; margin-bottom: 20px; }
.breadcrumb a { color: #888; }
.breadcrumb a:hover { color: var(--color-primary); }

/* ===== Lightbox (news detail images) ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0,0,0,.85);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
}
.lightbox.is-open { display: flex; }
.lightbox-image-wrap { position: relative; max-width: 100%; max-height: 90vh; line-height: 0; }
.lightbox img { max-height: 90vh; max-width: 100%; border-radius: 4px; display: block; }

/* Magnifier lens — desktop (mouse) only */
.lightbox-lens {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,.5);
  background-repeat: no-repeat;
  pointer-events: none;
  display: none;
  z-index: 10;
}
@media (hover: hover) and (pointer: fine) {
  .lightbox-image-wrap.has-lens img { cursor: none; }
  .lightbox-image-wrap.has-lens .lightbox-lens.is-active { display: block; }
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  color: #fff;
  font-size: 32px;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}

@media (max-width: 767px) {
  .page-banner { min-height: 90px; }
  .page-banner h1 { font-size: 20px; }
  .page-banner h1::after { width: 40px; margin-top: 8px; }
  .page-banner .container { padding: 0 24px; }
  .container { padding: 0 24px; }
  .side-nav { display: none; }
  .page-columns { padding: 30px 0; }
  .page-content { padding: 0 4px; overflow-wrap: break-word; word-break: break-word; }
  .contact-block { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .contact-block .logo-slot:empty { display: none; }
}
