/* Shared public site header (same look as index.html) */
.public-site-header {
  --ph-blue: #1a76d1;
  --ph-blue-dark: #145fa8;
  --ph-dark: #1e293b;
  --ph-mid: #334155;
  --ph-muted: #64748b;
  --ph-light: #f1f5f9;
  --ph-white: #fff;
  --ph-radius: 8px;
  --ph-shadow: 0 4px 24px rgba(0,0,0,.10);
  --ph-transition: .3s cubic-bezier(.4,0,.2,1);
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--ph-white);
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  font-family: 'Poppins', sans-serif;
}
.public-site-header *,
.public-site-header *::before,
.public-site-header *::after { box-sizing: border-box; }
.public-site-header a { text-decoration: none; color: inherit; }
.public-site-header ul { list-style: none; margin: 0; padding: 0; }

.public-site-header .ph-topbar {
  background: var(--ph-dark);
  padding: 8px 0;
  font-size: 13px;
}
.public-site-header .ph-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.public-site-header .ph-topbar .ph-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}
.public-site-header .ph-top-link,
.public-site-header .ph-top-contact { display: flex; gap: 20px; flex-wrap: wrap; }
.public-site-header .ph-top-link li a { color: #94a3b8; transition: color var(--ph-transition); }
.public-site-header .ph-top-link li a:hover { color: var(--ph-white); }
.public-site-header .ph-top-contact li {
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
}
.public-site-header .ph-top-contact li a { color: #94a3b8; }
.public-site-header .ph-top-contact li a:hover { color: var(--ph-white); }
.public-site-header .ph-top-contact li .fa { color: var(--ph-blue); font-size: 12px; }

.public-site-header .ph-inner { padding: 14px 0; }
.public-site-header .ph-inner .ph-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
}
.public-site-header .ph-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.public-site-header .ph-logo img { height: 52px; width: auto; display: block; }

.public-site-header .ph-main-menu nav ul { display: flex; gap: 6px; }
.public-site-header .ph-main-menu nav ul li { position: relative; }
.public-site-header .ph-main-menu nav ul li > a {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ph-mid);
  border-radius: var(--ph-radius);
  transition: color var(--ph-transition), background var(--ph-transition);
}
.public-site-header .ph-main-menu nav ul li > a:hover,
.public-site-header .ph-main-menu nav ul li.active > a {
  color: var(--ph-blue);
  background: rgba(26,118,209,.07);
}
.public-site-header .ph-main-menu nav ul li ul.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--ph-white);
  min-width: 210px;
  border-radius: var(--ph-radius);
  box-shadow: var(--ph-shadow);
  border: 1px solid #e2e8f0;
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--ph-transition);
  z-index: 200;
}
.public-site-header .ph-main-menu nav ul li:hover ul.dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.public-site-header .ph-main-menu nav ul li ul.dropdown li a {
  display: block;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 400;
  color: var(--ph-mid);
  border-radius: 0;
  transition: background var(--ph-transition), color var(--ph-transition);
}
.public-site-header .ph-main-menu nav ul li ul.dropdown li a:hover {
  background: var(--ph-light);
  color: var(--ph-blue);
}

.public-site-header .ph-cta .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ph-blue);
  color: var(--ph-white) !important;
  padding: 10px 22px;
  border-radius: var(--ph-radius);
  font-size: 13.5px;
  font-weight: 600;
  transition: background var(--ph-transition), transform var(--ph-transition);
  white-space: nowrap;
  border: none;
}
.public-site-header .ph-cta .btn:hover {
  background: var(--ph-blue-dark);
  transform: translateY(-1px);
  color: var(--ph-white) !important;
}

.public-site-header .ph-mob-tog {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 36px;
  height: 26px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.public-site-header .ph-mob-tog span {
  display: block;
  height: 3px;
  background: var(--ph-blue);
  border-radius: 3px;
  transition: all .25s;
}
.public-site-header .ph-mob-tog.active span:nth-child(1) { transform: translateY(11.5px) rotate(45deg); }
.public-site-header .ph-mob-tog.active span:nth-child(2) { opacity: 0; }
.public-site-header .ph-mob-tog.active span:nth-child(3) { transform: translateY(-11.5px) rotate(-45deg); }

#ph-mob-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 8000;
}
#ph-mob-overlay.open { display: block; }
#ph-mob-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 290px;
  height: 100vh;
  background: #1e293b;
  z-index: 8001;
  transform: translateX(-100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: 'Poppins', sans-serif;
}
#ph-mob-nav.open { transform: translateX(0); }
#ph-mob-nav .mob-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
}
#ph-mob-nav .mob-nav-head img { height: 40px; width: auto; }
#ph-mob-nav .mob-nav-head button {
  background: rgba(255,255,255,.1);
  border: none;
  color: #fff;
  font-size: 22px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
#ph-mob-nav .mob-menu { padding: 8px 0; flex: 1; overflow-y: auto; list-style: none; margin: 0; }
#ph-mob-nav .mob-menu li > a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 20px;
  color: #cbd5e1;
  font-size: 13.5px;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: all .15s;
  text-decoration: none;
}
#ph-mob-nav .mob-menu li > a:hover {
  color: #fff;
  background: rgba(255,255,255,.06);
  border-left-color: #1a76d1;
}
#ph-mob-nav .mob-menu li > a .fa:first-child {
  width: 18px;
  text-align: center;
  font-size: 14px;
  opacity: .75;
  flex-shrink: 0;
}
#ph-mob-nav .mob-arrow { margin-left: auto; font-size: 11px; transition: transform .25s; flex-shrink: 0; }
#ph-mob-nav .mob-sub {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  background: rgba(0,0,0,.2);
}
#ph-mob-nav .mob-sub.open { max-height: 300px; }
#ph-mob-nav .mob-sub li a {
  padding: 10px 20px 10px 46px;
  color: #94a3b8;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-left: 3px solid transparent;
  transition: all .15s;
  text-decoration: none;
}
#ph-mob-nav .mob-sub li a:hover {
  color: #e2e8f0;
  background: rgba(255,255,255,.04);
  border-left-color: rgba(26,118,209,.5);
}
#ph-mob-nav .mob-has-sub.sub-open > a .mob-arrow { transform: rotate(180deg); }
#ph-mob-nav .mob-nav-foot {
  padding: 14px 18px;
  border-top: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
}
#ph-mob-nav .mob-portal-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #1a76d1;
  color: #fff !important;
  padding: 11px 20px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  transition: background .15s;
  text-decoration: none;
}
#ph-mob-nav .mob-portal-btn:hover { background: #145fa8; color: #fff !important; }

@media (max-width: 1024px) {
  .public-site-header .ph-main-menu nav ul li > a { padding: 10px 10px; font-size: 13px; }
}
@media (max-width: 768px) {
  .public-site-header .ph-topbar { display: none; }
  .public-site-header .ph-main-menu,
  .public-site-header .ph-cta { display: none !important; }
  .public-site-header .ph-inner { padding: 10px 0; }
  .public-site-header .ph-logo img { height: 42px; }
  .public-site-header .ph-mob-tog { display: flex; }
}
