/* Header polish (header-1.php + partials/site-nav.php): promo top bar, account actions, Subscribe CTA,
   magazines mega-menu, active states, mobile off-canvas CTA. Loaded on every public page. */

/* Top bar */
.ep-topbar .header__topbar--inner { min-height: 40px; gap: 16px; }
.ep-topbar__contact, .ep-topbar__account { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 18px; }
.ep-topbar__contact a, .ep-topbar__account a { display: inline-flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .9); font-size: 1.35rem; font-weight: 500; transition: color .2s ease; }
.ep-topbar__contact a:hover, .ep-topbar__account a:hover { color: #fff; }
.ep-topbar__promo { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-size: 1.35rem; font-weight: 500; white-space: nowrap; }
.ep-topbar__promo:hover { color: #fff; }
.ep-topbar__promo:hover b { transform: translateX(3px); }
.ep-topbar__promo b { display: inline-block; transition: transform .2s ease; }
.ep-topbar__badge { font-size: 1.05rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: #fff; color: #c81a4d; padding: 2px 8px; border-radius: 999px; }
.ep-topbar__account li + li { padding-left: 18px; border-left: 1px solid rgba(255, 255, 255, .3); }
.ep-topbar__reg { font-weight: 600 !important; }

/* Logo (was an <h1> on every page) */
.main__logo { margin: 0; }
.main__logo--link { display: inline-block; line-height: 0; }

/* Header actions + Subscribe CTA */
.ep-hdr-actions > ul { gap: 4px; }
.ep-hdr-actions .header__account--btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: #061738; transition: background .2s ease, color .2s ease; }
.ep-hdr-actions .header__account--btn:hover { background: #fbf3f6; color: #ee2761; }
.ep-hdr-cta { display: inline-flex; align-items: center; height: 44px; padding: 0 22px; margin-left: 8px; border-radius: 12px; font-size: 1.5rem; font-weight: 600; color: #fff !important; background: linear-gradient(135deg, #ee2761 0%, #c81a4d 55%, #8e1446 100%); box-shadow: 0 6px 16px rgba(238, 39, 97, .28); white-space: nowrap; transition: transform .15s ease, box-shadow .2s ease, filter .2s ease; }
.ep-hdr-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(238, 39, 97, .36); filter: saturate(1.1); }

/* Menu: active + hot states */
.header__menu--items.ep-nav-on > .header__menu--link { color: #ee2761; }
.header__menu--items.ep-nav-on > .header__menu--link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px; background: #ee2761; }
.header__menu--items > .header__menu--link { position: relative; }
.ep-nav-hot { font-weight: 600 !important; }
.ep-nav-hot::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; vertical-align: 2px; border-radius: 50%; background: #18b26b; box-shadow: 0 0 0 3px rgba(24, 178, 107, .2); }

/* Magazines mega-menu (reuses the theme's .header__sub--menu show-on-hover) */
.header__sub--menu.ep-mega { width: 560px; padding: 14px; border-radius: 16px; box-shadow: 0 24px 50px rgba(6, 23, 56, .16); border: 1px solid #ebe7ee; }
.ep-mega__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.ep-mega__item { display: block; padding: 10px 12px; border-radius: 10px; color: #061738; transition: background .15s ease; }
.ep-mega__item:hover { background: #fbf3f6; color: #061738; }
.ep-mega__item b { display: block; font-size: 1.5rem; font-weight: 600; line-height: 1.3; }
.ep-mega__item small { display: block; font-size: 1.25rem; color: #5f6577; line-height: 1.4; }
.ep-mega__item:hover b { color: #ee2761; }
.ep-mega__item--all b { color: #ee2761; }
.ep-mega__cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: linear-gradient(160deg, #0b1d3f 0%, #061738 70%); color: #fff; }
.ep-mega__cta:hover { color: #fff; }
.ep-mega__cta b { display: block; font-size: 1.45rem; }
.ep-mega__cta small { display: block; font-size: 1.2rem; color: rgba(255, 255, 255, .72); }
.ep-mega__cta i { font-style: normal; font-weight: 600; font-size: 1.35rem; white-space: nowrap; background: #fff; color: #061738; padding: 6px 12px; border-radius: 9px; }

/* Bottom bar note */
.ep-hdr-note { display: inline-flex; align-items: center; gap: 8px; font-size: 1.35rem; color: #5f6577; white-space: nowrap; }
.ep-hdr-note b { color: #061738; }
.ep-hdr-note:hover b { color: #ee2761; }
.ep-hdr-note__dot { width: 8px; height: 8px; border-radius: 50%; background: #18b26b; box-shadow: 0 0 0 3px rgba(24, 178, 107, .18); }

/* Mobile off-canvas */
.ep-oc-cta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 16px 14px; padding: 14px 16px; border-radius: 14px; background: linear-gradient(135deg, #ee2761 0%, #c81a4d 55%, #8e1446 100%); color: #fff !important; box-shadow: 0 8px 20px rgba(238, 39, 97, .28); }
.ep-oc-cta b { display: block; font-size: 1.55rem; }
.ep-oc-cta small { display: block; font-size: 1.2rem; opacity: .85; }
.ep-oc-cta i { font-style: normal; font-size: 2rem; }
.offcanvas__menu_li.ep-nav-on > .offcanvas__menu_item { color: #ee2761; }
.ep-nav-pill { display: inline-block; margin-left: 6px; font-size: 1.1rem; font-weight: 600; color: #0a7a43; background: #e6f6ee; padding: 1px 8px; border-radius: 999px; vertical-align: 1px; }
.ep-oc-account { display: flex !important; gap: 8px; padding: 18px 16px 6px; }
.ep-oc-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; height: 44px; border-radius: 12px; font-size: 1.45rem; font-weight: 600; color: #fff !important; background: #061738; }
.ep-oc-btn--line { background: #fff; color: #061738 !important; border: 1px solid #d9d4de; }
.ep-oc-contact { list-style: none; margin: 0; padding: 8px 16px 24px; display: grid; gap: 4px; }
.ep-oc-contact a { font-size: 1.4rem; color: #5f6577; }

@media (max-width: 991px) {
  .ep-topbar .header__topbar--inner { justify-content: center; min-height: 36px; }
  .ep-topbar__contact { display: none; }
  .ep-topbar__promo { font-size: 1.3rem; }
}
@media (max-width: 1199px) {
  .ep-hdr-note { display: none; }
}

/* Sticky header row: keep the menu on one line */
.header__menu--link { white-space: nowrap; }
.main__header .header__menu--items { margin-right: 2.4rem; }
.main__header .header__menu--items:last-child { margin-right: 0; }
@media (max-width: 1499px) {
  .main__header .header__menu--items:nth-child(4),
  .main__header .header__menu--items:nth-child(5),
  .main__header .header__menu--items:nth-child(6) { display: none; }
}
.ep-oc-cta b { font-size: 1.5rem; line-height: 1.3; }
.ep-oc-cta small { font-size: 1.15rem; line-height: 1.35; margin-top: 2px; }
