/*
Theme Name: ENM Institute of Medical Coding
Theme URI: https://example.com/
Author: OpenAI
Description: A modern, responsive WordPress theme for ENM Institute of Medical Coding.
Version: 1.24.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: enm-medical-coding
*/

/* =========================================================
   1. Design tokens
   Navy and teal are taken directly from the ENM logo.
   ========================================================= */
:root {
  --navy-950: #0a2034;
  --navy-900: #0f2c47;
  --navy-800: #143650;
  --navy-700: #184060;
  --navy: var(--navy-900);

  --teal-800: #0b6a62;
  --teal-700: #0e7c72;
  --teal-600: #14948a;
  --teal-500: #2bb3a3;
  --teal-100: #d9f1ee;
  --teal-50: #eef9f7;
  --teal: var(--teal-700);
  --teal-dark: var(--teal-700);

  --ink: #14283a;
  --body: #3b5064;
  --muted: #5a6e81;
  --line: #dbe5ec;
  --line-strong: #c3d3de;
  --surface: #f4f8fb;
  --tint: #eaf3f6;
  --white: #fff;
  --pale: var(--surface);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 24px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(15, 44, 71, .06), 0 1px 1px rgba(15, 44, 71, .04);
  --shadow-md: 0 14px 34px -14px rgba(15, 44, 71, .22);
  --shadow-lg: 0 30px 60px -26px rgba(15, 44, 71, .35);
  --shadow: var(--shadow-md);

  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;

  --header-h: 84px;
}

/* =========================================================
   2. Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--teal-700); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--navy-700); }
button, input, textarea, select { font: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy-900); font-weight: 600; }
:focus-visible { outline: 3px solid var(--teal-500); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--teal-100); color: var(--navy-900); }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.container { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; left: 16px; top: 16px; z-index: 1000; width: auto; height: auto;
  margin: 0; clip: auto; padding: 12px 18px; background: var(--navy-900); color: #fff;
  border-radius: var(--radius-sm); box-shadow: var(--shadow-md);
}
.enm-icon { display: block; flex: none; }

/* =========================================================
   3. Buttons
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1.5px solid transparent; border-radius: 10px;
  padding: 13px 24px; font-weight: 700; font-size: 15px; line-height: 1.2;
  cursor: pointer; transition: background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn-primary { background: var(--teal-700); color: #fff; box-shadow: 0 6px 16px -8px rgba(14, 124, 114, .8); }
.btn-primary:hover { background: var(--teal-800); color: #fff; }
.btn-outline { background: #fff; color: var(--navy-800); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--navy-700); background: var(--navy-800); color: #fff; }
.btn-secondary { background: var(--navy-800); color: #fff; }
.btn-secondary:hover { background: var(--navy-950); color: #fff; }

/* =========================================================
   4. Header & navigation
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 8px 24px -16px rgba(15, 44, 71, .4); }
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }

.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--navy-900); font-weight: 700; line-height: 1.15; flex: none; }
.brand:hover { color: var(--navy-900); }
.enm-logo-image { display: block; height: 56px; width: auto; max-width: 240px; object-fit: contain; }

.main-nav { flex: 1 1 auto; min-width: 0; }
.main-nav ul, #menu-primary {
  display: flex; align-items: center; justify-content: center; flex-wrap: nowrap;
  gap: 2px; list-style: none; margin: 0; padding: 0;
}
.main-nav li { margin: 0; }
.main-nav a {
  display: block; padding: 10px 12px; border-radius: 8px; white-space: nowrap;
  font-size: 14.5px; font-weight: 600; color: var(--ink); line-height: 1.2;
  transition: background-color .15s ease, color .15s ease;
}
.main-nav a:hover { color: var(--teal-800); background: var(--teal-50); }
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a { color: var(--teal-800); background: var(--teal-50); }

.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.header-actions .btn { padding: 11px 20px; font-size: 14.5px; white-space: nowrap; }

.menu-toggle {
  display: none; position: relative; flex: none; width: 46px; height: 46px; padding: 0;
  border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; color: var(--navy-900); cursor: pointer;
}
.menu-toggle-bar, .menu-toggle-bar::before, .menu-toggle-bar::after {
  position: absolute; left: 50%; width: 20px; height: 2px; border-radius: 2px;
  background: currentColor; transition: transform .2s ease, opacity .2s ease, top .2s ease;
}
.menu-toggle-bar { top: 50%; margin: -1px 0 0 -10px; }
.menu-toggle-bar::before, .menu-toggle-bar::after { content: ""; left: 0; }
.menu-toggle-bar::before { top: -6px; }
.menu-toggle-bar::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar::after { top: 0; transform: rotate(-45deg); }

/* =========================================================
   5. Shared type helpers
   ========================================================= */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-size: 14.5px; font-weight: 700; letter-spacing: .005em;
  color: var(--teal-700);
}
.eyebrow::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--teal-500); flex: none; }
.section-kicker { display: inline-block; font-size: 14.5px; font-weight: 700; color: var(--teal-700); }

