/* news-style.css - THS header/menu + dynamic News & Events */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #fff;
  color: #222;
}
a { color: inherit; }

/* ===== Header ===== */
.site-header {
  background: #fff;
}
.header-top {
  max-width: 1180px;
  height: 145px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 16px 20px;
}
.cert-box {
  justify-self: start;
  font-size: 13px;
  line-height: 1.35;
  color: #111;
  font-weight: 700;
}
.cert-item {
  display: block;
  font-weight: 700;
}
.cert-item::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  margin-right: 3px;
  border: 2px solid #0b73d1;
  border-radius: 50%;
  color: #0b73d1;
  font-size: 10px;
  line-height: 1;
}
.site-logo {
  display: inline-block;
  text-decoration: none;
}
.site-logo img {
  width: 210px;
  max-width: 100%;
  height: auto;
  display: block;
}
.main-nav-wrap {
  background: #0872c9;
  box-shadow: 0 2px 5px rgba(0,0,0,.18);
  position: relative;
  z-index: 20;
}
.main-nav {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: stretch;
  padding: 0 12px;
}
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav > ul {
  display: flex;
  width: 100%;
  justify-content: center;
}
.main-nav li { position: relative; }
.main-nav > ul > li > a,
.main-nav > ul > li > span {
  display: block;
  min-width: 145px;
  padding: 16px 16px;
  color: #fff;
  text-decoration: none;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.main-nav > ul > li:hover > a,
.main-nav > ul > li:hover > span,
.main-nav > ul > li.active > a {
  background: rgba(0,0,0,.12);
}
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 455px;
  background: #0872c9;
  border-top: 1px solid rgba(255,255,255,.35);
  box-shadow: 0 6px 12px rgba(0,0,0,.25);
}
.dropdown li a {
  display: block;
  padding: 10px 18px;
  color: #fff;
  text-decoration: none;
  text-align: center;
  font-size: 14px;
  line-height: 1.2;
  border-bottom: 1px solid rgba(255,255,255,.2);
  white-space: nowrap;
}
.dropdown li a:hover { background: rgba(0,0,0,.16); }
.has-dropdown:hover .dropdown { display: block; }

