/* Rebuild of the original emeraldgroup-learning.ca design. Every value comes from the saved Elementor designs. */
@font-face { font-family: "Lato"; font-weight: 400; src: url(fonts/lato-400.woff2) format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 700; src: url(fonts/lato-700.woff2) format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 100 900; src: url(fonts/roboto.woff2) format("woff2"); }
@font-face { font-family: "Merriweather Sans"; font-weight: 300 800; src: url(fonts/merriweathersans.woff2) format("woff2"); }

:root { --navy: #1A237E; --green: #52B753; }
*, *::before, *::after { box-sizing: border-box; }
html { line-height: 1.15; }
body { margin: 0; background: #fff; color: #333; font: 400 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif; }
img { max-width: 100%; height: auto; border: 0; }
a { color: var(--navy); font-family: Roboto, Lato, sans-serif; font-size: 18px; text-decoration: none; }
h1, h2, h3, h4, h5, h6 { font-weight: 500; line-height: 1.2; margin: .5rem 0 1rem; }
h1 { font-size: 2.5rem; } h2 { font-size: 2rem; } h3 { font-size: 1.75rem; } h4 { font-size: 1.5rem; } h5 { font-size: 1.25rem; } h6 { font-size: 1rem; }
p { margin: 0 0 .9rem; }
.eg-wrap { max-width: 1200px; margin: 0 auto; padding: 10px; }

/* Header */
.eg-header { position: sticky; top: 0; z-index: 99; background: #F5F5F5; margin-bottom: 25px; }
.eg-header .eg-wrap { display: flex; padding: 0; }
.eg-logo { flex: 0 0 12.667%; padding: 32px 10px 10px; }
.eg-logo a { display: block; line-height: 0; text-align: center; }
.eg-logo img { display: inline-block; vertical-align: middle; }
.eg-menu-col { flex: 1; padding: 68px 10px 10px; }
.eg-menu, .eg-menu ul { list-style: none; margin: 0; padding: 0; }
.eg-menu { display: flex; justify-content: flex-end; }
.eg-menu > li { position: relative; display: flex; align-items: center; }
.eg-menu > li:not(:last-child)::after { content: ""; height: 20.3px; border-left: 4px solid #000; }
.eg-menu > li > a { display: flex; align-items: center; padding: 13px 20px; font-size: 20px; line-height: 32px; color: #000; position: relative; }
.eg-menu > li > a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: var(--green); opacity: 0; transition: opacity .3s; }
.eg-menu > li > a:hover::after, .eg-menu > li > a:focus::after, .eg-menu > li > a[aria-current]::after { opacity: 1; }
.eg-menu > li > a[aria-current] { color: var(--navy); }
.eg-caret { margin-left: 10px; width: 0; height: 0; border: 6px solid transparent; border-top-color: currentColor; border-bottom: 0; }
.eg-menu ul { display: none; position: absolute; left: 0; top: 100%; min-width: 240px; background: #fff; box-shadow: 0 0 10px rgba(0,0,0,.1); }
.eg-menu ul ul { left: 100%; top: 0; }
.eg-menu li:hover > ul, .eg-menu li:focus-within > ul { display: block; }
.eg-menu ul li { position: relative; }
.eg-menu ul a { display: flex; justify-content: space-between; align-items: center; padding: 13px 20px; font-size: 18px; line-height: 20px; white-space: nowrap; color: #33373d; }
.eg-menu ul a:hover, .eg-menu ul a:focus { background: var(--navy); color: #fff; }
.eg-menu ul .eg-caret { transform: rotate(-90deg); }
.eg-burger { display: none; }

/* Home */
.eg-hero { margin-top: -33px; background: url(images/Banner-1600x500-1.png) top center no-repeat; min-height: 532px; position: relative; }
.home .eg-header { margin-bottom: 25px; }
.eg-hero h2 { margin: 0; font: 500 62px/62px "Merriweather Sans", Lato, sans-serif; color: var(--navy); }
.eg-hero .eg-wrap { padding: 281px 20px 0; }
.eg-line { border: 0; border-top: 1px solid #000; margin: 15px 0; }

/* Cards */
.eg-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 23px 25px; }
.eg-card { position: relative; background: #fff; border-radius: 12px; box-shadow: 0 0 10px rgba(0,0,0,.15); overflow: hidden; display: flex; flex-direction: column; transition: all .25s; }
.eg-card:hover { box-shadow: 0 0 30px rgba(0,0,0,.15); }
.eg-thumb { display: block; position: relative; padding-bottom: 100%; margin-bottom: 20px; }
.eg-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.eg-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.35), transparent 75%); transition: opacity .3s ease-out; }
.eg-card:hover .eg-thumb::after { opacity: .5; }
.eg-badge { position: absolute; top: 0; left: 0; margin: 14px; padding: .6em 1.2em; background: var(--navy); color: #fff; font: 300 14px/1 Roboto, Lato, sans-serif; text-transform: uppercase; z-index: 1; }
.eg-body { padding: 0 12px 17.3px; margin-bottom: 16px; flex-grow: 1; }
.eg-card h3 { margin: 0 0 16px; font-size: 24px; line-height: 1.2; }
.eg-card h3 a { font: 600 24px/1.2 Lato, sans-serif; letter-spacing: .3px; color: #000; }
.eg-more { display: inline-block; margin-bottom: 16px; font: 400 18px/14px Lato, sans-serif; }
.eg-pages { text-align: center; margin-top: 40px; font: 300 18px/27px Roboto, Lato, sans-serif; padding-bottom: 17px; }
.eg-pages a, .eg-pages span { margin: 0 7px; font-weight: 300; color: #54595F; }
.eg-pages a:first-child, .eg-pages span:first-child { margin-left: 0; }
.eg-pages .cur { color: var(--green); }
.eg-pages .dots { color: inherit; }

/* Article */
.eg-article .eg-wrap { padding: 10px; }
.eg-feature { margin-top: -23px; line-height: 0; text-align: center; }
.eg-title { margin: 0; font-size: 2.5rem; line-height: 1; }
.eg-toc { border: 1px solid #9da5ae; border-radius: 3px; overflow: hidden; }
.eg-toc-head { display: flex; align-items: center; padding: 20px; border-bottom: 1px solid #9da5ae; }
.eg-toc-head h4 { flex: 1; margin: 0; font: 300 18px/1.2 Roboto, Lato, sans-serif; }
.eg-toc-head button { border: 0; background: none; padding: 0; cursor: pointer; color: #333; line-height: 0; }
.eg-toc-head svg { width: 16px; height: 18px; transition: transform .2s; }
.eg-toc.closed svg { transform: rotate(180deg); }
.eg-toc.closed .eg-toc-body { display: none; }
.eg-toc.closed .eg-toc-head { border-bottom: 0; }
.eg-toc-body { padding: 20px; }
.eg-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: item; }
.eg-toc li { counter-increment: item; margin-bottom: .5em; font: 300 18px/1.5 Roboto, Lato, sans-serif; }
.eg-toc li > div { display: flex; align-items: center; }
.eg-toc li > div::before { content: counters(item, ".") ". "; margin-right: 8px; }
.eg-toc li ol { margin: .5em 0 0 1em; }
.eg-toc a { font-weight: 300; color: inherit; }
.eg-toc a:hover { text-decoration: underline; }
.eg-content { margin-top: -9px; font: 300 18px/1.5 Roboto, Lato, sans-serif; }
.eg-content :is(h1,h2,h3,h4,h5,h6) { scroll-margin-top: 160px; }
.eg-content a { font-weight: inherit; }
.eg-content .wp-block-image { margin: 0 0 1em; }
.eg-short { width: 17%; border: 0; border-top: 1px solid #000; margin: 15px 0; }
.eg-recent { margin: 0; font: 600 36px/1 Lato, sans-serif; letter-spacing: .3px; }
.eg-article .eg-cards { gap: 34px 20px; }
.eg-article .eg-card { border-radius: 14px; }
.eg-article .eg-thumb { padding-bottom: 66%; margin-bottom: 25px; }
.eg-article .eg-badge { margin: 20px; font-size: 12px; }
.eg-article .eg-body { padding: 0 30px; margin: 20px 0 5px; }
.eg-article .eg-card h6 { margin: 0 0 19px; line-height: 1.2; }
.eg-article .eg-card h6 a { font: 600 18px/1.2 Lato, sans-serif; letter-spacing: .3px; color: #000; }
.eg-article .eg-more { margin-bottom: 5px; font: 700 12px/1.5 Roboto, Lato, sans-serif; text-transform: uppercase; }
.eg-meta { border-top: 1px solid #eaeaea; padding: 15px 30px; font: 300 12px/1.3 Roboto, Lato, sans-serif; color: #000; }
.eg-meta span + span::before { content: "•"; margin: 0 5px; }

/* Footer */
.eg-footer { background: #000; padding: 25px 0; }
.eg-footer .eg-wrap { display: flex; padding: 0; }
.eg-footer .c1 { flex: 0 0 41.331%; padding: 10px; }
.eg-footer .c2 { flex: 0 0 30.304%; padding: 10px; }
.eg-footer .c3 { flex: 0 0 28.002%; padding: 10px; }
.eg-cta { width: 100%; min-height: 280px; display: flex; align-items: center; justify-content: center; background: url(images/Picture15-1200x683-1.png) center/cover no-repeat; padding: 35px; }
.eg-cta a { display: inline-block; padding: 12px 24px; border: 2px solid var(--navy); border-radius: 3px; background: var(--navy); color: #fff; font-size: 18px; line-height: 1; text-align: center; }
.eg-cta a:hover { background: #fff; color: var(--navy); }
.eg-footer .c2 ul { list-style: none; margin: 0; padding: 48px; }
.eg-footer .c2 a { display: block; padding: 13px 20px; color: #fff; font-weight: 300; line-height: 20px; }
.eg-footer .c2 a:hover { background: var(--navy); }
.eg-footer h5 { display: inline-block; margin: 8px 0 16px; padding: 6px 10px; background: var(--navy); color: #fff; font: 500 20px/24px Roboto, sans-serif; }
.eg-footer .c3 ul { list-style: none; margin: 0; padding: 0; }
.eg-footer .c3 li { margin-bottom: 6px; }
.eg-footer .c3 li a { display: block; padding: 4px 8px; color: #F5F5F5; font-weight: 300; line-height: 27px; }
.eg-footer .c3 li a:hover { background: var(--navy); color: #fff; }
.eg-copy { padding: 18px 0 40px; }
.eg-copy .eg-wrap { padding: 10px 10px 10px 410px; }

@media (max-width: 1024px) {
	.eg-menu { display: none; }
	.eg-burger { display: flex; align-items: center; justify-content: center; margin: 0 auto; width: 33px; height: 33px; padding: 0; border: 0; border-radius: 3px; background: rgba(0,0,0,.05); color: #33373d; cursor: pointer; }
	.eg-header.open .eg-menu { display: block; position: absolute; left: 0; right: 0; top: 100%; background: #fff; max-height: 70vh; overflow: auto; }
	.eg-header.open .eg-menu > li { display: block; }
	.eg-header.open .eg-menu > li::after { display: none; }
	.eg-header.open .eg-menu a { padding: 10px 20px; line-height: 20px; white-space: normal; color: #33373d; }
	.eg-header.open .eg-menu > li > a { font-size: 20px; }
	.eg-header.open .eg-menu ul { display: block; position: static; box-shadow: none; padding-left: 16px; }
	.eg-header.open .eg-menu .eg-caret { display: none; }
	.eg-header.open .eg-menu a:hover { background: var(--navy); color: #fff; }
	.eg-cards, .eg-article .eg-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.eg-header { margin-bottom: 22px; }
	.home .eg-header { margin-bottom: 22px; }
	.eg-logo { flex-basis: 30%; }
	.eg-menu-col { flex: 0 0 40%; padding: 58px 0 0; }
	.eg-hero h2 { font-size: 38px; }
	.eg-cards, .eg-article .eg-cards { grid-template-columns: 1fr; }
	.eg-thumb, .eg-article .eg-thumb { padding-bottom: 50%; }
	.eg-footer .eg-wrap { display: block; }
	.eg-copy .eg-wrap { padding: 10px; }
}

/* ---- WordPress additions ---- */
.eg-menu > li.current-menu-item > a, .eg-menu > li.current-menu-ancestor > a { color: var(--navy); }
.eg-menu > li.current-menu-item > a::after, .eg-menu > li.current-menu-ancestor > a::after { opacity: 1; }
.eg-hero .wp-block-heading { max-width: none; }
.screen-reader-text { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }

/* Category, Articles and search listings */
.eg-archive { background: #eee; margin-top: -27px; padding: 60px 0; }
.eg-archive h1 { margin: 0 0 55px; font: 600 46px/1 "Merriweather Sans", Lato, sans-serif; letter-spacing: .3px; color: #000; }
.eg-archive .eg-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.eg-archive .eg-card { border-radius: 7px; }
.eg-archive .eg-thumb { padding-bottom: 66%; margin-bottom: 25px; }
.eg-archive .eg-badge { margin: 20px; }
.eg-archive .eg-body { padding: 0 30px; margin: 20px 0 0; }
.eg-archive .eg-card h3 { margin-bottom: 14px; }
.eg-archive .eg-more { margin-bottom: 20px; font: 700 12px/1.5 Roboto, Lato, sans-serif; text-transform: uppercase; }
.eg-archive .eg-pages { margin-top: 30px; padding-bottom: 0; }
.eg-archive .eg-pages a, .eg-archive .eg-pages span { color: #000; }
.eg-archive .eg-pages a:hover, .eg-archive .eg-pages .current { color: #00ce1b; }
.eg-pages .current { color: var(--green); }

/* Pages */
.eg-page-title { max-width: 1140px; margin: 8px auto 16px; padding: 0; }
.eg-page { max-width: 1200px; margin: 0 auto; padding: 10px; font: 300 18px/1.5 Roboto, Lato, sans-serif; }
.eg-page.is-wide { max-width: none; padding: 0; font: 400 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
.eg-page.is-wide > *, .eg-page.is-wide .wp-block-columns { margin-block: 0; }
.eg-form { display: flex; flex-wrap: wrap; gap: 15px; }
.eg-form input, .eg-form textarea { flex: 0 0 calc(50% - 7.5px); min-height: 40px; padding: 5px 14px; border: 0 solid #69727d; border-bottom-width: 1px; background: #fff; color: #000; font-family: inherit; font-size: 15px; font-weight: 300; line-height: 21px; }
.eg-form textarea { flex-basis: 100%; min-height: 95px; }
.eg-form input { padding: 8px 16px; }
.eg-form div { flex: 0 0 100%; text-align: right; }
.eg-form button { border: 2.5px solid var(--navy); background: var(--navy); color: #fff; padding: 15px 45px; font: 600 15px/1 Roboto, Lato, sans-serif; text-transform: uppercase; }
/* Contact */
.eg-c-title { margin: 0 !important; padding: 10px; text-align: center; color: #000; }
.eg-c-title.wp-block-heading { font-size: 65px; line-height: 1; }
.eg-c-sub { text-align: center; font: 300 18px/1 Roboto, Lato, sans-serif; padding-top: 12px; margin: 0; }
.eg-contact-row.wp-block-columns { padding: 18px 100px 100px; gap: 0; align-items: center !important; margin: 0; }
.eg-contact-row > .wp-block-column:first-child { flex: 0 0 53.364% !important; padding-right: 5.3%; }
.eg-contact-row > .wp-block-column:last-child { padding: 40px 30px; }
.eg-contact-row iframe { display: block; width: 100%; height: 300px; border: 0; }
/* About */
.eg-a-head { max-width: 1200px; margin: 0 auto !important; padding: 10px 0; }
.eg-a-head .wp-block-heading { margin: 0; font: 300 56px/1 "Merriweather Sans", Lato, sans-serif; color: #000; }
.eg-a-head .wp-block-separator { width: 113px; max-width: 15%; margin: 22px 0 2px; border: 0; border-top: 2px solid #00ce1b; opacity: 1; background: none; height: 0; }
.eg-a-cols.wp-block-columns { max-width: 1200px; margin: 0 auto 1px; padding: 40px 0 50px; gap: 0; align-items: center !important; min-height: 929px; }
.eg-a-cols > .wp-block-column { padding: 10px; }
.eg-a-cols p { font: 300 19px/1.8 Roboto, Lato, sans-serif; color: #000; margin: 43px 0 74px; }
.eg-a-cols > .wp-block-column:nth-child(1), .eg-a-cols > .wp-block-column:nth-child(3) { flex: 0 0 48.25% !important; }
.eg-a-cols > .wp-block-column:nth-child(2) { flex: 0 0 2.833% !important; padding: 0; }
.eg-a-cols > .wp-block-column:first-child { align-self: flex-start; }
.eg-a-cols .wp-block-column:last-child p { margin: 60px 0 80px; }
.eg-a-cols p a { font-size: 18px; }
.eg-a-cols .wp-block-image { margin: 0; text-align: center; line-height: 0; }
.eg-a-cols .wp-block-image img { transition: transform .3s; }
.eg-a-cols .wp-block-image img:hover { transform: scale(1.1); }
.eg-a-contact { background: #F5F5F5; padding: 38px 105px 40px; margin: 0 !important; min-height: 414px; }
.eg-a-contact > * { max-width: 653px; }
.eg-a-contact > p { font: 300 21px/1 Roboto, Lato, sans-serif; margin: 6px 0 39px; }
/* Legal hub */
.eg-legal { max-width: 1200px; margin: 0 auto !important; padding: 88px 10px 40px; color: #000; line-height: 1.5; }
.eg-legal > p { margin: 0 0 65px; }
.eg-page.is-wide .eg-legal .wp-block-columns { gap: 20px; margin: 0 0 20px; }
.eg-legal .wp-block-column { padding: 20px; border: 1px solid #F2F2F2; border-radius: 12px; box-shadow: 0 0 30px -10px rgba(0,0,0,.25); background: #fff; }
.eg-legal .wp-block-heading { margin: 0 0 20px; line-height: 1; color: #000; }
.eg-legal h3.wp-block-heading { font-size: 18px; color: #020101; }
.eg-legal h2.wp-block-heading { font-size: 34px; margin: 51px 0 20px; }
.eg-legal h2 + p { margin-bottom: 49px; }
.eg-legal .wp-block-column p { margin: 0 0 35px; line-height: 24px; }
.eg-legal .wp-block-column p:last-child { margin-bottom: 16px; }
.eg-legal .wp-block-column a { color: #1E73BE; text-decoration: underline; }
.eg-legal .eg-legal-form > .wp-block-column:first-child { flex: 0 0 380px; }
.eg-pform { display: flex; flex-wrap: wrap; gap: 20px 15px; line-height: 1; }
.eg-pform label { flex: 0 0 100%; line-height: 1.2; }
.eg-pform label.half { flex-basis: calc(50% - 7.5px); }
.eg-pform b { color: red; font-weight: 400; padding-left: 4px; }
.eg-pform input, .eg-pform select, .eg-pform textarea { display: block; width: 100%; margin-top: 5px; min-height: 40px; padding: 5px 14px; border: 1px solid #DADADA; border-radius: 3px; background: #fff; color: #000; font: inherit; font-size: 15px; line-height: 1.4; }
.eg-pform textarea { min-height: 95px; }
.eg-pform button { border: 2px solid var(--navy); border-radius: 50px; background: #F9F9F9; color: #1E73BE; padding: 10px 20px; font: 500 12px/1 Roboto, Lato, sans-serif; }
/* Article buttons */
.eg-btn-row { margin: 20px 0; }
.eg-btn-row .wp-block-button__link { border: 1.6px solid var(--navy); border-radius: 14px; background: #fff; color: var(--navy); padding: 16px; font: 500 18px/1 Roboto, Lato, sans-serif; transition: transform .3s; }
.eg-btn-row .wp-block-button__link:hover { background: var(--navy); color: #fff; transform: scale(1.1); }
.eg-content .wp-block-image img { height: auto; }
.eg-content .wp-block-audio audio { min-width: 300px; }
.eg-content, .eg-page { overflow-wrap: anywhere; }
.eg-content figure, .eg-page figure { max-width: 100%; margin-inline: 0; }
@media (max-width: 767px) { .eg-content iframe, .eg-content video, .eg-content table { max-width: 100%; } .eg-content ul, .eg-content ol { padding-left: 24px; } }
/* 404 */
.eg-404 { max-width: 1200px; min-height: 600px; margin: 0 auto; display: flex; align-items: center; }
.eg-404 > p { flex: 0 0 57.368%; margin: 0; text-align: center; font: bold 249px/1 -apple-system, "Segoe UI", sans-serif; color: #000; }
.eg-404 h2 { margin: 0 0 20px; font-size: 53px; line-height: 1; color: #000; }
.eg-404 h3 { margin: 0; font: 500 26px/42px "Merriweather Sans", Lato, sans-serif; color: #000; }
.eg-404 hr { width: 60px; border: 0; border-top: 3px solid #e8e8e8; margin: 20px 0; }
.eg-404 div p { margin: 0 0 20px; font-size: 15px; color: #8c8c8c; }
.eg-search { display: flex; max-width: 320px; }
.eg-search input { flex: 1; min-width: 0; min-height: 50px; padding: 0 16px; border: 0; background: #eceeef; font: inherit; font-size: 15px; }
.eg-search button { border: 0; padding: 0 16px; background: #69727d; color: #fff; font: inherit; font-size: 15px; }
@media (max-width: 1024px) { .eg-archive .eg-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .eg-archive { padding: 100px 25px; } }
@media (max-width: 767px) {
	.eg-archive { padding: 50px 15px; } .eg-archive .eg-cards { grid-template-columns: 1fr; } .eg-archive .eg-thumb { padding-bottom: 50%; }
	.eg-archive h1 { overflow-wrap: anywhere; font-size: 34px; }
	.eg-page-title { padding: 0 10px; }
	.eg-contact-row.wp-block-columns { padding: 20px; } .eg-contact-row > .wp-block-column:first-child, .eg-contact-row > .wp-block-column:last-child { flex: 0 0 100% !important; padding: 0 0 35px; }
	.eg-c-title.wp-block-heading { font-size: 35px; } .eg-c-sub { line-height: 1.4; padding: 12px 20px 0; }
	.eg-a-head .wp-block-heading { font-size: 45px; } .eg-a-head { padding: 10px; }
	.eg-a-contact { padding: 50px 20px; } .eg-a-contact > * { max-width: none; padding: 0; } .eg-a-contact > p { line-height: 1.3; }
	.eg-form input { flex-basis: 100%; } .eg-a-cols.wp-block-columns { display: block; min-height: 0; } .eg-legal .wp-block-columns { display: block; } .eg-legal .wp-block-column { margin-bottom: 20px; } .eg-pform label.half { flex-basis: 100%; }
	.eg-404 { display: block; padding: 20px; } .eg-404 > p { font-size: 120px; }
}

/* Contact form: sending */
.eg-form input[type="hidden"] { display: none; }
.eg-form .eg-trap { position: absolute; left: -9999px; }
.eg-form button[type="submit"] { cursor: pointer; }
.eg-form button[type="submit"]:hover { background: #00ce1b; border-color: #00ce1b; }
.eg-form-note { flex: 0 0 100%; margin: 0; font: 400 16px/1.4 Roboto, Lato, sans-serif; }
.eg-form-note.is-sent { color: #276b3a; }
.eg-form-note.is-missing, .eg-form-note.is-error { color: #b00020; }
