
/* Shared visual upgrade: header, footer and logo only */
.page-top img {
  max-width: 170px;
  width: 100%;
  margin: 0 auto 10px;
  display: block;
}
.logo-mark-image {
  margin: 0 auto 10px;
}
.logo-mark-image img {
  display: block;
  width: min(100%, 300px);
  margin: 0 auto;
}
body.has-real-logo .logo-fallback {
  display: none !important;
}


/* ===== Header base layout fix ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 1000 !important;
  overflow: visible !important;
}

.nav-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.mobile-bar {
  display: none;
  min-height: 70px !important;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.nav {
  display: flex;
  align-items: center;
  min-height: 74px !important;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 16px !important;
  letter-spacing: 2.3px !important;
  text-transform: uppercase;
}

.nav-left a,
.dropdown-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 10px 0 !important;
  background: none;
  border: none;
  color: rgba(10,30,54,0.92);
  font: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}

.dropdown {
  position: relative;
  overflow: visible !important;
}

.dropdown-toggle {
  gap: 6px;
}

.dropdown-toggle span {
  font-size: 12px;
  transform: translateY(-1px);
}

.dropdown-menu {
  position: absolute !important;
  top: calc(100% + 14px);
  right: 0;
  min-width: 320px;
  display: none;
  padding: 12px 0;
  border-radius: 10px;
  z-index: 2000 !important;
}

.dropdown-menu a {
  display: block;
  white-space: nowrap;
}

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

/* Desktop must never show mobile chrome */
@media (min-width: 761px) {
  .mobile-bar {
    display: none !important;
  }

  .nav {
    display: flex !important;
  }

  body.menu-open .nav {
    display: flex !important;
  }

  .dropdown-menu {
    position: absolute !important;
  }
}

/* Mobile header behavior */
@media (max-width: 760px) {
  .mobile-bar {
    display: flex !important;
  }

  .nav {
    display: none !important;
    padding: 0 0 14px;
    min-height: auto !important;
  }

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

  .nav-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 13px !important;
    letter-spacing: 1.4px !important;
  }

  .nav-left a,
  .dropdown-toggle {
    width: 100%;
    justify-content: flex-start;
    padding: 10px 0 !important;
  }

  .dropdown {
    width: 100%;
  }

  .dropdown-menu {
    position: static !important;
    right: auto;
    min-width: 0;
    width: 100%;
    margin-top: 6px;
    border-radius: 14px;
    box-shadow: none;
    padding: 8px 0;
    display: none !important;
  }

  .dropdown.dropdown-open .dropdown-menu {
    display: block !important;
  }

  .dropdown:hover .dropdown-menu,
  .dropdown:focus-within .dropdown-menu {
    display: none !important;
  }

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

  .dropdown-menu a {
    white-space: normal;
    padding: 10px 12px;
    font-size: 12px;
  }
}


/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(135deg, rgba(106,164,217,0.96), rgba(88,145,211,0.94));
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.28);
  box-shadow: 0 10px 26px rgba(15,23,42,0.10);
  overflow: hidden;
}
.topbar-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.10), rgba(255,255,255,0.02)),
    url('assets/images/lines-white.png') top right/700px auto no-repeat;
  opacity: 0.42;
}
.nav-wrap {
  position: relative;
  z-index: 2;
}
.mobile-brand-text {
  font-weight: 800;
  letter-spacing: 1px;
}
.menu-toggle {
  border: 1px solid rgba(255,255,255,0.32);
  background: rgba(255,255,255,0.18);
  color: #103a6c;
  box-shadow: 0 8px 18px rgba(15,23,42,0.08);
}
.nav-left a,
.dropdown-toggle {
  color: rgba(10,30,54,0.92);
}
.nav-left a::after,
.dropdown-toggle::after {
  height: 2px;
  background: rgba(255,255,255,0.88);
}
.nav-left a.active {
  color: #0f2f56;
  font-weight: 800;
}
.dropdown-menu {
  background: linear-gradient(180deg, rgba(137,198,232,0.98), rgba(111,183,225,0.98));
  border: 1px solid rgba(255,255,255,0.30);
  box-shadow: 0 18px 34px rgba(15,23,42,0.16);
  backdrop-filter: blur(10px);
}
.dropdown-menu a {
  color: rgba(10,30,54,0.92);
}
.dropdown-menu a:hover {
  background: rgba(255,255,255,0.16);
}

