/* Additions for CMS-driven blocks, styled to match the CSS Group theme
   (Oswald/Poppins, brand red #e00c12). */
.cms-content .section-title p,
.cms-content .cms-body { text-align: left; }
.cms-empty { text-align: left; color: #777; padding: 20px 0; }
.cms-hp { position: absolute !important; left: -9999px !important; }

table.cms-jobs { border-collapse: collapse; width: 100%; margin-top: 10px; }
table.cms-jobs td { border: 1px solid #ddd; padding: 20px 15px; text-align: left; font-size: 15px; }
table.cms-jobs tr:nth-child(even) { background-color: #f2f2f2; }
table.cms-jobs tr:hover { background-color: #ddd; }
table.cms-jobs small { font-size: 12px; }

.cms-job-meta { list-style: none; padding: 0; margin: 10px 0 20px; text-align: left; }
.cms-job-meta li { display: inline-block; margin: 6px 16px 6px 0; color: #333; font-size: 14px; }
.cms-job-meta li i { color: #e00c12; margin-right: 6px; }
.cms-job-meta .is-open { color: #0fb914; }
.cms-job-meta .is-closed { color: #999; }
.cms-rich { text-align: left; color: #333; font-size: 14px; line-height: 24px; }
.cms-rich ul { padding-left: 20px; list-style: disc; margin: 10px 0; }
.cms-rich li { padding: 4px 0; }
.cms-rich p { padding: 6px 0; text-align: left; }
.cms-rich img { max-width: 100%; height: auto; }

.cms-form-errors { background: #fff3f3; border-left: 3px solid #e00c12; padding: 12px 18px; margin: 10px 0 20px; text-align: left; }
.cms-form-errors p { color: #b00; font-size: 13px; padding: 2px 0 !important; }
.cms-lists { clear: both; text-align: left; padding: 18px 0 8px; font-size: 14px; color: #353535; }
.cms-lists span { display: block; font-weight: 600; margin-bottom: 8px; }
.cms-lists label { display: inline-block; margin: 0 18px 6px 0; cursor: pointer; }
.cms-lists input { margin-right: 6px; }
.custom-form textarea.form-control { height: 140px; border-bottom: 1px solid #000; padding-top: 15px; }
.custom-form .cms-file { float: left; width: 100%; text-align: left; padding: 16px 0; font-size: 14px; }
.custom-form .cms-file input { margin-top: 8px; }

.cms-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; margin: 20px 0 40px; clear: both; }
.cms-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #eee; text-align: left; transition: transform .25s ease, box-shadow .25s ease; color: #141414; }
.cms-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,.08); }
.cms-card-img { height: 170px; background: #141414 center/cover no-repeat; display: flex; align-items: center; justify-content: center; }
.cms-card-img span { color: #fff; font-family: 'Oswald', sans-serif; font-size: 26px; letter-spacing: 2px; text-transform: uppercase; border-bottom: 2px solid #e00c12; }
.cms-card-body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.cms-card-body small { color: #e00c12; font-weight: 600; text-transform: uppercase; font-size: 11px; letter-spacing: 1px; }
.cms-card-body h4 { font-family: 'Oswald', sans-serif; font-size: 20px; font-weight: 600; margin: 6px 0 8px; text-align: left; }
.cms-card-body p { font-size: 13px; color: #666; line-height: 20px; padding: 0 0 12px !important; text-align: left; }
.cms-more { margin-top: auto; font-size: 13px; font-weight: 600; color: #e00c12; }
.cms-more i { margin-left: 6px; transition: margin .2s ease; }
.cms-card:hover .cms-more i { margin-left: 12px; }

.cms-social { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin: 20px 0 40px; clear: both; }
.cms-post { background: #fff; border: 1px solid #eee; text-align: left; color: #141414; transition: transform .25s ease, box-shadow .25s ease; display: flex; flex-direction: column; }
.cms-post:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0,0,0,.08); }
.cms-post-img { height: 160px; background: #eee center/cover no-repeat; }
.cms-post-body { padding: 14px 16px 18px; }
.cms-post-src { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #777; }
.cms-post-src i { color: #e00c12; font-size: 14px; }
.cms-post-src time { margin-left: auto; }
.cms-post-body h5 { font-size: 15px; font-weight: 600; margin: 8px 0 4px; line-height: 21px; }
.cms-post-body p { font-size: 13px; color: #555; line-height: 20px; padding: 0 !important; }
.cms-embeds { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; margin: 10px 0 40px; clear: both; }
.cms-embeds iframe { max-width: 100%; }

.cms-newsletter-actions { margin: 10px 0 30px; text-align: left; }
.cms-newsletter-actions a { display: inline-block; background: #e00c12; color: #fff; padding: 12px 22px; margin-right: 10px; font-weight: 600; font-size: 13px; }
.cms-newsletter-actions a.alt { background: #141414; }

.cms-toast-wrap { position: fixed; right: 24px; bottom: 24px; z-index: 100000; display: flex; flex-direction: column; gap: 10px; }
.cms-toast { background: #141414; color: #fff; padding: 16px 22px; font-size: 14px; border-left: 4px solid #0fb914; box-shadow: 0 10px 30px rgba(0,0,0,.25); max-width: 380px; animation: cms-toast-in .4s ease, cms-toast-out .5s ease 7s forwards; }
.cms-toast-error { border-left-color: #e00c12; }
@keyframes cms-toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes cms-toast-out { to { opacity: 0; visibility: hidden; } }

.cms-social-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 6px; clear: both; }
.cms-social-links a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; background: #141414; color: #fff; font-size: 13px; transition: background .2s ease; }
.cms-social-links a:hover { background: #e00c12; color: #fff; }

/* Inline PDF viewer (newsletters) */
.cms-pdf { clear: both; margin: 20px 0 10px; border: 1px solid #e5e5e5; background: #f4f4f4; }
.cms-pdf object, .cms-pdf iframe { display: block; width: 100%; height: 85vh; min-height: 520px; border: 0; }
.cms-pdf-fallback { text-align: left; font-size: 13px; color: #777; padding: 10px 14px !important; background: #fff; border-top: 1px solid #e5e5e5; }
.cms-pdf-fallback a { color: #e00c12; font-weight: 600; }
@media (max-width: 767px) { .cms-pdf object, .cms-pdf iframe { height: 70vh; min-height: 420px; } }

/* Output of the visual editor */
.cms-rich .ql-align-center { text-align: center !important; }
.cms-rich .ql-align-right { text-align: right !important; }
.cms-rich .ql-align-justify { text-align: justify !important; }
.cms-rich h2, .cms-rich h3, .cms-rich h4 { font-family: 'Oswald', sans-serif; font-weight: 600; text-align: left; color: #141414; margin: 22px 0 10px; }
.cms-rich h2 { font-size: 26px; } .cms-rich h3 { font-size: 21px; } .cms-rich h4 { font-size: 18px; }
.cms-rich ol { padding-left: 20px; list-style: decimal; margin: 10px 0; text-align: left; }
.cms-rich ul li, .cms-rich ol li { text-align: left; }
.cms-rich blockquote { border-left: 3px solid #e00c12; padding: 6px 0 6px 16px; margin: 14px 0; color: #555; text-align: left; font-style: italic; }
.cms-rich a { color: #e00c12; }
.cms-rich iframe.ql-video { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; margin: 10px 0; }

/* The inner-page styles (taken from the static careers page) hide the quote form;
   CMS pages whose footer is set to "Quote form + links" show it again, side by side. */
.cms-quote-footer { padding-top: 0 !important; background: #fff; }
.cms-quote-footer .footer_div1_1 { display: block; }
.cms-quote-footer .footer_div1_2 { width: 50%; min-height: 830px; padding-bottom: 6%; }
@media (max-width: 767px) {
  .cms-quote-footer .footer_div1_1, .cms-quote-footer .footer_div1_2 { width: 100%; min-height: auto; float: none; }
}

/* the theme's decorative strip (.col-wc_dec) sticks out below short CMS pages */
.cms-inner .col-wc_dec { display: none; }
.cms-inner .content-left { padding-bottom: 40px; }

/* ---- Newsletter archive: latest issue + previous editions ---- */
.cms-nl-archive { clear: both; margin: 30px 0 50px; }
.cms-nl-latest { display: flex; flex-direction: column; align-items: center; }
.cms-nl-cover-lg { display: block; width: 100%; max-width: 560px; border: 3px solid #e3e3e3; background: #fff; transition: transform .3s ease, box-shadow .3s ease; }
.cms-nl-cover-lg:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,.15); }
.cms-nl-cover-lg img { display: block; width: 100%; height: auto; }
.cms-nl-bar { align-self: stretch; margin-top: 20px; background: #1e1e1e; color: #fff; text-align: center; font-family: 'Poppins', sans-serif; font-size: 26px; font-weight: 500; letter-spacing: .5px; padding: 18px 20px; text-transform: uppercase; }
.cms-nl-read { display: inline-block; margin-top: 26px; background: #d71920; color: #fff !important; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 20px; text-transform: uppercase; padding: 16px 26px; transition: background .2s ease, transform .2s ease; }
.cms-nl-read:hover { background: #141414; transform: translateY(-2px); }

.cms-nl-prev { margin-top: 90px; }
.cms-nl-prev-title { background: #dcdcdc; text-align: center !important; font-family: 'Oswald', sans-serif !important; font-weight: 700 !important; font-size: 44px !important; line-height: 1.2 !important; text-transform: uppercase; color: #141414 !important; padding: 14px 20px !important; margin: 0 !important; }
.cms-nl-prev-title:before, .cms-nl-prev-title:after { display: none !important; }
.cms-nl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); border-left: 2px solid #e3e3e3; border-top: 2px solid #e3e3e3; margin-top: 10px; }
.cms-nl-item { display: flex; flex-direction: column; align-items: center; padding: 20px 18px 16px; border-right: 2px solid #e3e3e3; border-bottom: 2px solid #e3e3e3; background: #fff; color: #141414; transition: background .2s ease; }
.cms-nl-item:hover { background: #f6f6f6; }
.cms-nl-thumb { display: block; width: 100%; aspect-ratio: 3 / 4; border: 2px solid #e3e3e3; overflow: hidden; background: #fff; }
.cms-nl-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.cms-nl-item:hover .cms-nl-thumb img { transform: scale(1.04); }
.cms-nl-item-label { color: #141414 !important; margin-top: 12px; font-family: 'Oswald', sans-serif; font-size: 16px; font-weight: 600; text-transform: uppercase; text-align: center; }
.cms-nl-placeholder { width: 100%; height: 100%; min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: #141414; color: #fff; text-align: center; padding: 20px; }
.cms-nl-placeholder strong { font-family: 'Oswald', sans-serif; font-size: 28px; letter-spacing: 1px; text-transform: uppercase; border-bottom: 2px solid #e00c12; }
.cms-nl-placeholder small { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: #bbb; }
.cms-nl-cover-lg .cms-nl-placeholder { aspect-ratio: 3 / 4; }
@media (max-width: 767px) {
  .cms-nl-bar { font-size: 18px; }
  .cms-nl-prev-title { font-size: 28px !important; }
  .cms-nl-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Newsletter issue page: article + sidebar ---- */
.cms-issue { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; clear: both; }
.cms-issue-main .section-title h3 { text-align: left; }
.cms-issue-summary p { font-size: 17px; font-weight: 600; color: #333; }
.cms-issue-body h2 { font-family: 'Oswald', sans-serif; font-size: 40px; font-weight: 700; text-transform: uppercase; color: #333; margin: 40px 0 16px; line-height: 1.15; scroll-margin-top: 100px; }
.cms-issue-body h3 { font-family: 'Poppins', sans-serif; font-size: 22px; font-weight: 700; color: #333; margin: 26px 0 12px; line-height: 1.3; }
.cms-issue-body p { font-size: 16px; line-height: 1.75; color: #444; }
.cms-issue-side { background: #f1f1f1; padding: 0 0 20px; position: sticky; top: 100px; }
.cms-issue-side-head { background: #d71920; color: #fff; text-align: center; font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 30px; text-transform: uppercase; padding: 8px 10px; }
.cms-issue-cover { display: block; margin: 20px 14px 0; background: #fff; }
.cms-issue-cover img { display: block; width: 100%; height: auto; }
.cms-issue-label { text-align: center; font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 22px; text-transform: uppercase; color: #333; margin-top: 12px; }
.cms-issue-pdf { display: block; margin: 12px 14px 0; text-align: center; background: #141414; color: #fff !important; font-size: 13px; font-weight: 600; padding: 10px; }
.cms-issue-pdf:hover { background: #d71920; }
.cms-issue-toc { margin: 20px 14px 0; background: #fff; border: 1px solid #d9d9d9; }
.cms-issue-toc h4 { font-family: 'Oswald', sans-serif; font-size: 24px; font-weight: 700; text-transform: uppercase; color: #333; padding: 16px 18px; border-bottom: 5px solid #a9adb5; margin: 0; text-align: left; }
.cms-issue-toc ol { list-style: decimal; margin: 0; padding: 10px 18px 10px 40px; text-align: left; }
.cms-issue-toc li { padding: 12px 0; border-bottom: 1px solid #ddd; font-size: 14px; text-transform: uppercase; line-height: 1.5; }
.cms-issue-toc li:last-child { border-bottom: 0; }
.cms-issue-toc a { color: #333; }
.cms-issue-toc a:hover { color: #d71920; }
@media (max-width: 1100px) {
  .cms-issue { grid-template-columns: 1fr; }
  .cms-issue-side { position: static; order: -1; }
  .cms-issue-body h2 { font-size: 30px; }
}

/* ---- Social Media Hub (masonry cards) ---- */
.cms-hub-section { padding: 40px 32px 60px !important; background: #fff; clear: both; }
.cms-hub-title { text-align: center !important; font-family: 'Oswald', sans-serif !important; font-weight: 700 !important; font-size: 52px !important; line-height: 1.1 !important; text-transform: uppercase; color: #141414; margin: 0 0 24px !important; padding: 0 !important; }
.cms-hub-title:before, .cms-hub-title:after { display: none !important; }
.cms-hub-panel { background: #f1f1f1; padding: 64px 16px 16px; }
.cms-hub { column-count: 5; column-gap: 16px; text-align: left; clear: both; }
@media (max-width: 1600px) { .cms-hub { column-count: 4; } }
@media (max-width: 1250px) { .cms-hub { column-count: 3; } }
@media (max-width: 900px)  { .cms-hub { column-count: 2; } .cms-hub-title { font-size: 36px !important; } .cms-hub-panel { padding-top: 24px; } }
@media (max-width: 600px)  { .cms-hub { column-count: 1; } .cms-hub-section { padding: 24px 12px 40px !important; } }
.cms-hub-card { break-inside: avoid; display: inline-block; width: 100%; margin: 0 0 16px; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.06); transition: box-shadow .25s ease, transform .25s ease; }
.cms-hub-card:hover { box-shadow: 0 14px 34px rgba(0,0,0,.12); transform: translateY(-3px); }
.cms-hub-media { position: relative; display: block; background: #000; }
.cms-hub-media img { display: block; width: 100%; height: auto; }
.cms-hub-badge { position: absolute; top: 24px; left: 24px; background: #e00c12; color: #fff; font-family: 'Poppins', sans-serif; font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; padding: 4px 6px; border-radius: 3px; line-height: 1; }
.cms-hub-badge-inline { position: static; display: inline-block; margin-bottom: 12px; }
.cms-hub-x .cms-hub-badge { background: #4a90c8; }
.cms-hub-facebook .cms-hub-badge { background: #1877f2; }
.cms-hub-linkedin .cms-hub-badge { background: #0a66c2; }
.cms-hub-instagram .cms-hub-badge { background: linear-gradient(45deg, #f58529, #dd2a7b 55%, #8134af); }
.cms-hub-play { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border: 2px solid rgba(255,255,255,.85); border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; padding-left: 3px; background: rgba(0,0,0,.25); transition: transform .2s ease, background .2s ease; }
.cms-hub-media:hover .cms-hub-play { transform: scale(1.12); background: rgba(224,12,18,.85); border-color: transparent; }
.cms-hub-body { padding: 22px 24px 16px; }
.cms-hub-body h5 { font-family: 'Poppins', sans-serif; font-size: 16px; font-weight: 700; line-height: 1.5; color: #222; margin: 0 0 14px; text-align: left; }
.cms-hub-body h5 a { color: inherit; }
.cms-hub-body h5 a:hover { color: #e00c12; }
.cms-hub-text { font-size: 15px !important; line-height: 1.5 !important; color: #555 !important; white-space: pre-line; overflow-wrap: anywhere; padding: 0 0 18px !important; text-align: left !important; }
.cms-hashtag { color: #3b8fd6; }
.cms-hub-author { display: flex; align-items: center; gap: 14px; }
.cms-hub-author img { width: 46px; height: 46px; object-fit: contain; flex-shrink: 0; }
.cms-hub-author strong { display: block; font-size: 15px; color: #222; font-weight: 700; }
.cms-hub-author span { display: block; font-size: 13px; color: #777; }
.cms-hub-date { display: block; margin-top: 10px; font-size: 13px; color: #666; }
.cms-hub-stats { display: flex; align-items: center; gap: 20px; border-top: 1px solid #eee; padding: 14px 24px; font-size: 13px; color: #555; }
.cms-hub-stats i { margin-right: 3px; font-size: 15px; }
.cms-hub-share { margin-left: auto; color: #555; font-size: 15px; }
.cms-hub-share:hover, .cms-hub-stats span:hover { color: #e00c12; }

/* [[media:slug]] embeds */
img.cms-media { max-width: 100%; height: auto; display: inline-block; vertical-align: middle; }
video.cms-media { width: 100%; max-width: 100%; height: auto; display: block; margin: 10px 0; background: #000; }
.cms-media-file { display: inline-flex; align-items: center; gap: 8px; background: #141414; color: #fff !important; padding: 10px 16px; font-size: 13px; font-weight: 600; margin: 6px 0; }
.cms-media-file:hover { background: #e00c12; }
