/* McKinlay Law - additions to the original theme (style.css / responsive.css) */

/* Homepage banner text (was an inline <style> block on the old homepage) */
.banner-text { padding-left: 60px; color: #fff; margin-top: 20px; }
.banner-text a { background: none; display: unset; padding: 0; text-transform: unset; font-size: inherit; line-height: inherit; color: #ffb70b; }
.banner-text a:hover { background: none; }
@media (min-width: 320px) and (max-width: 992px) {
  .banner-text { padding-left: 0; }
  .outer-wraper .banner-content h1 { padding-left: 0; }
}

/* Vacancies search autocomplete (old inline style) */
.ui-widget.ui-widget-content { height: 200px; overflow: hidden; background: #fff; }

/* Form feedback */
.form-message:empty { display: none; }
.form-message { margin: 0 0 15px; padding: 12px 15px; font-size: 14px; line-height: 1.5; }
.form-message.is-error { background: #ffe5e5; color: #9b1c1c; border-left: 4px solid #d93636; }
.form-message.is-success { background: #e7f6ec; color: #1b5e33; border-left: 4px solid #2e9b55; }
.form-success { background: #fff; padding: 25px; font-size: 16px; line-height: 1.6; color: #0b0042; border-left: 4px solid #fbb917; }
.form-success h3 { font-size: 22px; margin-bottom: 10px; color: #0b0042; }
.field-error { border-color: #d93636 !important; background-color: #fff6f6 !important; }
.field-error-text { display: block; color: #d93636; font-size: 12px; margin: -8px 0 10px; text-align: left; }
form [type=submit].is-loading { opacity: .6; cursor: wait; }
form [type=submit][disabled] { opacity: .55; cursor: not-allowed; }

/* reCAPTCHA v3 badge: keep visible but unobtrusive */
.grecaptcha-badge { z-index: 50; }

/* Vacancy closed notice */
.vacancy-closed p { font-size: 14px; line-height: 1.6; }

/* Candidate profile page (old inline style) */
.page-page-view-candidate-profile #content-wrapper { margin: 0 auto; width: 100%; height: auto; background: #f9f9f9; padding: 60px 0 0; position: relative; }
.page-page-view-candidate-profile #content-wrapper .container { padding-bottom: 80px; }
.page-page-view-candidate-profile .footer { margin-top: 0; }

/* Landing pages (old inline style) */
.page-landing-index #content-wrapper { margin-top: 40px; }
.page-landing-index .testi-sec { margin-top: 40px; }
.page-landing-index .banner-content-cp h1 { font-size: 50px; }

/* ---------- Page builder sections ---------- */
.pb-section { position: relative; }
.pb-gap-main { padding: 60px 0; }
.pb-gap-xl { padding: 90px 0; }
.pb-gap-md { padding: 40px 0; }
.pb-gap-sm { padding: 20px 0; }
.pb-gap-none { padding: 0; }
.pb-bg-light { background: #f9f9f9; }
.pb-bg-dark { background: #0b0042; color: #fff; }
.pb-bg-dark h2, .pb-bg-dark h3, .pb-bg-dark p, .pb-bg-dark li { color: #fff; }
.pb-bg-purple { background: #4b2a87; color: #fff; }
.pb-bg-purple h2, .pb-bg-purple h3, .pb-bg-purple p, .pb-bg-purple li { color: #fff; }

.pb-title { font-family: LibreBaskerville, serif; color: #0b0042; font-size: 36px; line-height: 1.25; margin-bottom: 25px; }
.pb-bg-dark .pb-title, .pb-bg-purple .pb-title { color: #fff; }
.pb-content { font-size: 14px; line-height: 1.9; color: #333; }
.pb-content p { margin-bottom: 15px; }
.pb-bg-dark .pb-content, .pb-bg-purple .pb-content { color: #fff; }
.pb-btn { display: inline-block; background: #fbb917; color: #fff !important; text-transform: uppercase; font-size: 13px; padding: 14px 34px; margin-top: 10px; transition: background .2s; text-decoration: none !important; }
.pb-btn:hover { background: #0b0042; }
.pb-bg-dark .pb-btn:hover, .pb-bg-purple .pb-btn:hover { background: #fff; color: #0b0042 !important; }

/* B) image + text */
.pb-image-text .row { align-items: center; }
.pb-image-text .pb-image img { width: 100%; height: auto; display: block; }
.pb-image-text.is-reverse .row { flex-direction: row-reverse; }
@media (max-width: 767px) {
  .pb-image-text .pb-image { margin-top: 25px; }
  .pb-image-text.is-reverse .pb-image { margin: 0 0 25px; }
  .pb-title { font-size: 28px; }
}

/* C) full width: quote + links */
.pb-full-width .quote { margin-bottom: 30px; }
.pb-full-width .links-row { margin-bottom: 25px; }
.pb-full-width .pb-bg-image { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .18; pointer-events: none; }
.pb-full-width .container { position: relative; }

/* E) team section */
.pb-team .pb-title { text-align: left; }

/* F) contact form section */
.pb-form .contact-form-holder { max-width: 100%; }
.pb-form .pb-form-intro { margin-bottom: 25px; }

/* Candidate profile cards on landing pages (keeps old look) */
.candidate-row { display: block; }

/* Jobs slider used in the Page Builder: only overlap the banner when it directly follows a homepage-style banner */
.pb-jobs-wrap .feature-vacancies { margin-top: 0 !important; }
.pb-jobs-wrap.after-home-banner .feature-vacancies { margin-top: -170px !important; }
@media (max-width: 1599px) { .pb-jobs-wrap.after-home-banner .feature-vacancies { margin-top: -120px !important; } }
@media (max-width: 991px) { .pb-jobs-wrap.after-home-banner .feature-vacancies { margin-top: 0 !important; } }
.pb-jobs-wrap.pb-gap-main { padding-top: 40px; padding-bottom: 20px; }
.pb-jobs-wrap.after-home-banner { padding-top: 0; }
@media (min-width: 768px) { .nbs-flexisel-container.is-static .nbs-flexisel-nav-left, .nbs-flexisel-container.is-static .nbs-flexisel-nav-right { display: none !important; } }

/* Jobs slider: hide the raw list until the slider is ready (avoids the jump on page load) */
.js-jobs-slider { visibility: hidden; max-height: 330px; overflow: hidden; }
.js-jobs-slider.nbs-flexisel-ul { visibility: visible; max-height: none; overflow: auto; }