/* Footer */
.footer {
  position: relative;
  overflow: hidden;
  margin-top: 46px;
  padding: 0 0 32px;
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
  background:
    linear-gradient(135deg, rgba(56,105,179,0.96), rgba(92,140,208,0.94)),
    url('assets/images/footer-bg-blue.png') center/cover no-repeat;
  color: rgba(255,255,255,0.92);
}
.footer-backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9,31,60,0.10), rgba(9,31,60,0.26));
}
.footer-pattern {
  position: absolute;
  inset: 0;
  background: url('assets/images/lines-white.png') right top/900px auto no-repeat;
  opacity: 0.30;
  pointer-events: none;
}
.footer-inner {
  position: relative;
  z-index: 2;
}
.footer-cta {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 24px;
  align-items: stretch;
  padding: 34px 0 28px;
  margin-bottom: 10px;
}
.footer-cta-copy,
.footer-cta-card {
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 24px;
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(8px);
  box-shadow: 0 14px 30px rgba(8,20,42,0.16);
}
.footer-cta-copy {
  padding: 28px 30px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.05)),
    url('assets/images/cta-bg.jpg') center/cover no-repeat;
  position: relative;
  overflow: hidden;
}
.footer-cta-copy::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(7,31,68,0.34), rgba(7,31,68,0.16));
}
.footer-cta-copy > * {
  position: relative;
  z-index: 2;
}
.footer-kicker {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.24);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-cta-copy h3 {
  margin: 0 0 12px;
  font-size: 31px;
  line-height: 1.15;
  color: #fff;
}
.footer-cta-copy p {
  margin: 0;
  max-width: 620px;
  color: rgba(255,255,255,0.88);
  font-size: 15px;
}
.footer-cta-card {
  padding: 24px 24px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.08));
}
.footer-cta-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  margin-bottom: 8px;
}
.footer-cta-name {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 6px;
}
.footer-cta-role {
  color: rgba(255,255,255,0.78);
  margin-bottom: 14px;
}
.footer-cta-email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  color: #1b457d;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(10,25,48,0.10);
  word-break: break-all;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 1.2fr .95fr;
  gap: 30px;
  margin-bottom: 28px;
}
.footer-col h4 {
  margin: 0 0 14px;
  font-size: 18px;
  letter-spacing: .4px;
  color: #fff;
}
.footer-col p,
.footer-col a {
  color: rgba(255,255,255,0.82);
  font-size: 14px;
  line-height: 1.8;
}
.footer-links a {
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.footer-links a:hover {
  opacity: 1;
  transform: translateX(2px);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
  color: rgba(255,255,255,0.72);
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.16);
}

/* Homepage logo refinement kept */
#home .hero-shell {
  max-width: 1180px;
  margin: 0 auto;
}
#home .hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
#home .logo-mark-image img {
  width: min(100%, 280px);
  margin: 0 auto;
}

@media (max-width: 980px) {
  .footer-cta {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .topbar-overlay {
    background:
      linear-gradient(90deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)),
      url('assets/images/lines-white.png') top right/420px auto no-repeat;
    opacity: 0.34;
  }
  .dropdown-menu {
    background: rgba(126,189,227,0.94);
  }
  .footer {
    margin-top: 32px;
    padding-bottom: 28px;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
  }
  .footer-pattern {
    background-size: 520px auto;
    opacity: 0.22;
  }
  .footer-cta {
    gap: 16px;
    padding: 24px 0 20px;
  }
  .footer-cta-copy,
  .footer-cta-card {
    border-radius: 18px;
  }
  .footer-cta-copy {
    padding: 22px 18px;
  }
  .footer-cta-copy h3 {
    font-size: 24px;
  }
  .footer-cta-card {
    padding: 20px 18px;
  }
  .footer-cta-name {
    font-size: 24px;
  }
  #home .logo-mark-image img {
    width: min(100%, 220px);
  }
}


/* Better texture visibility */
.topbar-overlay {
  mix-blend-mode: screen;
  opacity: 0.52 !important;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.10), rgba(255,255,255,0.02)),
    url('assets/images/lines-white.png') top right/700px auto no-repeat !important;
}
.footer-pattern {
  mix-blend-mode: screen;
  opacity: 0.40 !important;
  background: url('assets/images/lines-white.png') right top/900px auto no-repeat !important;
}