/* =========================================================
   6. Hero
   ========================================================= */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--tint) 0%, #f7fbfc 100%);
  padding: 84px 0 96px;
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 72px; align-items: center; }
.hero h1 {
  font-size: clamp(2.35rem, 4.6vw, 3.7rem); line-height: 1.08; letter-spacing: -.022em;
  margin: 20px 0 22px; max-width: 640px; color: var(--navy-900); font-weight: 600;
}
.hero-copy { font-size: 18px; line-height: 1.7; color: var(--body); max-width: 600px; margin: 0 0 32px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { display: flex; align-items: center; gap: 12px; margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line-strong); color: var(--muted); font-size: 14px; max-width: 600px; }
.hero-note-icon { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--teal-700); color: #fff; }

.hero-visual { position: relative; }
.hero-photo {
  height: 470px; border-radius: 150px var(--radius-xl) var(--radius-xl) var(--radius-xl);
  background: linear-gradient(180deg, rgba(15, 44, 71, 0) 55%, rgba(15, 44, 71, .18)), url("assets/images/enm-coding-workspace.jpg") center / cover no-repeat;
  box-shadow: var(--shadow-lg);
}
.floating-card {
  position: absolute; left: -32px; bottom: 36px; max-width: 270px;
  display: flex; align-items: center; gap: 14px; padding: 16px 20px;
  background: #fff; color: var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow-md); border: 1px solid var(--line);
}
.floating-icon { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 12px; background: var(--teal-100); color: var(--teal-800); }
.floating-card strong { display: block; font-family: var(--font-head); font-size: 17px; line-height: 1.25; color: var(--navy-900); }
.floating-card small { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; margin-top: 2px; }

/* Trust strip */
.trust-strip { background: #fff; border-bottom: 1px solid var(--line); }
.trust-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item {
  display: flex; align-items: center; gap: 14px; padding: 26px 22px;
  border-left: 1px solid var(--line); color: var(--navy-900); font-size: 15px; font-weight: 600; line-height: 1.35;
}
.trust-item:first-child { border-left: 0; padding-left: 0; }
.trust-item b { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--teal-50); color: var(--teal-700); }

/* =========================================================
   7. Sections
   ========================================================= */
.section { padding: 96px 0; }
.section-soft { background: var(--surface); }
.section h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.15; letter-spacing: -.018em; color: var(--navy-900); margin: 10px 0 0; }

.section-head {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  column-gap: 72px; row-gap: 6px; align-items: end; margin: 0 0 48px;
}
.section-head .section-kicker { grid-column: 1 / -1; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--muted); font-size: 16px; }
.section-action { text-align: center; margin-top: 40px; }

