/* IEO site header and footer (same as /essaychallenge), kept apart from the page styles. */
.ieo-container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.ieo-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.ieo-topbar {
  display: flex;
  justify-content: flex-end;
  gap: 28px;
  padding: 16px 0 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.76);
}

.ieo-header a {
  text-decoration: none;
}

.ieo-topbar a:hover,
.ieo-nav-links a:hover {
  color: var(--gold);
}

.ieo-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 14px 0 24px;
}

.ieo-brand img {
  width: 48px;
  height: 48px;
}

.ieo-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  font-size: 15px;
  font-weight: 600;
}

.ieo-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 22px;
  border-radius: var(--radius-button);
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  transition: background 180ms ease, transform 180ms ease;
}

.ieo-header-cta:hover {
  background: #f4d49e;
}

.ieo-header-cta:active {
  transform: translateY(1px);
}

/* Keep section headings visible below the sticky header. */
section[id] {
  scroll-margin-top: 150px;
}

.ieo-footer {
  padding: 56px 0;
  background: var(--navy);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.ieo-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 56px;
  align-items: start;
}

.ieo-footer-grid img {
  width: 48px;
  margin-bottom: 28px;
}

.ieo-footer-grid p,
.ieo-footer-grid address {
  color: rgba(255, 255, 255, 0.7);
  font-style: normal;
  line-height: 1.55;
}

@media (max-width: 1024px) {
  .ieo-topbar,
  .ieo-nav-links {
    display: none;
  }

  .ieo-footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  section[id] {
    scroll-margin-top: 96px;
  }
}

@media (max-width: 680px) {
  .ieo-container {
    width: min(100% - 28px, 1200px);
  }

  .ieo-navbar {
    padding: 12px 0 16px;
  }
}
