.amh-root {
  --amh-primary: #496f88;
  --amh-navy: #15283a;
  --amh-accent: #e08b62;
  --amh-cream: #f7f3ec;
  --amh-green: #24735e;
  --amh-border: #dfe7ea;
  --amh-muted: #60727d;
  --amh-logo-width: 190px;
  position: relative;
  z-index: 9999;
  color: var(--amh-navy);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.45;
  box-sizing: border-box;
}

.amh-root *,
.amh-root *::before,
.amh-root *::after { box-sizing: border-box; }
.amh-root a { text-decoration: none; }
.amh-root button,
.amh-root input { font: inherit; }
.amh-root .amh-icon.dashicons {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 20px;
  line-height: 1;
}
.amh-root svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.amh-container { width: min(1300px, calc(100% - 40px)); margin-inline: auto; }
.amh-skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 10005;
  padding: 10px 15px;
  border-radius: 0 0 6px 6px;
  background: var(--amh-navy);
  color: #fff;
}
.amh-skip-link:focus { top: 0; }

/* Announcement */
.amh-announcement { background: var(--amh-primary); color: #fff; }
.amh-announcement-inner {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 7px 42px;
}
.amh-announcement p { margin: 0; text-align: center; font-size: 12.5px; font-weight: 600; }
.amh-announcement a { margin-left: 7px; color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.amh-announcement-close {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.amh-announcement-close:hover { background: rgba(255,255,255,.12); }
.amh-announcement-close .amh-icon { font-size: 19px; }

/* Main header */
.amh-site-header { background: #fff; border-bottom: 1px solid var(--amh-border); }
.amh-site-header.is-sticky { position: sticky; top: 0; z-index: 9998; }
.admin-bar .amh-site-header.is-sticky { top: 32px; }
.amh-header-main {
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(180px, 230px) minmax(280px, 1fr) auto;
  align-items: center;
  gap: 24px;
}
.amh-logo { display: inline-flex; align-items: center; gap: 10px; min-width: 0; color: var(--amh-navy); }
.amh-logo-image {
  display: block;
  width: min(var(--amh-logo-width), 100%);
  height: auto;
  max-height: 58px;
  object-fit: contain;
  object-position: left center;
}
.amh-logo-icon { display: block; width: 42px; height: 42px; border-radius: 8px; object-fit: contain; }
.amh-logo-text { color: var(--amh-navy); font-size: 22px; line-height: 1; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.amh-logo-text small { display: block; margin-top: 6px; color: var(--amh-muted); font-size: 8px; line-height: 1.2; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.amh-search {
  height: 44px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid #ccd8dd;
  border-radius: 7px;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.amh-search:focus-within { border-color: var(--amh-primary); box-shadow: 0 0 0 3px rgba(73,111,136,.12); }
.amh-search input[type="search"] {
  appearance: none;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0 8px 0 14px;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  color: var(--amh-navy);
  font-size: 13px;
}
.amh-search input::placeholder { color: #778891; opacity: 1; }
.amh-search button {
  width: 45px;
  height: 100%;
  flex: 0 0 45px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: #f3f7f8;
  color: var(--amh-primary);
  cursor: pointer;
}
.amh-search button:hover { background: #eaf0f2; color: var(--amh-navy); }
.amh-actions { display: flex; align-items: center; gap: 3px; }
.amh-action {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 9px;
  border-radius: 6px;
  color: var(--amh-navy);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.amh-action:hover { background: #f2f6f7; color: var(--amh-primary); }
.amh-action .amh-icon { font-size: 20px; }
.amh-action-whatsapp { color: var(--amh-green); }
.amh-cart { position: relative; min-width: 40px; }
.amh-cart-count {
  position: absolute;
  right: 0;
  top: 0;
  min-width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  border: 2px solid #fff;
  border-radius: 10px;
  background: var(--amh-navy);
  color: #fff;
  font-size: 8px;
  line-height: 1;
}
.amh-mobile-menu-button,
.amh-mobile-search-wrap { display: none; }

/* Desktop navigation */
.amh-desktop-nav { border-top: 1px solid #edf1f2; }
.amh-nav-inner { height: 51px; display: flex; align-items: center; gap: 3px; position: relative; }
.amh-nav-link {
  height: 51px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  position: relative;
  padding: 0 11px;
  border: 0;
  background: transparent;
  color: var(--amh-navy);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.amh-nav-link::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: -1px;
  height: 2px;
  background: var(--amh-primary);
  transform: scaleX(0);
  transition: transform .15s;
}
.amh-nav-link:hover,
.amh-nav-link:focus-visible,
.amh-nav-link[aria-expanded="true"] { color: var(--amh-primary); outline: none; }
.amh-nav-link:hover::after,
.amh-nav-link:focus-visible::after,
.amh-nav-link[aria-expanded="true"]::after { transform: scaleX(1); }
.amh-has-menu > .amh-icon { width: 13px; height: 13px; font-size: 13px; transition: transform .15s; }
.amh-has-menu[aria-expanded="true"] > .amh-icon { transform: rotate(180deg); }
.amh-home-link { gap: 6px; }
.amh-home-link .amh-icon { width: 16px; height: 16px; font-size: 16px; }
.amh-free-link { gap: 7px; }
.amh-free-link > span {
  padding: 2px 5px;
  border: 1px solid #b9d8ce;
  border-radius: 4px;
  color: var(--amh-green);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.amh-shop-button {
  min-width: 88px;
  height: 36px;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  border: 1px solid #b8c9d2;
  border-radius: 6px;
  background: #fff;
  color: var(--amh-navy) !important;
  font-size: 12px;
  font-weight: 800;
  transition: background .15s, border-color .15s, color .15s;
}
.amh-shop-button:hover { border-color: var(--amh-primary); background: #f2f6f7; color: var(--amh-primary) !important; }
.amh-shop-button .amh-icon { width: 17px; height: 17px; font-size: 17px; }
.amh-nav-item { position: static; }

/* Mega menus */
.amh-mega-panel {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  z-index: 30;
  padding: 24px;
  border: 1px solid var(--amh-border);
  border-top: 2px solid var(--amh-primary);
  border-radius: 0 0 10px 10px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(21,40,58,.11);
  transform: translateY(6px);
  transition: opacity .14s, transform .14s, visibility .14s;
}
.amh-mega-panel.is-open,
.amh-mega-item:hover > .amh-mega-panel,
.amh-mega-item:focus-within > .amh-mega-panel { visibility: visible; opacity: 1; pointer-events: auto; transform: translateY(0); }
.amh-mega-wide { width: 100%; }
.amh-mega-medium { width: min(800px, 100%); }
.amh-books-item .amh-mega-medium { left: 92px; }
.amh-audience-item .amh-mega-medium { left: 220px; }
.amh-mega-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--amh-border);
}
.amh-mega-heading.compact { margin-bottom: 15px; padding-bottom: 13px; }
.amh-mega-heading span,
.amh-column-label { display: block; margin-bottom: 4px; color: var(--amh-primary); font-size: 9px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.amh-mega-heading h2 { margin: 0; color: var(--amh-navy); font-size: 20px; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; }
.amh-mega-heading > a { display: flex; align-items: center; gap: 6px; color: var(--amh-primary); font-size: 11px; font-weight: 700; }
.amh-mega-heading > a .amh-icon { width: 14px; height: 14px; font-size: 14px; }
.amh-subject-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.amh-subject-card { min-width: 0; padding: 16px; border: 1px solid var(--amh-border); border-radius: 8px; background: #fff; }
.amh-subject-card:hover { border-color: #b8cbd4; }
.amh-mega-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--amh-navy); font-size: 15px; line-height: 1.3; font-weight: 800; }
.amh-mega-title .amh-icon { width: 14px; height: 14px; color: var(--amh-primary); font-size: 14px; flex: 0 0 auto; }
.amh-subject-card > p { min-height: 31px; margin: 6px 0 11px; color: var(--amh-muted); font-size: 10.5px; line-height: 1.45; }
.amh-levels { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.amh-levels > a,
.amh-levels > span {
  min-height: 27px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px;
  border-bottom: 1px solid #edf1f2;
  color: #849199;
  font-size: 9px;
  font-weight: 700;
}
.amh-levels > a { color: var(--amh-navy); }
.amh-levels > a span,
.amh-levels em { color: #89969d; font-size: 6.5px; font-style: normal; letter-spacing: .04em; text-transform: uppercase; }
.amh-levels > a span { color: var(--amh-green); }
.amh-mega-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin: 20px -24px -24px;
  padding: 12px 24px;
  border-top: 1px solid var(--amh-border);
  border-radius: 0 0 9px 9px;
  background: #f7f9f9;
  color: var(--amh-muted);
  font-size: 11px;
}
.amh-mega-footer a { display: flex; align-items: center; gap: 5px; color: var(--amh-navy); font-weight: 800; }
.amh-mega-footer .amh-icon { width: 14px; height: 14px; color: var(--amh-primary); font-size: 14px; }
.amh-mega-columns { display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: 24px; }
.amh-mega-columns.two { grid-template-columns: 1fr 1fr; }
.amh-link-list { margin: 0 !important; padding: 0 !important; list-style: none !important; }
.amh-link-list li { margin: 0 !important; padding: 0 !important; }
.amh-link-list a {
  min-height: 33px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding: 5px 7px;
  border-radius: 5px;
  color: #344b59;
  font-size: 11.5px;
  font-weight: 600;
}
.amh-link-list a:hover { background: #f2f6f7; color: var(--amh-primary); }
.amh-link-list .amh-icon { width: 13px; height: 13px; font-size: 13px; opacity: .45; }
.amh-feature-card {
  min-height: 165px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 19px;
  border: 1px solid #cedbe0;
  border-radius: 8px;
  background: #f5f8f9;
  color: var(--amh-navy);
}
.amh-feature-card::after { display: none; }
.amh-feature-card > span { padding: 3px 6px; border-radius: 3px; background: #e5eef1; color: var(--amh-primary); font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.amh-feature-card strong { margin: 11px 0 6px; font-size: 17px; line-height: 1.3; font-weight: 800; }
.amh-feature-card small { max-width: 230px; color: var(--amh-muted); line-height: 1.5; }
.amh-feature-card .amh-icon { width: 16px; height: 16px; margin-top: auto; color: var(--amh-primary); font-size: 16px; }
.amh-resources-item { position: relative; }
.amh-dropdown { left: 0; width: 235px; padding: 12px; border-radius: 0 0 8px 8px; }

/* Mobile drawer and WhatsApp */
.amh-mobile-overlay,
.amh-mobile-drawer { display: none; }
.amh-floating-wa {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9997;
  min-height: 45px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 7px;
  border-radius: 24px;
  background: #1f785f;
  box-shadow: 0 8px 22px rgba(17,66,54,.22);
  color: #fff !important;
  font-size: 11px;
  transition: transform .15s;
}
.amh-floating-wa:hover { transform: translateY(-2px); }
.amh-floating-wa > span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.12); }
.amh-floating-wa > span svg { width: 20px; height: 20px; }
.amh-floating-wa b { font-weight: 700; }
.amh-back-to-top {
  position: fixed;
  right: 22px;
  bottom: 78px;
  z-index: 9997;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #cbd8dc;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 22px rgba(21,40,58,.16);
  color: var(--amh-navy);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .2s, visibility .2s, transform .2s, color .15s, border-color .15s;
}
.amh-back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.amh-back-to-top:hover,
.amh-back-to-top:focus-visible { border-color: var(--amh-primary); color: var(--amh-primary); outline: 3px solid rgba(73,111,136,.14); outline-offset: 2px; }
.amh-back-to-top .amh-icon { width: 20px; height: 20px; font-size: 20px; }

/* Auto-created starter page */
.amh-starter-page { color: #15283a; font-family: Arial, Helvetica, sans-serif; }
.amh-starter-hero { padding: 90px 24px; background: #eef4f3; }
.amh-starter-inner { width: min(1100px, 100%); margin: 0 auto; }
.amh-starter-hero span { display: block; color: #496f88; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.amh-starter-hero h1 { max-width: 850px; margin: 13px 0 18px; font-size: clamp(38px, 7vw, 68px); line-height: 1.04; font-weight: 800; letter-spacing: -.03em; }
.amh-starter-hero p { max-width: 750px; margin: 0 0 28px; color: #52656d; font-size: clamp(17px, 2.2vw, 21px); line-height: 1.6; }
.amh-starter-hero div div { display: flex; gap: 11px; flex-wrap: wrap; }
.amh-starter-primary,
.amh-starter-secondary { min-height: 49px; display: inline-flex; align-items: center; justify-content: center; padding: 0 20px; border-radius: 6px; font-weight: 700; }
.amh-starter-primary { background: #496f88; color: #fff !important; }
.amh-starter-secondary { border: 1px solid #496f88; background: #fff; color: #31576f !important; }
.amh-starter-note { padding: 55px 24px; background: #fff; }
.amh-starter-note h2 { margin: 0 0 11px; font-size: 29px; line-height: 1.2; font-weight: 800; }
.amh-starter-note p { max-width: 720px; color: #687980; line-height: 1.7; }
.screen-reader-text { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

@media (max-width: 1180px) {
  .amh-container { width: min(100% - 30px, 1300px); }
  .amh-header-main { grid-template-columns: 180px minmax(220px,1fr) auto; gap: 15px; }
  .amh-logo-image { max-width: 175px; }
  .amh-action span:not(.amh-cart-count) { display: none; }
  .amh-action { padding: 7px; }
  .amh-nav-link { padding-inline: 8px; font-size: 12px; }
  .amh-subject-card { padding: 13px; }
  .amh-books-item .amh-mega-medium { left: 62px; }
  .amh-audience-item .amh-mega-medium { left: 155px; }
}

@media (max-width: 960px) {
  body.amh-drawer-open { overflow: hidden; }
  .amh-container { width: calc(100% - 28px); }
  .amh-announcement-inner { min-height: 40px; padding-inline: 32px; }
  .amh-announcement p { font-size: 10.5px; line-height: 1.4; }
  .amh-site-header.is-sticky { top: 0; }
  .admin-bar .amh-site-header.is-sticky { top: 46px; }
  .amh-header-main { min-height: 64px; grid-template-columns: auto 1fr auto; gap: 10px; }
  .amh-mobile-menu-button { display: flex; align-items: center; gap: 4px; padding: 7px 3px; border: 0; background: transparent; color: var(--amh-navy); cursor: pointer; }
  .amh-mobile-menu-button span { font-size: 9px; font-weight: 700; }
  .amh-mobile-menu-button .amh-icon { width: 22px; height: 22px; font-size: 22px; }
  .amh-logo { justify-self: center; }
  .amh-logo-image { width: auto; max-width: min(var(--amh-logo-width), 150px); max-height: 46px; object-position: center; }
  .amh-logo-icon { width: 36px; height: 36px; }
  .amh-logo-text { font-size: 18px; }
  .amh-logo-text small { font-size: 6px; }
  .amh-header-main > .amh-search,
  .amh-action-account,
  .amh-action-whatsapp { display: none; }
  .amh-actions { gap: 0; }
  .amh-action { min-width: 38px; }
  .amh-desktop-nav { display: none; }
  .amh-mobile-search-wrap { display: block; padding-bottom: 10px; }
  .amh-mobile-search { height: 40px; }
  .amh-mobile-overlay { display: block; position: fixed; inset: 0; z-index: 9999; visibility: hidden; opacity: 0; pointer-events: none; background: rgba(10,28,28,.6); transition: opacity .18s, visibility .18s; }
  .amh-mobile-overlay.is-open { visibility: visible; opacity: 1; pointer-events: auto; }
  .amh-mobile-drawer { display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; z-index: 10000; width: min(390px, 91vw); background: #fff; box-shadow: 20px 0 40px rgba(0,0,0,.14); transform: translateX(-105%); transition: transform .2s ease; }
  .amh-mobile-drawer.is-open { transform: translateX(0); }
  .amh-drawer-head { min-height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--amh-border); }
  .amh-drawer-head strong { font-size: 18px; font-weight: 800; }
  .amh-drawer-head button { width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 1px solid var(--amh-border); border-radius: 50%; background: #fff; color: var(--amh-navy); }
  .amh-mobile-nav { overflow: auto; padding: 9px 20px 22px; }
  .amh-mobile-direct,
  .amh-mobile-group > button { width: 100%; min-height: 47px; display: flex; align-items: center; justify-content: space-between; padding: 0; border: 0; border-bottom: 1px solid #edf1f2; background: transparent; color: var(--amh-navy); font-size: 13.5px; font-weight: 700; text-align: left; }
  .amh-mobile-direct.is-free { color: var(--amh-green); }
  .amh-mobile-group > button .amh-icon { width: 15px; height: 15px; font-size: 15px; transition: transform .15s; }
  .amh-mobile-group > button[aria-expanded="true"] .amh-icon { transform: rotate(180deg); }
  .amh-mobile-submenu { display: none; margin: 5px 0 9px; padding: 5px; border-radius: 6px; background: #f7f9f9; }
  .amh-mobile-submenu.is-open { display: block; }
  .amh-mobile-submenu .amh-link-list a { min-height: 37px; padding-inline: 9px; font-size: 12px; }
  .amh-drawer-actions { margin-top: auto; padding: 15px 20px 20px; border-top: 1px solid var(--amh-border); background: #fff; }
  .amh-drawer-actions .amh-shop-button { width: 100%; height: 46px; margin: 0; }
  .amh-drawer-wa { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 11px; color: var(--amh-green); font-size: 11px; font-weight: 700; }
  .amh-drawer-wa svg { width: 17px; }
  .amh-floating-wa { right: 13px; bottom: 13px; padding-right: 7px; }
  .amh-floating-wa b { display: none; }
  .amh-back-to-top { right: 15px; bottom: 70px; width: 42px; height: 42px; }
  .amh-starter-hero { padding: 68px 20px; }
  .amh-starter-note { padding: 42px 20px; }
}

@media (max-width: 480px) {
  .amh-announcement-inner { padding-left: 8px; padding-right: 27px; }
  .amh-announcement a { display: inline-block; }
  .amh-announcement-close { right: -5px; }
  .amh-header-main { grid-template-columns: 40px 1fr 40px; }
  .amh-mobile-menu-button span { display: none; }
  .amh-logo-image { max-width: min(var(--amh-logo-width), 132px); }
  .amh-logo-text { font-size: 17px; }
  .amh-logo-icon { width: 34px; height: 34px; }
  .amh-cart { padding: 5px; }
  .amh-starter-hero { padding-top: 55px; padding-bottom: 55px; }
  .amh-starter-primary,
  .amh-starter-secondary { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .amh-root * { scroll-behavior: auto !important; transition: none !important; }
}