/* Cards: courses & posts */
.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.course-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); transition: border-color .2s ease, box-shadow .2s ease;
}
.course-card:hover { border-color: var(--teal-500); box-shadow: var(--shadow-md); }
.course-image {
  position: relative; display: grid; place-items: center; height: 200px; overflow: hidden;
  background: linear-gradient(135deg, var(--teal-50), var(--tint));
}
.course-image img { width: 100%; height: 100%; object-fit: cover; }
.course-symbol { display: grid; place-items: center; color: var(--teal-700); font-weight: 700; }
.course-body { display: flex; flex-direction: column; flex: 1; padding: 26px; }
.course-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.pill { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--teal-100); color: var(--teal-800); font-size: 12.5px; font-weight: 700; line-height: 1.4; }
.pill-blue { background: #e6eff7; color: var(--navy-700); }
.course-card h3 { font-size: 1.35rem; line-height: 1.25; margin: 0 0 12px; color: var(--navy-900); }
.course-card h3 a { color: inherit; }
.course-card h3 a:hover { color: var(--teal-700); }
.course-card p { font-size: 15px; line-height: 1.65; color: var(--body); margin: 0 0 16px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 700; color: var(--teal-700); }
.text-link:hover { color: var(--navy-800); text-decoration: underline; text-underline-offset: 4px; }
.course-body > .text-link { margin-top: auto; padding-top: 6px; }

/* Training programs on the homepage: one foundation card + three certification cards */
.course-card--featured { grid-column: 1 / -1; flex-direction: row; }
.course-card--featured .course-image { flex: 0 0 34%; height: auto; min-height: 280px; background: linear-gradient(135deg, var(--teal-700), var(--navy-700)); }
.course-card--featured .course-symbol { color: #fff; opacity: .95; }
.course-card--featured .course-symbol .enm-icon { width: 76px; height: 76px; stroke-width: 1.4; }
.course-card--featured .course-body { padding: 34px 38px; }
.course-card--featured h3 { font-size: 1.7rem; }
.course-card--featured .check-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; margin: 6px 0 22px; }

.course-card--program .course-image.enm-course-brand { height: auto; min-height: 0; padding: 24px 24px 22px; background: var(--surface); border-bottom: 1px solid var(--line); }
.course-card--program .course-body { padding: 26px 26px 28px; }
.course-card--program h3 { font-size: 1.3rem; }
.course-fee {
  padding: 14px 16px; border-left: 3px solid var(--teal-600); border-radius: 0 10px 10px 0;
  background: var(--teal-50); color: var(--ink) !important; font-size: 14px !important;
}
.course-fee strong { display: block; margin-bottom: 4px; font-size: 15px; color: var(--navy-900); }
.course-card--program .course-fee { margin-top: auto; }
.course-admission { font-size: 13.5px !important; color: var(--muted) !important; padding-top: 14px; border-top: 1px solid var(--line); }
.course-admission strong { color: var(--navy-800); }

/* Check lists */
.check-list { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 13px; }
.check-list li { position: relative; padding-left: 32px; color: var(--ink); font-size: 15px; line-height: 1.5; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--teal-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b6a62' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 80px; align-items: center; }
.about-art {
  position: relative; min-height: 500px; border-radius: var(--radius-xl) var(--radius-xl) var(--radius-xl) 150px;
  background: linear-gradient(0deg, rgba(15, 44, 71, .14), rgba(15, 44, 71, 0) 50%), url("assets/images/enm-training-classroom.jpg") center / cover no-repeat;
  box-shadow: var(--shadow-lg);
}
.about-badge { position: absolute; right: -24px; bottom: 32px; max-width: 230px; padding: 20px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); }
.about-badge strong { display: block; font-family: var(--font-head); font-size: 32px; line-height: 1.1; color: var(--teal-700); }
.about-badge span { display: block; margin-top: 4px; font-size: 13.5px; color: var(--muted); }
.about-copy h2 { margin-top: 12px; }
.about-copy > p { color: var(--body); margin: 18px 0 0; }
.about-copy .btn { margin-top: 4px; }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.feature-card { padding: 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.feature-icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 22px; border-radius: 14px; background: #fff; color: var(--teal-700); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.feature-card h3 { margin: 0 0 10px; font-size: 1.25rem; color: var(--navy-900); }
.feature-card p { margin: 0; font-size: 15px; color: var(--body); }

/* Services */
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.service-card {
  display: flex; flex-direction: column; align-items: flex-start; padding: 32px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.service-card:hover { border-color: var(--teal-500); box-shadow: var(--shadow-md); }
.service-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: var(--teal-50); color: var(--teal-700); }
.service-card h3 { margin: 18px 0 10px; font-size: 1.35rem; line-height: 1.25; color: var(--navy-900); }
.service-card p { margin: 0 0 18px; font-size: 15px; color: var(--body); }
.service-card .text-link { margin-top: auto; }
.enm-service-books > .enm-book-gallery { align-self: stretch; }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.blog-card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: border-color .2s ease, box-shadow .2s ease; }
.blog-card:hover { border-color: var(--teal-500); box-shadow: var(--shadow-md); }
.blog-card-media { display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, var(--teal-50), var(--tint)); }
.blog-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card-media .course-symbol { font-family: var(--font-head); font-size: 28px; }
.blog-card-body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.blog-card-date { font-size: 13px; font-weight: 600; color: var(--muted); }
.blog-card h3 { margin: 8px 0 10px; font-size: 1.25rem; line-height: 1.3; }
.blog-card h3 a { color: var(--navy-900); }
.blog-card h3 a:hover { color: var(--teal-700); }
.blog-card p { margin: 0 0 16px; font-size: 15px; color: var(--body); }
.blog-card .text-link { margin-top: auto; }
.blog-empty, .empty-state { padding: 28px; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface); color: var(--muted); text-align: center; }
.blog-post-content iframe, .content-area iframe { max-width: 100%; }