/* Footer CTA: less repetitive, cleaner spacing */
.footer-cta {
  grid-template-columns: 1.1fr 0.9fr !important;
  gap: 18px !important;
  padding: 26px 0 22px !important;
}
.footer-cta-copy {
  padding: 24px 26px !important;
}
.footer-cta-copy h3 {
  font-size: 28px !important;
  margin-bottom: 10px !important;
}
.footer-cta-copy p {
  max-width: 560px !important;
}
.footer-cta-card {
  padding: 22px 22px 20px !important;
}
.footer-cta-email {
  width: 100%;
  justify-content: center;
}

/* Reduce overlap feeling on homepage by tightening footer-top spacing */
#home + #site-footer .footer,
body:has(#home) .footer {
  margin-top: 28px;
}

/* Mobile dropdown sizing */
@media (max-width: 760px) {
  .topbar-overlay {
    background:
      linear-gradient(90deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)),
      url('assets/images/lines-white.png') top right/420px auto no-repeat !important;
    opacity: 0.42 !important;
  }
  .dropdown-menu {
    display: none;
  }
  .dropdown.dropdown-open .dropdown-menu {
    display: block !important;
  }
  .footer-pattern {
    background-size: 520px auto !important;
    opacity: 0.30 !important;
  }
  .footer-cta {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    padding: 20px 0 18px !important;
  }
  .footer-cta-copy,
  .footer-cta-card {
    border-radius: 18px;
  }
  .footer-cta-copy {
    padding: 20px 18px !important;
  }
  .footer-cta-copy h3 {
    font-size: 24px !important;
  }
  .footer-cta-card {
    padding: 18px !important;
  }
}


/* Stronger line texture like the sample */
.topbar-overlay {
  mix-blend-mode: normal !important;
  opacity: 0.92 !important;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01)),
    url('assets/images/lines-white.png') top right / 760px auto no-repeat !important;
}
.footer-pattern {
  mix-blend-mode: normal !important;
  opacity: 0.75 !important;
  background: url('assets/images/lines-white.png') top right / 920px auto no-repeat !important;
}

/* Make footer CTA feel distinct from homepage contact block */
.footer-cta-copy h3 {
  max-width: 560px;
}
.footer-cta-copy p {
  max-width: 520px !important;
}
.footer-cta-card {
  justify-content: center;
}
.footer-cta-label {
  margin-bottom: 10px;
}
.footer-cta-role {
  margin-bottom: 16px;
}
.footer-cta-email {
  max-width: 100%;
}

/* mobile */
@media (max-width: 760px) {
  .topbar-overlay {
    opacity: 0.82 !important;
    background:
      linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01)),
      url('assets/images/lines-white.png') top right / 520px auto no-repeat !important;
  }
  .footer-pattern {
    opacity: 0.62 !important;
    background-size: 620px auto !important;
  }
}


/* Final adjustment: keep header clean, apply line motif mainly to footer */
.topbar-lines{display:none !important;}
.topbar-overlay{background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)) !important; opacity:1 !important;}
.topbar{min-height:auto !important;}
.nav-wrap,.nav{min-height:auto !important;}
.footer-pattern{position:absolute; inset:0; pointer-events:none; z-index:1; background:none !important; opacity:1 !important;}
.footer-pattern img{position:absolute; top:0; right:0; width:min(68vw,980px); height:auto; max-width:none; opacity:0.7;}
@media (max-width:760px){ .footer-pattern img{width:min(115vw,720px); opacity:0.6;} }


