/* Shared site header & footer (included on all pages) */
:root {
  --blue: #0077B6;
  --blue-dark: #005A8C;
  --blue-light: #EBF5FB;
  --pink: #E8537A;
  --text: #1A202C;
  --muted: #4A5568;
  --border: #E2E8F0;
  --white: #fff;
  --shadow-lg: 0 20px 50px rgba(0, 55, 90, 0.12);
}

.container { max-width: 1240px; margin: 0 auto; padding: 0 28px; }

.h-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  overflow: visible;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  transition: box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.h-nav.is-scrolled {
  background: rgba(255, 255, 255, 0.97);
  border-bottom-color: transparent;
  box-shadow: 0 6px 28px rgba(0, 55, 90, 0.08);
}
.h-nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  height: 84px;
  display: flex; align-items: center; gap: 20px;
  flex-wrap: nowrap;
  position: relative;
}
.h-nav-logo { flex-shrink: 0; display: flex; align-items: center; }
.h-nav-logo img {
  height: 68px; width: auto; max-width: 300px;
  object-fit: contain; display: block;
}
.h-nav-cluster {
  display: flex; align-items: center; gap: 14px;
  flex: 1; min-width: 0; justify-content: flex-end;
  flex-wrap: nowrap;
}
.h-nav-links {
  display: flex; align-items: center; gap: 3px;
  flex-wrap: nowrap; white-space: nowrap;
  padding: 5px;
  background: linear-gradient(180deg, #F8FAFC 0%, #F1F5F9 100%);
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.h-nav-links > a, .h-drop > button {
  padding: 9px 13px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.01em;
  color: #4A5568;
  background: none; border: none; cursor: pointer; border-radius: 10px;
  display: inline-flex; align-items: center; gap: 5px;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
  white-space: nowrap; flex-shrink: 0;
}
.h-nav-links > a:hover, .h-drop:hover > button,
.h-drop.is-open > button {
  color: var(--blue);
  background: rgba(255, 255, 255, 0.85);
}
.h-nav-links > a.on,
.h-drop > button.on {
  color: var(--blue);
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 60, 100, 0.1);
}
.h-nav-contact {
  flex-shrink: 0;
  padding: 10px 18px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12.5px; font-weight: 700;
  color: var(--blue);
  background: #fff;
  border: 1.5px solid rgba(0, 119, 182, 0.35);
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  white-space: nowrap;
}
.h-nav-contact:hover {
  background: var(--blue-light);
  border-color: var(--blue);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 119, 182, 0.15);
}
.h-nav-contact.on {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  box-shadow: 0 4px 14px rgba(0, 119, 182, 0.25);
}
.h-drop { position: relative; flex-shrink: 0; }
.h-drop::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  height: 14px;
  display: none;
}
.h-drop:hover::after,
.h-drop.is-open::after { display: block; }
.h-drop > button i {
  font-size: 9px; opacity: 0.5;
  transition: transform 0.2s ease;
}
.h-drop:hover > button i,
.h-drop.is-open > button i { transform: rotate(180deg); opacity: 0.85; }
.h-drop-menu {
  display: none; position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 232px; background: var(--white);
  border: 1px solid rgba(226, 232, 240, 0.95); border-radius: 14px; padding: 8px;
  box-shadow: 0 16px 40px rgba(0, 55, 90, 0.12);
  z-index: 210;
}
.h-drop:hover .h-drop-menu,
.h-drop.is-open .h-drop-menu { display: block; animation: fadeDown 0.2s ease; }
.h-drop-menu a {
  display: block; padding: 10px 14px; font-size: 13px; font-weight: 500;
  color: #4A5568; border-radius: 9px; transition: all 0.15s;
}
.h-drop-menu a:hover {
  background: var(--blue-light); color: var(--blue);
  padding-left: 18px;
}
.h-menu-btn {
  display: none;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 10px;
  font-size: 18px; color: var(--text); cursor: pointer;
  flex-shrink: 0; margin-left: auto;
  transition: background 0.2s, border-color 0.2s;
}
.h-menu-btn:hover { background: var(--blue-light); border-color: #BEE3F8; color: var(--blue); }

/* Header social icons */
.h-nav-social {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  padding-left: 4px;
}
.h-nav-social-divider {
  width: 1px;
  height: 28px;
  background: #CBD5E0;
  margin-right: 8px;
  flex-shrink: 0;
}
.h-nav-social a {
  width: 34px; height: 34px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #718096;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s, background 0.2s, transform 0.2s;
}
.h-nav-social a:hover {
  color: var(--blue);
  background: var(--blue-light);
  transform: translateY(-1px);
}

/* Side rail — GPTW badge + social (moinee.org style) */
.h-side-rail {
  display: none;
  position: fixed;
  top: 84px;
  right: 0;
  z-index: 205;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 56px;
  padding-top: 0;
  pointer-events: none;
}
.h-side-rail-gptw {
  display: block;
  pointer-events: auto;
  line-height: 0;
  transition: transform 0.25s ease;
}
.h-side-rail-gptw img {
  display: block;
  max-height: 130px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(0, 55, 90, 0.12));
  transition: filter 0.25s ease;
}
.h-side-rail-gptw:hover {
  transform: translateY(-2px);
}
.h-side-rail-gptw:hover img {
  filter: drop-shadow(0 10px 24px rgba(0, 55, 90, 0.18));
}