/* ===== News Page ===== */
.news-page-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 16px 56px;
}
.page-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
}
.page-title .arrow {
  color: #0872c9;
  font-size: 34px;
  line-height: 1;
}
.page-title h1 {
  margin: 0;
  color: #0872c9;
  font-size: 28px;
  font-weight: 700;
}
.news-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin: 14px 0 24px;
  flex-wrap: wrap;
}
.news-toolbar input,
.news-toolbar select {
  height: 40px;
  border: 1px solid #d8d8d8;
  border-radius: 6px;
  padding: 0 12px;
  font-size: 14px;
}
.news-toolbar input { min-width: 260px; flex: 1; }
.news-count { color: #666; font-size: 13px; }
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.news-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0,0,0,.055);
}
.news-thumb {
  display: block;
  aspect-ratio: 4 / 3;
  background: #f4f6f8;
  overflow: hidden;
}
.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .25s ease;
}
.news-card:hover .news-thumb img { transform: scale(1.03); }
.news-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-weight: bold;
  letter-spacing: 2px;
}
.news-body { padding: 13px 15px 17px; }
.news-date {
  font-size: 12.5px;
  color: #0872c9;
  font-weight: 700;
  margin-bottom: 7px;
}
.news-body h3 {
  font-size: 15px;
  line-height: 1.42;
  margin: 0 0 8px;
  font-weight: 700;
}
.news-body h3 a {
  color: #222;
  text-decoration: none;
}
.news-body h3 a:hover { color: #0872c9; text-decoration: underline; }
.news-body p {
  color: #555;
  font-size: 13.2px;
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== Footer ===== */
.site-footer {
  margin-top: 30px;
  padding: 28px 16px;
  background: #f4f4f4;
  color: #555;
  text-align: center;
  font-size: 13px;
}

@media (max-width: 1024px) {
  .main-nav > ul > li > a,
  .main-nav > ul > li > span { min-width: 118px; font-size: 14px; padding-left: 10px; padding-right: 10px; }
  .dropdown { min-width: 360px; }
}
@media (max-width: 900px) {
  .header-top { height: auto; grid-template-columns: 1fr; gap: 12px; justify-items: center; text-align: center; }
  .cert-box { justify-self: center; }
  .main-nav > ul { flex-wrap: wrap; }
  .main-nav > ul > li > a,
  .main-nav > ul > li > span { min-width: auto; padding: 12px 13px; font-size: 13px; }
  .dropdown { left: 0; transform: none; min-width: 280px; }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .site-logo img { width: 170px; }
  .main-nav { padding: 0; }
  .main-nav > ul > li { width: 50%; }
  .main-nav > ul > li > a,
  .main-nav > ul > li > span { width: 100%; font-size: 12.5px; }
  .dropdown { position: static; transform: none; width: 100%; min-width: 100%; box-shadow: none; }
  .has-dropdown:hover .dropdown { display: block; }
  .news-grid { grid-template-columns: 1fr; }
  .news-body h3 { font-size: 14.5px; }
  .news-body p { font-size: 13px; }
  .news-toolbar { display: block; }
  .news-toolbar input,
  .news-toolbar select { width: 100%; margin-bottom: 10px; }
}

/* ===== THS Original-style Footer ===== */
.ths-footer {
  margin-top: 40px;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
}
.footer-tagline {
  background: #1da7dc;
  color: #fff;
  text-align: center;
  font-size: 22px;
  line-height: 1.35;
  padding: 28px 16px 26px;
  font-weight: 400;
}
.footer-main {
  background: #0872c9;
  padding: 32px 16px 44px;
}
.footer-container {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1.25fr 1.25fr;
  gap: 64px;
  align-items: start;
}
.ths-footer h3 {
  margin: 0 0 18px;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 400;
}
.ths-footer p {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.65;
  font-weight: 400;
}
.footer-contact p {
  font-size: 13px;
  line-height: 1.65;
}

.footer-contact strong {
  font-weight: 700;
}

.footer-facebook {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
}
.fb-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 39px;
  height: 39px;
  border: 4px solid #fff;
  color: #fff;
  font-size: 34px;
  font-weight: 700;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1;
}
.footer-map iframe {
  width: 100%;
  max-width: 420px;
  height: 220px;
  border: 2px solid rgba(255,255,255,.8);
  background: #fff;
  display: block;
}
.footer-counter {
  display: inline-block;
  margin-top: 34px;
  margin-left: 86px;
  background: #e8e8e8;
  border: 1px solid #999;
  color: #333;
  font-size: 11px;
  line-height: 1;
  padding: 3px 8px;
}
.footer-bottom {
  background: #1c2229;
  color: #bfc5ca;
  text-align: center;
  font-size: 11px;
  padding: 22px 16px;
}
.footer-bottom a {
  color: #2aa7ff;
  text-decoration: none;
}
.footer-bottom a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .footer-container {
    max-width: 760px;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-map { grid-column: 1 / -1; }
  .footer-map iframe { width: 100%; }
  .footer-counter { margin-left: 0; }
}
@media (max-width: 600px) {
  .footer-tagline { font-size: 18px; padding: 22px 14px; }
  .footer-main { padding: 26px 18px 36px; }
  .footer-container { grid-template-columns: 1fr; gap: 24px; }
  .ths-footer h3 { margin-bottom: 12px; font-size: 17px; }
  .ths-footer p,
  .footer-contact p { font-size: 13px; }
  .footer-map iframe { height: 220px; }
}


/* ===== Mobile header/menu fixed to match original Muse mobile layout ===== */
@media (max-width: 600px) {
  .site-header {
    background: #fff;
  }

  .header-top {
    height: auto !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 16px 12px 20px !important;
    text-align: left !important;
  }

  .cert-box {
    order: 1 !important;
    display: block !important;
    justify-self: auto !important;
    align-self: center !important;
    font-size: 14px !important;
    line-height: 1.25 !important;
    text-align: left !important;
    margin: 0 !important;
  }

  .cert-box strong {
    display: block !important;
    font-size: 14px !important;
    margin-bottom: 3px !important;
  }

  .cert-item {
    display: block !important;
    font-size: 13.5px !important;
  }

  .site-logo {
    order: 2 !important;
    display: block !important;
    margin: 4px auto 0 !important;
  }

  .site-logo img {
    width: 190px !important;
    height: auto !important;
    display: block !important;
  }

  .main-nav-wrap {
    display: block !important;
    width: 100% !important;
    background: #0872c9 !important;
    position: relative !important;
    z-index: 20 !important;
  }

  .main-nav {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
  }

  .main-nav > ul {
    display: flex !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  .main-nav > ul > li {
    width: 50% !important;
    flex: 0 0 50% !important;
    display: block !important;
  }

  .main-nav > ul > li:last-child {
    width: 100% !important;
    flex-basis: 100% !important;
  }

  .main-nav > ul > li > a,
  .main-nav > ul > li > span {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 14px 8px !important;
    color: #fff !important;
    text-align: center !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
  }

  .main-nav > ul > li.active > a,
  .main-nav > ul > li:hover > a,
  .main-nav > ul > li:hover > span {
    background: rgba(0,0,0,.14) !important;
  }

  .menu-toggle,
  .hamburger,
  .mobile-menu-button,
  .nav-toggle,
  button[aria-label*="menu"],
  button[aria-label*="Menu"] {
    display: none !important;
  }

  .dropdown {
    position: static !important;
    display: none !important;
    width: 100% !important;
    min-width: 100% !important;
    transform: none !important;
    box-shadow: none !important;
  }

  .has-dropdown:hover .dropdown,
  .has-dropdown:focus-within .dropdown {
    display: block !important;
  }
}

/* ===== Mobile menu vertical overlay style (matching THS original mobile menu) ===== */
.mobile-nav-toggle { display: none; }
.mobile-only { display: none; }

@media (max-width: 600px) {
  .site-header {
    position: relative !important;
    z-index: 1000 !important;
    background: #fff !important;
  }

  .header-top {
    height: 122px !important;
    display: grid !important;
    grid-template-columns: 1fr auto 58px !important;
    align-items: center !important;
    justify-items: center !important;
    padding: 14px 18px !important;
    gap: 8px !important;
  }

  .cert-box {
    display: none !important;
  }

  .site-logo {
    grid-column: 2 !important;
    order: initial !important;
    margin: 0 !important;
  }

  .site-logo img {
    width: 185px !important;
    max-width: 185px !important;
  }

  .mobile-nav-toggle {
    grid-column: 3 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 48px !important;
    height: 48px !important;
    border: 4px solid #0872c9 !important;
    background: #fff !important;
    color: #0872c9 !important;
    font-size: 42px !important;
    line-height: 1 !important;
    font-weight: 400 !important;
    cursor: pointer !important;
    padding: 0 !important;
  }

  body.mobile-menu-open .mobile-nav-toggle {
    font-size: 50px !important;
    padding-bottom: 6px !important;
  }

  .main-nav-wrap {
    display: none !important;
    position: absolute !important;
    top: 122px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: transparent !important;
    box-shadow: none !important;
    z-index: 999 !important;
  }

  body.mobile-menu-open .main-nav-wrap {
    display: block !important;
  }

  .main-nav {
    width: 320px !important;
    max-width: calc(100vw - 64px) !important;
    margin: 0 auto !important;
    padding: 0 !important;
    display: block !important;
    background: #0872c9 !important;
  }

  .main-nav > ul {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .main-nav > ul > li,
  .main-nav > ul > li:last-child {
    width: 100% !important;
    flex: none !important;
    display: block !important;
    border-bottom: 1px solid rgba(255,255,255,.18) !important;
    position: relative !important;
  }

  .mobile-only {
    display: block !important;
  }

  .main-nav > ul > li > a,
  .main-nav > ul > li > span {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    min-height: 48px !important;
    width: 100% !important;
    padding: 0 58px 0 16px !important;
    background: #0872c9 !important;
    color: #fff !important;
    text-align: left !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    font-weight: 400 !important;
    text-decoration: none !important;
  }

  .main-nav > ul > li.active > a,
  .main-nav > ul > li:hover > a,
  .main-nav > ul > li:hover > span {
    background: #18a9dc !important;
  }

  .has-dropdown::after,
  .main-nav > ul > li:not(.has-dropdown)::after {
    content: '≡';
    position: absolute;
    right: 20px;
    top: 10px;
    width: 28px;
    height: 28px;
    border-radius: 2px;
    background: #ffc400;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
    font-weight: 700;
    pointer-events: none;
  }

  .contact-menu > a {
    font-size: 0 !important;
  }
  .contact-menu > a::before {
    content: 'CONTACTS';
    font-size: 14px !important;
  }

  .dropdown {
    position: static !important;
    display: none !important;
    width: 100% !important;
    min-width: 100% !important;
    transform: none !important;
    box-shadow: none !important;
    border-top: 1px solid rgba(255,255,255,.18) !important;
    background: #075da8 !important;
  }

  .has-dropdown:hover .dropdown,
  .has-dropdown:focus-within .dropdown {
    display: block !important;
  }

  .dropdown li a {
    text-align: left !important;
    white-space: normal !important;
    font-size: 12.5px !important;
    line-height: 1.25 !important;
    padding: 10px 16px 10px 28px !important;
    background: #075da8 !important;
  }

  .dropdown li a:hover {
    background: #064f91 !important;
  }
}

/* ===== FINAL MOBILE FIX: show Hamburger/X button and vertical menu ===== */
@media (max-width: 600px) {
  .header-top {
    position: relative !important;
    min-height: 122px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 14px 86px 14px 18px !important;
  }

  .site-logo {
    display: block !important;
    margin: 0 auto !important;
  }

  .site-logo img {
    width: 185px !important;
    max-width: 185px !important;
    height: auto !important;
  }

  button.mobile-nav-toggle,
  button.mobile-nav-toggle[aria-label],
  .header-top button.mobile-nav-toggle {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: absolute !important;
    right: 26px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 2000 !important;
    align-items: center !important;
    justify-content: center !important;
    width: 48px !important;
    height: 48px !important;
    border: 4px solid #0872c9 !important;
    background: #fff !important;
    color: #0872c9 !important;
    font-size: 42px !important;
    line-height: 1 !important;
    font-weight: 400 !important;
    cursor: pointer !important;
    padding: 0 !important;
  }

  body.mobile-menu-open button.mobile-nav-toggle,
  body.mobile-menu-open button.mobile-nav-toggle[aria-label],
  body.mobile-menu-open .header-top button.mobile-nav-toggle {
    display: inline-flex !important;
    font-size: 50px !important;
    padding-bottom: 6px !important;
  }

  .main-nav-wrap {
    top: 122px !important;
  }

  body:not(.mobile-menu-open) .main-nav-wrap {
    display: none !important;
  }

  body.mobile-menu-open .main-nav-wrap {
    display: block !important;
  }
}
