/* =========================================================================
   Healthcare Ethics Courses — main theme stylesheet
   Design tokens locked to the client course fragments.
   ========================================================================= */

:root {
	--ink: #1A1D21;
	--navy: #0C4A2F;
	--navy-dk: #083620;
	--navy-lt: #14653E;
	--gold: #FDC72C;
	--gold-soft: #FDD972;
	--green-pale: #EAF4EE;
	--line: #EDE0BE;
	--line-2: #E4E9E6;
	--wash: #FFFDF7;
	--card: #FFF9EC;
	--grey: #5C6672;
	--paper: #FFFFFF;
	--display: 'Playfair Display', Georgia, serif;
	--body: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--wrap: 1180px;
	--r: 12px;
}

* { box-sizing: border-box; }

body.hec-theme {
	margin: 0;
	font-family: var(--body);
	font-size: 16.5px;
	line-height: 1.68;
	color: var(--ink);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
}

.hec-theme h1, .hec-theme h2, .hec-theme h3, .hec-theme h4 {
	font-family: var(--display);
	font-weight: 600;
	line-height: 1.16;
	letter-spacing: -0.01em;
	margin: 0;
	color: var(--navy);
}

.hec-theme a { color: var(--navy-lt); }
.hec-theme img { max-width: 100%; height: auto; }

.hec-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.hec-skip {
	position: absolute; left: -9999px; top: 0;
	background: var(--navy); color: #fff; padding: 10px 16px; z-index: 100000;
}
.hec-skip:focus { left: 8px; top: 8px; }

.hec-eyebrow {
	font-size: 11.5px; font-weight: 600; text-transform: uppercase;
	letter-spacing: 0.14em; color: var(--navy-lt); margin: 0 0 14px;
}