/* Footer mobile responsiveness fix */
@media (max-width: 900px) {
  .footer-cta {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  .footer-links {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
}

@media (max-width: 760px) {
  .footer {
    margin-top: 28px !important;
    padding: 0 0 24px !important;
    border-top-left-radius: 22px !important;
    border-top-right-radius: 22px !important;
  }

  .footer-inner {
    width: min(calc(100% - 20px), 1180px) !important;
    margin: 0 auto !important;
  }

  .footer-cta {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    padding: 18px 0 16px !important;
  }

  .footer-cta-copy,
  .footer-cta-card {
    padding: 18px 16px !important;
    border-radius: 18px !important;
  }

  .footer-cta-copy h3 {
    font-size: 22px !important;
    line-height: 1.2 !important;
    max-width: 100% !important;
  }

  .footer-cta-copy p,
  .footer-col p,
  .footer-col a,
  .footer-cta-role {
    font-size: 14px !important;
    line-height: 1.65 !important;
  }

  .footer-cta-name {
    font-size: 22px !important;
    line-height: 1.15 !important;
  }

  .footer-cta-email {
    width: 100% !important;
    min-height: 44px !important;
    padding: 10px 14px !important;
    font-size: 15px !important;
    text-align: center !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    margin-bottom: 20px !important;
  }

  .footer-col h4 {
    font-size: 17px !important;
    margin-bottom: 10px !important;
  }

  .footer-bottom {
    flex-direction: column !important;
    text-align: center !important;
    gap: 8px !important;
    font-size: 12px !important;
    padding-top: 16px !important;
  }

  .footer-pattern img {
    width: min(135vw, 700px) !important;
    top: auto !important;
    bottom: 0 !important;
    right: -40px !important;
    opacity: 0.5 !important;
  }
}


/* Footer line overlay: bring it back and keep it visible */
.footer {
  overflow: hidden !important;
}
.footer-pattern {
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  z-index: 1 !important;
  display: block !important;
}
.footer-pattern img {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  width: min(72vw, 1100px) !important;
  height: auto !important;
  max-width: none !important;
  opacity: 0.72 !important;
  display: block !important;
}

/* Public information section: make it more compact */
@media (max-width: 900px) {
  .notice-card,
  .public-card,
  .info-card {
    max-width: 100% !important;
  }
}

@media (max-width: 760px) {
  .public-info-section,
  .public-information,
  .public-section {
    margin-bottom: 18px !important;
  }

  .notice-card,
  .public-card,
  .info-card {
    padding: 18px 16px !important;
    border-radius: 18px !important;
  }

  .notice-card h3,
  .public-card h3,
  .info-card h3 {
    font-size: 18px !important;
    line-height: 1.25 !important;
    margin-bottom: 10px !important;
  }

  .notice-card p,
  .public-card p,
  .info-card p {
    font-size: 14px !important;
    line-height: 1.6 !important;
    margin-bottom: 0 !important;
  }

  /* make the section visually horizontal/compact rather than very tall */
  .notice-card,
  .public-card,
  .info-card {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .footer-pattern img {
    width: min(125vw, 760px) !important;
    top: auto !important;
    bottom: -8px !important;
    right: -40px !important;
    opacity: 0.68 !important;
  }
}


/* Footer wave overlay - full-width crossing style */
.footer {
  position: relative !important;
  overflow: hidden !important;
}

.footer-pattern {
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  z-index: 1 !important;
  display: block !important;
}

.footer-pattern img {
  position: absolute !important;
  left: 50% !important;
  top: 45% !important;
  transform: translate(-50%, -50%) !important;
  width: min(120vw, 1500px) !important;
  height: auto !important;
  max-width: none !important;
  opacity: 0.72 !important;
  display: block !important;
}

.footer-inner {
  position: relative !important;
  z-index: 2 !important;
}

@media (max-width: 760px) {
  .footer-pattern img {
    left: 50% !important;
    top: 42% !important;
    transform: translate(-50%, -50%) !important;
    width: min(185vw, 1100px) !important;
    opacity: 0.62 !important;
  }
}


/* Footer wave visible full-width overlay */
.footer {
  position: relative !important;
  overflow: hidden !important;
}
.footer-pattern {
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  z-index: 1 !important;
  display: block !important;
}
.footer-pattern img {
  position: absolute !important;
  left: 50% !important;
  top: 52% !important;
  transform: translate(-50%, -50%) !important;
  width: min(128vw, 1650px) !important;
  height: auto !important;
  max-width: none !important;
  opacity: 0.75 !important;
  display: block !important;
}
.footer-inner {
  position: relative !important;
  z-index: 2 !important;
}
@media (max-width: 760px) {
  .footer-pattern img {
    left: 50% !important;
    top: 56% !important;
    transform: translate(-50%, -50%) !important;
    width: min(210vw, 1250px) !important;
    opacity: 0.68 !important;
  }
}