/* Call to action */
.cta { padding: 0 0 96px; }
.cta-panel {
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  padding: 56px 64px; border-radius: var(--radius-xl); color: #fff;
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
}
.cta-panel h2 { margin: 0 0 12px; color: #fff; font-size: clamp(1.6rem, 2.8vw, 2.2rem); line-height: 1.18; letter-spacing: -.015em; }
.cta-panel p { margin: 0; max-width: 580px; color: #cfe0ea; }
.cta-panel .btn-primary { flex: none; background: #fff; color: var(--navy-900); box-shadow: none; padding: 15px 28px; }
.cta-panel .btn-primary:hover { background: var(--teal-100); color: var(--navy-900); }

/* =========================================================
   8. Footer
   ========================================================= */
.site-footer { background: var(--navy-950); color: #c3d3de; padding: 72px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 48px; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; }
.footer-brand:hover { color: #fff; }
.brand-mark { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 12px; background: var(--teal-500); color: var(--navy-950); font-family: var(--font-head); font-weight: 700; font-size: 24px; }
.brand-name { font-family: var(--font-head); font-size: 17px; font-weight: 600; line-height: 1.2; color: #fff; }
.brand-name small { display: block; margin-top: 4px; font-family: var(--font-body); font-size: 12.5px; font-weight: 500; color: #9fb4c3; }
.footer-copy { max-width: 340px; margin: 20px 0 0; font-size: 14.5px; line-height: 1.7; color: #a9bdca; }
.footer-col h3 { margin: 4px 0 18px; font-family: var(--font-body); font-size: 15px; font-weight: 700; color: #fff; }
.footer-col ul { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.footer-col a { font-size: 14.5px; color: #b9cbd8; overflow-wrap: anywhere; }
.footer-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13.5px; color: #8fa6b5; }

/* =========================================================
   9. Inner page headers
   ========================================================= */
.page-hero { background: linear-gradient(180deg, var(--tint), #f7fbfc); border-bottom: 1px solid var(--line); padding: 64px 0; color: var(--body); }
.page-hero h1 { margin: 14px 0 12px; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.12; letter-spacing: -.02em; color: var(--navy-900); }
.page-hero p { margin: 0; max-width: 680px; font-size: 17px; color: var(--body); }

.page-hero-visual { padding: 60px 0; overflow: hidden; }
.page-hero-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 64px; align-items: center; }
.page-hero-copy { position: relative; z-index: 1; }
.page-hero-visual h1 { color: var(--navy-900); }
.page-hero-visual p { color: var(--body); }
.page-hero-image { position: relative; min-width: 0; }
.page-hero-image img {
  display: block; width: 100%; height: 320px; object-fit: cover; object-position: center;
  border-radius: 100px 24px 24px 24px; background: var(--tint); box-shadow: var(--shadow-lg);
}
.page-hero-image .enm-brand-logo { min-height: 320px; background: #fff; border-radius: 24px; box-shadow: var(--shadow-md); }
.image-accent {
  position: absolute; left: -16px; bottom: 22px; padding: 9px 16px; border-radius: 10px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-md);
  font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--navy-900);
}
.image-accent b { margin-left: 6px; font-weight: 700; color: var(--teal-600); }
.visual-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.visual-tags span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--navy-800); font-size: 13.5px; font-weight: 600; }
.page-hero-copy .enm-brand-logo { margin: 16px 0 6px; max-width: 280px; min-height: 0; padding: 12px 18px; }

/* =========================================================
   10. Page content (WordPress editor content & shortcodes)
   ========================================================= */
.content-area { padding: 64px 0 96px; }
.content-area article { max-width: 940px; margin: 0 auto; }
.content-area .about-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; }
.content-area .about-grid > article { max-width: none; margin: 0; }
.content-area h2, .content-area h3 { color: var(--navy-900); line-height: 1.22; }
.content-area article h2 { margin: 2.2em 0 .5em; font-size: clamp(1.6rem, 2.6vw, 2.1rem); letter-spacing: -.012em; }
.content-area article > h2:first-child { margin-top: 0; }
.content-area article h3 { margin: 1.8em 0 .4em; font-size: 1.3rem; }
.content-area article p { margin: 1em 0; color: var(--body); font-size: 16.5px; line-height: 1.75; }
.content-area article ul, .content-area article ol { margin: 1em 0; padding-left: 1.4em; }
.content-area article li { margin: .5em 0; padding-left: .25em; line-height: 1.7; }
.content-area article li::marker { color: var(--teal-600); font-weight: 700; }
.content-area article a:not(.btn):not(.text-link) { font-weight: 600; text-decoration: underline; text-decoration-color: var(--teal-100); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.content-area article a:not(.btn):not(.text-link):hover { text-decoration-color: var(--teal-600); }
.content-area article > img, .content-area article .wp-post-image { display: block; width: 100%; margin: 0 0 28px; border-radius: var(--radius); }
.content-area article strong { color: var(--ink); }

.notice-panel {
  margin: 28px 0; padding: 20px 24px; border-left: 4px solid var(--teal-600); border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--teal-50); color: var(--ink); font-size: 15.5px; line-height: 1.7;
}
.content-area article .notice-panel { margin: 28px 0; }
.notice { margin-bottom: 22px; padding: 14px 18px; border-radius: 10px; background: var(--teal-50); border: 1px solid var(--teal-100); color: var(--teal-800); font-weight: 600; }

/* Training Programs cards (shortcode) */
.enm-program-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 24px 0 32px; }
.enm-program-card { display: flex; flex-direction: column; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.enm-program-card .enm-brand-logo, .enm-program-card .enm-free-mark { margin-bottom: 20px; }
.content-area article .enm-program-card h2 { margin: 0 0 10px; padding: 0; border: 0; font-size: 1.35rem; line-height: 1.25; }
.content-area article .enm-program-card p { margin: 0 0 12px; font-size: 15px; line-height: 1.65; }
.content-area article .enm-program-card > a:last-child { align-self: flex-start; margin-top: auto; padding-top: 8px; font-size: 14.5px; font-weight: 700; text-decoration: none; color: var(--teal-700); }
.content-area article .enm-program-card > a:last-child:hover { color: var(--navy-800); text-decoration: underline; text-underline-offset: 4px; }
.enm-free-mark { display: grid; place-items: center; min-height: 105px; padding: 22px; border-radius: 12px; background: var(--teal-50); border: 1px solid var(--teal-100); color: var(--teal-800); font-weight: 700; font-size: 14.5px; text-align: center; }

/* Provider logos */
.enm-brand-logo { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 105px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.enm-brand-logo img { display: block; max-width: 180px; max-height: 60px; width: auto; height: auto; object-fit: contain; }
.enm-brand-logo strong { font-family: var(--font-head); font-size: 19px; line-height: 1.1; color: var(--navy-800); }
.enm-course-brand { padding: 20px; }
.enm-course-brand .enm-brand-logo { width: 100%; min-height: 96px; }

/* Book gallery */
.enm-book-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 20px 0; }
.enm-book-gallery figure { margin: 0; padding: 14px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.enm-book-gallery img { width: 100%; height: 210px; object-fit: contain; }
.enm-book-gallery figcaption { margin-top: 8px; font-weight: 700; font-size: 13.5px; color: var(--navy-800); }
.enm-book-note { margin: 0; font-size: 13px !important; color: var(--muted) !important; }
.enm-service-books .enm-book-gallery { gap: 8px; margin: 22px 0 8px; }
.enm-service-books .enm-book-gallery figure { padding: 8px; }
.enm-service-books .enm-book-gallery img { height: 96px; }
.enm-service-books .enm-book-gallery figcaption { font-size: 12px; margin-top: 4px; }
.enm-service-books .enm-book-note { margin-bottom: 14px; }

/* Leadership */
.enm-leadership { display: block; margin: 64px 0 8px; }
.enm-leadership-heading { max-width: 640px; margin: 0 0 32px; }
.enm-leadership-heading .section-kicker { margin-bottom: 4px; }
.content-area article .enm-leadership-heading h2 { margin: 6px 0 12px; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.enm-leadership-heading p { margin: 0; color: var(--muted); }
.enm-leadership-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.enm-leader-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.enm-leader-photo { flex: none; height: 400px; overflow: hidden; background: var(--surface); }
.enm-leader-photo img { display: block; width: 100%; height: 100%; max-width: none; margin: 0; object-fit: cover; object-position: center top; border-radius: 0; }
.enm-leader-card:nth-child(4) .enm-leader-photo img { object-position: center 6%; }
.enm-leader-content { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.enm-leader-role { align-self: flex-start; padding: 5px 12px; border-radius: 999px; background: var(--teal-100); color: var(--teal-800); font-size: 12.5px; font-weight: 700; }
.content-area article .enm-leader-content h3 { margin: 14px 0 10px; font-size: 1.3rem; }
.content-area article .enm-leader-content p { margin: 0 0 16px; font-size: 14.5px; line-height: 1.7; color: var(--body); }
.enm-leader-highlights { display: grid; gap: 9px; margin: auto 0 0 !important; padding: 16px 0 0 !important; border-top: 1px solid var(--line); list-style: none; }
.content-area article .enm-leader-highlights li { position: relative; margin: 0; padding: 0 0 0 26px; font-size: 14px; line-height: 1.5; color: var(--ink); }
.enm-leader-highlights li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 17px; height: 17px; border-radius: 50%;
  background: var(--teal-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b6a62' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat;
}
/* On wide screens the leadership block uses the full site width (4 across) instead of the narrow article column */
@media (min-width: 1100px) {
  .content-area article .enm-leadership { width: min(1200px, calc(100vw - 48px)); max-width: none; position: relative; left: 50%; transform: translateX(-50%); }
  .enm-leadership-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .enm-leader-photo { height: 330px; }
}

/* Course detail extras */
.contact-card, .form-card { padding: 30px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); }
.contact-card h3, .form-card h3 { margin: 0 0 8px; font-size: 1.3rem; color: var(--navy-900); }
.contact-card { position: sticky; top: calc(var(--header-h) + 24px); }
.contact-card .btn { width: 100%; margin-top: 8px; }
.contact-detail { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; line-height: 1.6; color: var(--body); }
.contact-detail strong { color: var(--navy-900); }
.contact-detail:last-of-type { border-bottom: 0; }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 36px; }
.enm-learning-resources { margin: 36px 0 0; padding: 28px; border: 1px solid var(--teal-100); border-radius: var(--radius); background: var(--teal-50); }
.content-area article .enm-learning-resources h2 { margin: 0 0 8px; padding: 0; border: 0; font-size: 1.4rem; }
.content-area article .enm-learning-resources p { margin: 0 0 18px; }
.enm-resource-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.enm-fundamentals-resources { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 16px; }
.enm-resource-link { display: inline-flex; align-items: center; justify-content: center; padding: 9px 16px; border-radius: 10px; font-size: 13.5px; font-weight: 700; line-height: 1.3; text-decoration: none !important; transition: background-color .15s ease; }
.enm-resource-pdf { background: var(--teal-100); color: var(--teal-800) !important; border: 1px solid #b7e3de; }
.enm-resource-quiz { background: #e6eff7; color: var(--navy-700) !important; border: 1px solid #cfdeec; }
.enm-resource-link:hover { filter: brightness(.96); }

/* Contact form */
.content-area article form {
  margin: 28px 0; padding: 36px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { margin-bottom: 20px; }
.form-field label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 700; color: var(--navy-900); }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 13px 15px; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line-strong); border-radius: 10px; line-height: 1.4;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-field input:hover, .form-field textarea:hover, .form-field select:hover { border-color: #a9bfce; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: 0; border-color: var(--teal-600); box-shadow: 0 0 0 4px rgba(20, 148, 138, .18);
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-field ::placeholder { color: #8a9bab; }
.content-area article form .btn { width: 100%; padding: 15px 24px; font-size: 16px; }
.enm-contact-email { display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 10px; background: var(--teal-50); border: 1px solid var(--teal-100); color: var(--teal-800); font-weight: 700; overflow-wrap: anywhere; }
.enm-contact-email a { color: inherit; text-decoration: none; }

/* Pagination */
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination a, .pagination span { padding: 9px 15px; border: 1px solid var(--line); border-radius: 10px; font-weight: 600; color: var(--navy-800); }
.pagination a:hover { border-color: var(--teal-600); color: var(--teal-700); }
.pagination .current { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }

/* =========================================================
   11. Responsive
   ========================================================= */
@media (max-width: 1180px) {
  .main-nav a { padding: 10px 9px; font-size: 14px; }
  .header-inner { gap: 16px; }
  .enm-logo-image { height: 50px; }
}

@media (max-width: 1100px) {
  .menu-toggle { display: inline-block; order: 4; }
  .header-actions { order: 3; margin-left: auto; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    padding: 12px 24px 24px; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(15, 44, 71, .4);
  }
  .main-nav.is-open { display: block; }
  .main-nav ul, #menu-primary { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a { padding: 14px 12px; font-size: 16px; white-space: normal; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav li:last-child a { border-bottom: 0; }
}

@media (max-width: 980px) {
  .section { padding: 72px 0; }
  .hero { padding: 64px 0 72px; }
  .hero-grid, .page-hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo { height: 380px; border-top-left-radius: 110px; }
  .floating-card { left: 16px; }
  .section-head { grid-template-columns: 1fr; row-gap: 12px; margin-bottom: 36px; }
  .trust-inner { grid-template-columns: repeat(2, 1fr); }
  .trust-item { padding: 20px 18px; border-left: 0; border-top: 1px solid var(--line); }
  .trust-item:nth-child(-n+2) { border-top: 0; }
  .trust-item:first-child { padding-left: 18px; }
  .trust-item:nth-child(even) { border-left: 1px solid var(--line); }
  .course-grid, .course-grid--programs, .blog-grid, .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .course-card--featured { flex-direction: column; }
  .course-card--featured .course-image { flex: none; min-height: 180px; }
  .about-grid { grid-template-columns: 1fr; gap: 56px; }
  .about-art { min-height: 380px; margin-right: 24px; }
  .about-badge { right: -24px; }
  .page-hero-image img { height: 280px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }
  .content-area .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-card { position: static; }
  .cta-panel { padding: 44px 36px; }
}

@media (max-width: 760px) {
  .service-grid, .enm-program-list, .enm-leadership-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .course-card--featured .check-list { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --header-h: 72px; }
  .container { width: min(100% - 32px, 1200px); }
  .enm-logo-image { height: 44px; max-width: 170px; }
  .main-nav { padding: 8px 16px 20px; }
  .section { padding: 60px 0; }
  .hero { padding: 48px 0 56px; }
  .hero-copy { font-size: 16.5px; }
  .hero-buttons .btn { flex: 1 1 100%; }
  .hero-photo { height: 300px; border-radius: 90px 20px 20px 20px; }
  .floating-card { left: 12px; right: 12px; bottom: 12px; max-width: none; padding: 12px 14px; }
  .trust-item { font-size: 13.5px; gap: 10px; }
  .trust-item b { width: 38px; height: 38px; }
  .course-grid, .course-grid--programs, .blog-grid, .feature-grid { grid-template-columns: 1fr; }
  .course-body, .course-card--featured .course-body { padding: 22px; }
  .course-card--featured h3 { font-size: 1.45rem; }
  .about-art { min-height: 300px; margin-right: 0; border-bottom-left-radius: 90px; }
  .about-badge { right: 12px; bottom: 16px; padding: 14px 18px; }
  .service-card, .feature-card { padding: 24px; }
  .cta { padding-bottom: 60px; }
  .cta-panel { flex-direction: column; align-items: flex-start; padding: 32px 24px; border-radius: 20px; }
  .cta-panel .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 6px; margin-top: 40px; }
  .site-footer { padding-top: 56px; }
  .page-hero, .page-hero-visual { padding: 40px 0 44px; }
  .page-hero-image img { height: 220px; border-top-left-radius: 70px; }
  .image-accent { left: 12px; }
  .content-area { padding: 40px 0 64px; }
  .content-area article p { font-size: 16px; }
  .content-area article form { padding: 22px; border-radius: var(--radius); }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .enm-book-gallery img { height: 140px; }
  .enm-leader-photo { height: 340px; }
  .enm-resource-actions { flex-direction: column; }
  .enm-resource-actions .btn { width: 100%; }
  .enm-fundamentals-resources { flex-direction: column; }
  .enm-resource-link { width: 100%; }
}

@media (max-width: 479px) {
  .header-actions .btn { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