/* ---------- Buttons ---------- */
.hec-btn {
	display: inline-flex; align-items: center; justify-content: center;
	font-family: var(--body); font-weight: 600; font-size: 14px; line-height: 1;
	padding: 12px 22px; border-radius: 8px; border: 2px solid transparent;
	text-decoration: none; cursor: pointer; transition: background .18s ease, transform .08s ease, color .18s ease;
	white-space: nowrap;
}
.hec-btn--lg { padding: 15px 30px; font-size: 15px; }
.hec-btn:hover { transform: translateY(-1px); }
.hec-btn--buy { background: var(--gold); color: var(--navy-dk); }
.hec-btn--buy:hover { background: var(--gold-soft); }
.hec-btn--start, .hec-theme a.hec-btn--start { background: var(--navy); color: #fff; }
.hec-btn--start:hover, .hec-theme a.hec-btn--start:hover { background: var(--navy-dk); color: #fff; }
.hec-theme a.hec-btn--buy { color: var(--navy-dk); }
.hec-theme a.hec-btn--ghost { color: var(--navy); }
.hec-theme a.hec-btn--ghost:hover { color: #fff; }
.hec-btn--ghost { background: transparent; border-color: currentColor; color: var(--navy); }
.hec-btn--ghost:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- Progress ---------- */
.hec-progress {
	height: 7px; background: var(--line-2); border-radius: 100px; overflow: hidden; flex: 1;
}
.hec-progress > span { display: block; height: 100%; background: var(--gold); border-radius: 100px; transition: width .4s ease; }

/* ---------- Header ---------- */
.hec-header {
	position: sticky; top: 0; z-index: 900; background: rgba(255,255,255,.94);
	backdrop-filter: saturate(180%) blur(8px);
	border-bottom: 1px solid var(--line-2);
}
.hec-header-in { display: flex; align-items: center; gap: 28px; min-height: calc(var(--hec-logo-h, 42px) + 32px); padding-top: 16px; padding-bottom: 16px; }
.hec-brand { text-decoration: none; display: inline-flex; align-items: center; }
.hec-brand-mark { font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--navy); letter-spacing: -0.01em; }
.hec-brand-logo { height: var(--hec-logo-h, 42px); max-height: none; width: auto; display: block; }
.hec-nav { margin-left: auto; }
.hec-nav-list { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.hec-nav-list a { color: var(--ink); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.hec-nav-list a:hover { color: var(--navy-lt); }
.hec-header-actions { display: flex; align-items: center; gap: 16px; }
.hec-header-account { color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; }
.hec-header-account:hover { color: var(--navy-lt); }

/* ---------- Hero ---------- */
.hec-hero {
	background: linear-gradient(155deg, #072F1B 0%, #0C4A2F 48%, #12643D 100%);
	color: #fff; padding: 72px 0 84px;
}
.hec-hero-h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.2rem); max-width: 18ch; margin-bottom: 18px; }
.hec-hero-eyebrow { color: var(--gold); }
.hec-hero-sub { max-width: 60ch; color: #DCEDE2; font-size: 17.5px; margin: 0 0 28px; }
.hec-hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.hec-hero .hec-btn--ghost { color: #fff; }
.hec-hero .hec-btn--ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }
.hec-hero-badges { display: flex; gap: 10px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.hec-hero-badges li { font-size: 13px; padding: 7px 14px; border-radius: 100px; border: 1px solid rgba(255,255,255,.28); color: #EAF1FC; }

/* ---------- Sections ---------- */
.hec-section { padding: 72px 0; }
.hec-section-head { margin-bottom: 34px; max-width: 62ch; }
.hec-section-head h2 { font-size: clamp(24px, 3vw, 34px); }
.hec-section-sub { color: var(--grey); margin-top: 10px; }
.hec-navy { background: linear-gradient(140deg, var(--navy-dk), var(--navy-lt)); color: #fff; }
.hec-navy h2 { color: #fff; }

/* ---------- Course card grid ---------- */
.hec-card-grid {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px;
}
.hec-card {
	border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; background: #fff;
	display: flex; flex-direction: column; transition: box-shadow .2s ease, transform .2s ease;
}
.hec-card:hover { box-shadow: 0 16px 40px rgba(12,74,47,.12); transform: translateY(-2px); }
.hec-card-media { position: relative; display: block; aspect-ratio: 16/9; background: var(--green-pale); }
.hec-card-media img { width: 100%; height: 100%; object-fit: cover; }
.hec-card-media--ph { position: absolute; inset: 0; background: linear-gradient(135deg, var(--navy), var(--navy-lt)); }
.hec-card-hours {
	position: absolute; left: 12px; bottom: 12px; background: var(--gold); color: var(--navy-dk);
	font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 100px;
}
.hec-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.hec-card-topic { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--navy-lt); }
.hec-card-title { font-size: 18px; line-height: 1.3; }
.hec-card-title a { color: var(--navy); text-decoration: none; }
.hec-card-excerpt { font-size: 13.5px; color: var(--grey); margin: 0; }
.hec-card-foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hec-card-price { font-weight: 700; color: var(--navy); }
.hec-card-prog { display: flex; align-items: center; gap: 8px; flex: 1; }
.hec-card-prog-lbl { font-size: 12px; color: var(--grey); }
.hec-featured-more { text-align: center; margin-top: 36px; }
.hec-empty { color: var(--grey); padding: 30px 0; }

/* ---------- How it works ---------- */
.hec-how { background: var(--wash); }
.hec-how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px; }
.hec-how-step { text-align: left; }
.hec-how-ico { display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center; border-radius: 12px; background: var(--green-pale); margin-bottom: 16px; }
.hec-how-ico svg { width: 26px; height: 26px; color: var(--navy); }
.hec-how-step h3 { font-size: 19px; margin-bottom: 8px; }
.hec-how-step p { color: var(--grey); margin: 0; }

/* ---------- Credibility ---------- */
.hec-trust-in { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.hec-trust-copy p { color: #CFE5D8; margin-top: 14px; max-width: 52ch; }
.hec-trust-stats { display: flex; gap: 20px; flex-wrap: wrap; }
.hec-stat { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 12px; padding: 20px 24px; flex: 1; min-width: 120px; }
.hec-stat-num { display: block; font-family: var(--display); font-size: 34px; font-weight: 700; color: var(--gold); }
.hec-stat-lbl { display: block; font-size: 13px; color: #CFE5D8; margin-top: 4px; }

/* ---------- CTA band ---------- */
.hec-cta { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hec-cta-in { text-align: center; max-width: 60ch; margin: 0 auto; }
.hec-cta-in h2 { font-size: clamp(26px, 3.4vw, 38px); }
.hec-cta-in p { color: var(--grey); margin: 12px 0 26px; }

/* ---------- Catalogue ---------- */
.hec-cat-head { background: linear-gradient(155deg, #072F1B, #0C4A2F); color: #fff; padding: 60px 0; }
.hec-cat-head h1 { color: #fff; font-size: clamp(2rem, 4vw, 2.8rem); }
.hec-cat-head .hec-eyebrow { color: var(--gold); }
.hec-cat-sub { color: #DCEDE2; max-width: 60ch; margin-top: 10px; }
.hec-cat-body { padding-top: 40px; }
.hec-cat-filters { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 34px; }
.hec-cat-search { display: flex; gap: 8px; flex: 1; min-width: 260px; }
.hec-cat-search input { flex: 1; padding: 11px 14px; border: 1px solid var(--line-2); border-radius: 8px; font-family: inherit; font-size: 14px; }
.hec-cat-controls { display: flex; gap: 10px; }
.hec-cat-controls select { padding: 11px 14px; border: 1px solid var(--line-2); border-radius: 8px; font-family: inherit; font-size: 14px; background: #fff; }
.hec-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.hec-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 8px; text-decoration: none; color: var(--navy); }
.hec-pagination .page-numbers.current { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- Single course ---------- */
.hec-crumb { background: var(--card); border-bottom: 1px solid var(--line); font-size: 13.2px; }
.hec-crumb .hec-wrap { display: flex; gap: 8px; padding-top: 11px; padding-bottom: 11px; flex-wrap: wrap; align-items: center; }
.hec-crumb a { color: var(--grey); text-decoration: none; }
.hec-crumb a:hover { color: var(--navy-lt); text-decoration: underline; }
.hec-crumb span[aria-current] { color: var(--ink); }
.hec-course-hero { background: linear-gradient(155deg, #072F1B 0%, #0C4A2F 48%, #12643D 100%); color: #fff; padding: 52px 0 58px; }
.hec-course-hero-in { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: start; }
.hec-course-hero-main { min-width: 0; }
.hec-course-hero-main h1 { color: #fff; font-size: clamp(2rem, 4.2vw, 2.9rem); max-width: 20ch; margin-bottom: 16px; }
.hec-course-eyebrow { font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin: 0 0 18px; }
.hec-course-lede { color: #DCEDE2; font-size: 17px; max-width: 60ch; margin-bottom: 22px; }
.hec-course-badges { display: flex; gap: 10px; flex-wrap: wrap; list-style: none; margin: 0 0 26px; padding: 0; }
.hec-course-badges li { font-size: 13px; padding: 6px 12px; border-radius: 100px; border: 1px solid rgba(255,255,255,.28); color: #EAF1FC; }
.hec-course-badges li.solid { background: var(--gold); border-color: var(--gold); color: var(--navy-dk); font-weight: 600; }
.hec-course-hero-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hec-course-price { font-weight: 700; font-size: 20px; color: var(--gold); }
.hec-course-price del { color: #9FB6AA; font-weight: 400; font-size: 15px; }
.hec-course-enrolled-note { color: #DCEDE2; font-size: 14px; }
.hec-glance-card { background: #fff; color: var(--ink); border-radius: 14px; padding: 26px 24px; min-width: 300px; max-width: 340px; box-shadow: 0 14px 40px rgba(11,30,63,.22); }
.hec-glance-k { font-size: 11.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--navy-lt); margin: 0 0 15px; }
.hec-glance-card dl { margin: 0; }
.hec-glance-card dt { font-size: 12.8px; color: var(--grey); margin: 0 0 3px; }
.hec-glance-card dd { font-size: 14.4px; font-weight: 600; color: var(--navy); margin: 0 0 13px; }
.hec-glance-cta { border-top: 1px solid var(--line-2); margin-top: 8px; padding-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hec-glance-price { font-weight: 700; font-size: 18px; color: var(--navy); }
.hec-course-body-in { max-width: 820px; }
.hec-course-desc { font-size: 16.5px; }
.hec-course-desc h2, .hec-course-desc h3 { margin: 1.6em 0 .5em; }
.hec-course-desc p { margin: 0 0 1em; }

/* ---------- About / Contact ---------- */
.hec-page-head { background: var(--wash); border-bottom: 1px solid var(--line); padding: 60px 0; }
.hec-page-head h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.hec-page-sub { color: var(--grey); max-width: 60ch; margin-top: 10px; }
.hec-about-body { display: grid; grid-template-columns: 1.6fr 1fr; gap: 44px; align-items: start; }
.hec-about-author { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 26px; }
.hec-about-photo { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; margin-bottom: 14px; }
.hec-about-role { color: var(--navy-lt); font-weight: 600; margin: 2px 0 12px; }
.hec-values { background: var(--wash); }
.hec-values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.hec-value-ico { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 12px; background: var(--green-pale); margin-bottom: 14px; }
.hec-value-ico svg { width: 24px; height: 24px; color: var(--navy); }
.hec-value h3 { font-size: 18px; margin-bottom: 6px; }
.hec-value p { color: var(--grey); margin: 0; }
.hec-contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 44px; align-items: start; }
.hec-contact-email { font-size: 18px; font-weight: 600; color: var(--navy-lt); text-decoration: none; }
.hec-contact-hours { color: var(--grey); margin-top: 12px; }
.hec-contact-form label { display: block; margin-bottom: 16px; font-size: 14px; font-weight: 600; color: var(--ink); }
.hec-contact-form input, .hec-contact-form textarea { width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 8px; font-family: inherit; font-size: 15px; font-weight: 400; }
.hec-notice { padding: 14px 18px; border-radius: 10px; margin-bottom: 18px; }
.hec-notice--ok { background: var(--green-pale); color: var(--navy-dk); }
.hec-notice--err { background: #FBE9E7; color: #b32d2e; }

/* ---------- Footer ---------- */
.hec-footer { background: var(--navy-dk); color: #CFE5D8; margin-top: 0; }
.hec-footer-in { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding: 56px 24px; }
.hec-footer-name { font-family: var(--display); font-weight: 700; font-size: 20px; color: #fff; }
.hec-footer-about { margin-top: 12px; max-width: 44ch; font-size: 14px; }
.hec-footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.hec-footer-links a { color: #CFE5D8; text-decoration: none; font-size: 14px; }
.hec-footer-links a:hover { color: var(--gold); }
.hec-footer-contact { display: flex; flex-direction: column; gap: 8px; }
.hec-footer-contact a { color: #CFE5D8; text-decoration: none; font-size: 14px; }
.hec-footer-bar { border-top: 1px solid rgba(255,255,255,.12); }
.hec-footer-bar .hec-wrap { padding-top: 18px; padding-bottom: 18px; font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.hec-course-hero-in { grid-template-columns: 1fr; }
	.hec-glance-card { max-width: none; }
	.hec-trust-in { grid-template-columns: 1fr; gap: 30px; }
	.hec-about-body, .hec-contact-grid { grid-template-columns: 1fr; gap: 30px; }
	.hec-footer-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
	.hec-header-actions { order: 4; }
	.hec-header-cta { display: none; }
	.hec-section { padding: 52px 0; }
	.hec-footer-in { grid-template-columns: 1fr; }
}
.hec-brand-logo--svg { height: var(--hec-logo-h, 42px); width: auto; max-height: none; display: block; }
.hec-brand-logo--svg svg, .hec-brand-logo.hec-brand-logo--svg { height: 100%; width: auto; }
.hec-svg { display: inline-block; vertical-align: middle; width: 1.25em; height: 1.25em; }
.hec-svg svg { width: 100%; height: 100%; }