.h-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-size: 14px; font-weight: 700;
  font-family: 'Montserrat', sans-serif; border: 2px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  cursor: pointer; text-decoration: none;
}
.h-btn:hover { transform: translateY(-2px); }
.h-btn-pink {
  background: linear-gradient(135deg, var(--pink) 0%, #FF6B8A 100%);
  color: #fff; box-shadow: 0 8px 24px rgba(232,83,122,0.35);
}
.h-btn-outline {
  border-color: var(--blue); color: var(--blue); background: var(--white);
}
.h-btn-outline:hover { background: var(--blue-light); }

.h-footer {
  background: linear-gradient(180deg, #0d2137 0%, #081824 100%);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 0;
}
.h-footer-logo {
  height: 72px; width: auto; max-width: 320px; object-fit: contain;
  filter: brightness(0) invert(1); opacity: 0.92; margin-bottom: 14px;
}
.h-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 28px 32px;
  align-items: start;
  margin-bottom: 28px;
}
.h-footer-brand p {
  font-size: 14px;
  line-height: 1.65;
  max-width: 280px;
  margin: 0;
}
.h-footer p { font-size: 14px; line-height: 1.65; max-width: 280px; margin: 0; }
.h-footer h4 {
  color: #fff; font-family: 'Montserrat', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 14px;
}
.h-footer ul { list-style: none; }
.h-footer li { margin-bottom: 8px; }
.h-footer a { font-size: 14px; color: rgba(255,255,255,0.6); transition: color 0.2s; }
.h-footer a:hover { color: #fff; }
.h-footer-contact li {
  display: flex; gap: 10px; font-size: 13px; align-items: flex-start;
}
.h-footer-contact i { color: var(--pink); margin-top: 3px; flex-shrink: 0; }

.h-footer-gptw {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  position: absolute;
  right: 0;
}
.h-footer-gptw img {
  height: 40px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}
.h-footer-gptw span {
  font-size: 11px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}

.h-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 16px 0 20px;
}
.h-footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  text-align: center;
}

body.page-inner { padding-top: 84px; }

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1100px) {
  .h-nav-links > a, .h-drop > button { padding: 8px 10px; font-size: 12px; }
  .h-nav-contact { padding: 9px 14px; font-size: 12px; }
  .h-nav-social a { width: 30px; height: 30px; font-size: 13px; }
}
@media (min-width: 993px) {
  .h-side-rail { display: flex; }
}
@media (max-width: 992px) {
  .h-side-rail {
    display: flex;
    top: 84px;
    width: 46px;
  }
  .h-side-rail-gptw img { max-height: 92px; }
  .h-nav-social { display: none; }
  .h-nav-cluster { display: none; }
  .h-nav-cluster.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 84px; left: 0; right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    padding: 16px 20px 20px;
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg);
    z-index: 199; gap: 14px;
    max-height: calc(100vh - 84px); overflow-y: auto;
  }
  .h-nav-cluster.open .h-nav-links {
    flex-direction: column; align-items: stretch;
    background: none; border: none; box-shadow: none; padding: 0; gap: 4px;
  }
  .h-nav-cluster.open .h-nav-links > a,
  .h-nav-cluster.open .h-drop > button {
    width: 100%; justify-content: space-between;
    padding: 12px 14px; font-size: 14px;
    background: #F8FAFC; border: 1px solid #EDF2F7;
  }
  .h-nav-cluster.open .h-nav-links > a.on,
  .h-nav-cluster.open .h-drop > button.on {
    background: var(--blue-light); border-color: #BEE3F8;
  }
  .h-nav-cluster.open .h-nav-contact {
    width: 100%; text-align: center; padding: 14px;
  }
  .h-nav-cluster.open .h-nav-social {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 12px 0 4px;
    border-top: 1px solid #E2E8F0;
    margin-top: 4px;
  }
  .h-nav-cluster.open .h-nav-social-divider { display: none; }
  .h-menu-btn { display: inline-flex; }
  .h-drop-menu {
    position: static; box-shadow: none; border: none;
    display: none; padding: 4px 0 4px 8px; min-width: 0;
    background: transparent;
  }
  .h-drop.is-open .h-drop-menu { display: block; }
  .h-drop:hover .h-drop-menu { display: none; }
  .h-drop.is-open:hover .h-drop-menu { display: block; }
}

@media (max-width: 768px) {
  .h-nav-inner { height: 64px; padding: 0 16px; }
  .h-nav-logo img { height: 48px; max-width: 200px; }
  body.page-inner { padding-top: 64px; }
  .h-nav-cluster.open {
    top: 64px;
    max-height: calc(100vh - 64px);
  }
  .h-side-rail {
    top: 64px;
    width: 40px;
  }
  .h-side-rail-gptw img { max-height: 68px; }
  .h-footer-gptw {
    position: static;
    justify-content: center;
    margin-top: 4px;
  }
  .h-footer-gptw img { height: 36px; }
  .h-footer-gptw span { white-space: normal; text-align: center; }
  .h-footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .h-footer-bottom { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .h-side-rail { width: 36px; }
  .h-side-rail-gptw img { max-height: 56px; }
  .h-footer-grid { grid-template-columns: 1fr; }
  .h-footer { padding-top: 36px; }
}
