/* Page Builder – front-end additions. All MKH sections use the site's own style.css;
   this file only styles the builder-specific wrappers (preview bar, rich text block, video banner). */

.pb-preview-bar {
    position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 9999;
    background: #2d3c5b; color: #fff; padding: 10px 18px; border-radius: 30px;
    font: 600 14px/1.3 var(--font-main, sans-serif); box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
}
.pb-preview-bar a { color: #98c355; margin-left: 10px; text-decoration: underline; }

/* Page that does not start with a banner: keep content below the fixed header */
.pb-page--no-banner { padding-top: min(max(calc(60px + 4vw), 110px), 170px); }

/* Values: its light-blue extension (:before, 128px upwards) is designed to sit under "Mission & Purpose" (homepage).
   After any other section it would cover the bottom of that section, so only keep it after Mission. */
.pb-page > .values-section:first-child:before,
.pb-page > :not(.our-mission-section) + .values-section:before { display: none; }

/* Rich text */
.pb-text-section { position: relative; padding: min(max(calc(20px + 2.5vw), 40px), 80px) 0; }
.pb-text-section__title { margin-bottom: min(max(calc(10px + 1.5vw), 20px), 40px); }
.pb-text-section__title h2 { display: inline-block; color: var(--main, #2d3c5b); font-weight: 800; font-size: min(max(calc(17px + 2.2vw), 32px), 60px); line-height: 110%; }
.pb-text-section__title .underline-green:before { bottom: min(max(calc(10.28571px - 1.33929vw), -9px), 0px); height: min(max(calc(-.42857px + .44643vw), 3px), 6px); }
.pb-text-section__title.animation .underline-green:before { width: 100%; }
.pb-text-section__box { padding-bottom: min(max(calc(20px + 3vw), 40px), 89px); }
.pb-text-section__box.\!bg-white { box-shadow: 0 10px 40px rgba(45, 60, 91, .06); }
.pb-text-section .text-content ul { list-style: disc; padding-left: 1.2em; }
.pb-text-section .text-content ol { list-style: decimal; padding-left: 1.2em; }
.pb-text-section .text-content a { text-decoration: underline; }
.pb-text-section .text-content img { max-width: 100%; height: auto; }

/* Latest insights */
.pb-insights { padding-top: min(max(calc(20px + 2.5vw), 40px), 80px); }

/* Video banner (from assets/css/mkh-expert.css, scoped) */
.pb-video-section { padding: min(max(calc(20px + 2.5vw), 40px), 80px) 0; }
.pb-video { position: relative; max-width: 1038px; margin: 0 auto; }
.pb-video video { display: block; width: 100%; height: min(max(calc(100px + 30vw), 240px), 584px); object-fit: cover; border-radius: 0 15px 0 15px; background: #2d3c5b; }
.pb-video .play-btnn-title { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 23px; }
.pb-video .play-button { width: 80px; height: 80px; display: flex; justify-content: center; align-items: center; cursor: pointer; position: relative; }
.pb-video .play-button::before { content: ''; background: url(../../assets/img/Exclude.svg) center / cover no-repeat; width: 80px; height: 80px; position: absolute; }
.pb-video .play-button.hidden { display: none; }
.pb-video .play-btnn-title p { color: #fff; font-size: 26px; line-height: 34px; font-weight: 700; font-family: var(--font-main); text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
.pb-video .play-button.hidden ~ p { display: none !important; }

/* Gallery photos stick out above the dark testimonials box (as on Work For Us) – leave room after builder-only blocks */
.pb-page > .pb-video-section + .sections-container,
.pb-page > .pb-text-section + .sections-container,
.pb-page > .pb-insights + .sections-container { margin-top: min(max(calc(20px + 4vw), 60px), 120px); }

/* ---------- Shared intro text under section titles */
.pb-intro { margin-bottom: min(max(calc(10px + 1.5vw), 20px), 40px); max-width: 900px; }

/* ---------- Embed (interactive HTML / link) */
.pb-embed-section { padding: min(max(calc(20px + 2.5vw), 40px), 80px) 0; }
.pb-embed { display: block; width: 100%; border: 0; background: transparent; }
.pb-embed-full { width: 100%; }
.pb-embed-empty { padding: 40px; border: 2px dashed #b9c6e4; border-radius: 15px; text-align: center; color: var(--main, #2d3c5b); font-family: var(--font-main); }

/* ---------- FAQs */
.pb-faq__list { border-top: 1px solid rgba(45, 60, 91, .2); }
.pb-faq__item { border-bottom: 1px solid rgba(45, 60, 91, .2); }
.pb-faq__q { margin: 0; }
.pb-faq__q button {
    display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%;
    padding: min(max(calc(12px + 1vw), 18px), 28px) 0; background: none; border: 0; cursor: pointer; text-align: left;
    color: var(--main, #2d3c5b); font-family: var(--font-second, sans-serif); font-weight: 600;
    font-size: min(max(calc(14px + .6vw), 18px), 24px); line-height: 1.3;
}
.pb-faq__q button:hover span, .pb-faq__q button:focus-visible span { text-decoration: underline; text-decoration-color: var(--green, #8cc53f); text-underline-offset: 5px; }
.pb-faq__icon { position: relative; flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; background: var(--light-blue, #edf2fc); transition: background-color .3s ease; }
.pb-faq__icon:before, .pb-faq__icon:after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--main, #2d3c5b); transform: translate(-50%, -50%); transition: transform .3s ease; }
.pb-faq__icon:after { transform: translate(-50%, -50%) rotate(90deg); }
.pb-faq__item.is-open .pb-faq__icon { background: var(--green, #8cc53f); }
.pb-faq__item.is-open .pb-faq__icon:after { transform: translate(-50%, -50%) rotate(0deg); }
.pb-faq__a { padding: 0 48px min(max(calc(12px + 1vw), 18px), 28px) 0; }
.pb-faq__a .text-content ul { list-style: disc; padding-left: 1.2em; }
.pb-faq__a .text-content ol { list-style: decimal; padding-left: 1.2em; }
.pb-faq__a .text-content a { text-decoration: underline; }

/* ---------- Forms (same look as the site's newsletter form) */
.pb-form-box.\!bg-white { box-shadow: 0 10px 40px rgba(45, 60, 91, .06); }
.pb-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; }
.pb-form__field--full { grid-column: 1 / -1; }
.pb-form .form-label { display: block; color: var(--main, #2d3c5b); font-family: var(--font-main); font-weight: 300; font-size: min(max(calc(14px + .5vw), 18px), 22px); margin-bottom: 6px; }
.pb-form .form-label span, .pb-form .form__checkbox p span { color: var(--green, #8cc53f); margin-left: 2px; }
.pb-form .form-input {
    width: 100%; padding: 8px 0; background: transparent; border: 0; border-bottom: 1px solid var(--main, #2d3c5b); border-radius: 0;
    color: var(--main, #2d3c5b); font-family: var(--font-main); font-size: 16px; font-weight: 300; letter-spacing: .55px; line-height: 1.3; outline: none;
}
.pb-form .form-input:focus { border-bottom-color: var(--green, #8cc53f); box-shadow: 0 1px 0 var(--green, #8cc53f); }
.pb-form .form-input::placeholder { color: rgba(45, 60, 91, .55); }
.pb-form textarea.form-input { resize: vertical; min-height: 110px; }
.pb-form select.form-input { -webkit-appearance: none; appearance: none; padding-right: 28px; cursor: pointer;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%232d3c5b' stroke-width='2' fill='none'/%3E%3C/svg%3E") right 4px center no-repeat; }
.pb-form .form__checkbox label { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.pb-form .form__checkbox p { color: var(--main, #2d3c5b); font-family: var(--font-main); font-size: 15px; line-height: 1.45; }
.pb-form .form__checkbox input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pb-form .checkbox-box { flex: 0 0 22px; width: 22px; height: 22px; border: 1px solid var(--main, #2d3c5b); border-radius: 4px; background: #fff; position: relative; margin-top: 1px; }
.pb-form .form__checkbox input:checked + label .checkbox-box { background: var(--main, #2d3c5b); }
.pb-form .form__checkbox input:checked + label .checkbox-box:after { content: ''; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.pb-form .form__checkbox input:focus-visible + label .checkbox-box { outline: 2px solid var(--green, #8cc53f); outline-offset: 2px; }
.pb-form__submit { margin-top: 36px; border: 0; }
.pb-form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pb-form__done { padding: 40px 0; text-align: center; color: var(--main, #2d3c5b); font-family: var(--font-second, sans-serif); font-weight: 600; font-size: min(max(calc(16px + 1vw), 22px), 32px); line-height: 1.3; }
@media (max-width: 640px) { .pb-form__grid { grid-template-columns: 1fr; gap: 22px; } }

/* ---------- Password page */
.pb-gate { min-height: 55vh; }
.pb-gate h1 { display: inline-block; color: var(--main, #2d3c5b); font-weight: 800; font-size: min(max(calc(17px + 2.2vw), 32px), 60px); line-height: 110%; }
.pb-gate__box { max-width: 720px; }
.pb-gate__icon { color: var(--main, #2d3c5b); margin-bottom: 18px; }
.pb-gate__note { margin-bottom: 28px; font-size: 18px; }
.pb-gate__form .pb-form__field { max-width: 420px; }
.pb-gate__error { margin-top: 10px; color: #c0392b; font-family: var(--font-main); font-size: 15px; }

/* ---------- Sub-pages list */
.pb-subpages.read_blogs { padding-bottom: min(max(calc(20px + 2.5vw), 40px), 80px); }
.pb-subpages .pb-subpages__list { margin-top: 0; }
.pb-subpages__desc { margin-top: 6px; font-size: 14px; line-height: 1.4; opacity: .9; }
.pb-subpages__lock { background: var(--main, #2d3c5b) !important; color: #fff !important; }
.pb-subpages__empty { color: var(--main, #2d3c5b); font-family: var(--font-main); font-size: 18px; }

/* The footer's decorative circle reaches up over the last section of the page: let clicks pass through it
   (otherwise a form, FAQ or embed placed at the end of a page can't be clicked there) */
.footer__circle, .footer__circle svg { pointer-events: none; }
/* ...and keep the page content above the footer's circle (the footer top has z-index 1) */
.pb-page { position: relative; z-index: 2; }

/* Form tick box (the site's footer checkbox is white-on-dark – restyled for light backgrounds) */
.pb-form .form__checkbox input + label .checkbox-box { position: relative; top: auto; left: auto; transform: none; flex: 0 0 20px; width: 20px; height: 20px; margin-top: 1px; border: 1px solid var(--main, #2d3c5b); border-radius: 3px; background: #fff; overflow: visible; }
.pb-form .form__checkbox input + label .checkbox-box:before { display: none; }
.pb-form .form__checkbox input + label .checkbox-box:after { content: ''; display: none; position: absolute; left: 6px; top: 2px; right: auto; width: 6px; height: 11px; background: none; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.pb-form .form__checkbox input:checked + label .checkbox-box { background: var(--main, #2d3c5b); }
.pb-form .form__checkbox input:checked + label .checkbox-box:after { display: block; }
