/*
Theme Name: AoPEX
Theme URI: https://aopex.org/
Author: AoPEX
Description: Custom theme for the Association of Private Equity-Backed Executives, rebuilt from the studied aopex.org structure and content.
Version: 1.0
Text Domain: aopex
*/

/* ---- WordPress menu + tweaks layered on top of assets/style.css ---- */
.nav ul.aopex-menu,
.nav ul.menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 26px;
  margin: 0;
  padding: 0;
}
.nav ul li { margin: 0; position: relative; }
.nav ul li a {
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  display: inline-block;
}
.nav ul li a:hover,
.nav ul li.current-menu-item > a,
.nav ul li.current_page_item > a { color: var(--blue); }
.nav ul li.current-menu-item > a::after,
.nav ul li.current_page_item > a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px; background: var(--blue);
}

/* sub-menus */
.nav ul ul {
  position: absolute; top: 100%; left: 0; min-width: 200px;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  box-shadow: var(--shadow); padding: 8px 0; display: none; z-index: 60;
}
.nav ul li:hover > ul { display: block; }
.nav ul ul li { padding: 0 18px; white-space: nowrap; }
.nav ul ul li a { padding: 8px 0; display: block; }

/* entry content should not add Astra-like padding */
main#content { display: block; }

/* keep forms usable but tidy */
.form-card { width: min(780px, 92%); }
