/*
 * Every Child Matters — elite institutional layer.
 * Kept separate from vendor CSS so future theme updates are easier to audit.
 */
:root {
  --ecm-navy: #083b66;
  --ecm-navy-deep: #062a49;
  --ecm-blue: #0f5f96;
  --ecm-gold: #f4b51f;
  --ecm-coral: #ef5b35;
  --ecm-emerald: #0a8b68;
  --ecm-ink: #172438;
  --ecm-muted: #5e6b7c;
  --ecm-cloud: #f5f8fb;
  --ecm-white: #ffffff;
  --ecm-border: #dce5ed;
  --ecm-shadow: 0 18px 50px rgba(8, 59, 102, .12);
  --ecm-radius: 18px;
}

html { scroll-behavior: smooth; }
body {
  color: var(--ecm-ink);
  background: var(--ecm-white);
  font-family: "Aptos", "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
  color: var(--ecm-navy-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.12;
}
a { color: var(--ecm-blue); text-underline-offset: 3px; }
a:hover, a:focus { color: var(--ecm-coral); }
:focus-visible { outline: 3px solid var(--ecm-gold); outline-offset: 3px; }

.header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--ecm-border);
  box-shadow: 0 8px 24px rgba(8,59,102,.07);
  backdrop-filter: blur(12px);
}
.admin-bar .header { top: 32px; }
.header .container { max-width: 1240px; }
.navigation { min-height: 86px; padding: 9px 0; gap: 20px; }
.starter-logo {
  flex: 0 0 auto;
  height: auto !important;
  max-width: 220px;
}
.starter-logo img {
  display: block;
  width: auto;
  height: auto !important;
  max-height: 68px;
  max-width: 220px;
  margin: 0;
  object-fit: contain;
}
.navigation .navigation-menu { margin-left: auto; }
.navigation .navigation-menu .starter-menu > li > a {
  color: var(--ecm-ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
}
.navigation .navigation-menu .starter-menu > li > a:hover,
.navigation .navigation-menu .starter-menu > li.current-menu-item > a { color: var(--ecm-coral); }
.navigation .navigation-menu .starter-menu > li > .sub-menu {
  border: 1px solid var(--ecm-border);
  border-radius: 0 0 12px 12px;
  box-shadow: var(--ecm-shadow);
  overflow: hidden;
}
.ecm-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ecm-gold);
  color: var(--ecm-navy-deep);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(244,181,31,.24);
}
.ecm-header-cta:hover,
.ecm-header-cta:focus { background: #ffd35c; color: var(--ecm-navy-deep); transform: translateY(-1px); }
body .navigation .ms-lms-authorization,
body .navigation .stm_lms_account_dropdown { margin-left: 0; }
body .navigation .ms-lms-authorization .ms-lms-authorization-icon,
body .navigation .stm_lms_account_dropdown .ms-lms-authorization-icon {
  background: var(--ecm-cloud);
  color: var(--ecm-navy);
  border: 1px solid var(--ecm-border);
}

.wrapper { min-height: 48vh; }
.ecm-page-shell { padding: clamp(42px, 7vw, 92px) 0; }
.ecm-page-shell .entry-content { max-width: 900px; margin: 0 auto; }
.entry-content > * + * { margin-top: 1.15em; }
.entry-content h1 { font-size: clamp(2.4rem, 6vw, 4.8rem); }
.entry-content h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.entry-content h3 { font-size: clamp(1.35rem, 3vw, 2rem); }
.entry-content img { border-radius: var(--ecm-radius); }
.entry-content blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 5px solid var(--ecm-gold);
  background: var(--ecm-cloud);
  border-radius: 0 var(--ecm-radius) var(--ecm-radius) 0;
}
button, input[type="submit"], .button, .btn,
.masterstudy-button, .elementor-button {
  border-radius: 999px !important;
  font-weight: 800 !important;
}
input:not([type="checkbox"]):not([type="radio"]), textarea, select {
  border: 1px solid #c9d6e2;
  border-radius: 10px;
  min-height: 48px;
}
.stm_lms_courses__single,
.masterstudy-single-course,
.woocommerce ul.products li.product {
  border-radius: var(--ecm-radius);
}
.footer {
  margin-top: 60px;
  padding: 28px 0;
  background: var(--ecm-navy-deep);
  border-top: 5px solid var(--ecm-gold);
}
.footer .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer .copyright, .footer .copyright a { color: rgba(255,255,255,.9); }
.footer .copyright a:hover { color: var(--ecm-gold); }
.footer .social-list { margin: 0; }

@media (max-width: 1024px) {
  .navigation { min-height: 78px; gap: 12px; }
  .starter-logo { max-width: 180px; }
  .starter-logo img { max-width: 180px; max-height: 62px; }
  .navigation .navigation-menu { order: 2; margin: 0 0 0 auto; }
  .ecm-header-cta { order: 3; }
  .stm_lms_account_dropdown, .ms-lms-authorization { order: 4; }
  .navigation .navigation-menu.active .menu {
    border-top: 1px solid var(--ecm-border);
    box-shadow: var(--ecm-shadow);
  }
}
@media (max-width: 767px) {
  .admin-bar .header { top: 46px; }
  .header .container { padding-left: 14px; padding-right: 14px; }
  .navigation { min-height: 72px; padding: 7px 0; gap: 8px; }
  .starter-logo { max-width: 132px; }
  .starter-logo img { max-width: 132px; max-height: 58px; }
  .ecm-header-cta { display: none; }
  .navigation .navigation-menu { margin-left: auto; }
  .navigation .navigation-menu .mobile-switcher span { background: var(--ecm-navy-deep); }
  body .navigation .stm_lms_account_dropdown,
  body .navigation .ms-lms-authorization { margin-left: 2px; }
  .footer .container { flex-direction: column; text-align: center; }
  .ecm-page-shell { padding: 36px 0 54px; }
}
