:root {
  --cokos-navy: #073b67;
  --cokos-blue: #075fa9;
  --cokos-red: #d40b2f;
  --cokos-ink: #172534;
  --cokos-muted: #526476;
  --cokos-pale: #f4f8fb;
  --cokos-radius: 16px;
  --cokos-shadow: 0 14px 38px rgba(7, 59, 103, 0.12);
}

html { overflow-x: clip; }
body { color: var(--cokos-ink); }

#main,
.layout-wide-mode #main,
.page-template-default #main {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

#main .post-content { overflow: clip; }
.page-template-default #main .post-content > .fusion-fullwidth {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}

.page-template-100-width #main .post-content > .fusion-fullwidth {
  width: 100%;
  max-width: 100%;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

#main .fusion-fullwidth > .fusion-builder-row {
  width: min(100%, 1352px) !important;
  max-width: 1352px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-inline: auto !important;
}

.home #main .post-content > .fusion-fullwidth:first-child {
  min-height: 680px;
  display: flex;
  align-items: center;
  background-position: center center !important;
  background-size: cover !important;
}

#main img,
#main video,
#main iframe { max-width: 100%; }

#main h1,
#main h2,
#main h3,
#main h4,
#main p,
#main li,
#main .fusion-button-text {
  overflow-wrap: break-word;
  word-break: normal;
}

#main p,
#main li { line-height: 1.72; }

#main .fusion-button {
  box-sizing: border-box;
  min-height: 48px;
  max-width: 100%;
  white-space: normal;
  line-height: 1.25;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 13px 24px;
  border-radius: 999px !important;
  box-shadow: 0 8px 22px rgba(7, 59, 103, 0.14);
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

#main .fusion-button:hover,
#main .fusion-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(7, 59, 103, 0.22);
}

#main .fusion-column-wrapper {
  min-width: 0;
}

#main .fusion-accordian .panel,
#main .fusion-accordion .panel {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid rgba(7, 95, 169, .14);
  box-shadow: 0 5px 18px rgba(7, 59, 103, .06);
}

#main .fusion-accordian .panel-title a,
#main .fusion-accordion .panel-title a {
  padding: 17px 18px;
  font-weight: 700;
}

#main .fusion-gallery-image,
#main .fusion-imageframe,
#main .fusion-column-wrapper[style*="border-radius"] {
  border-radius: var(--cokos-radius);
}

@media (max-width: 1024px) {
  #main .fusion-fullwidth > .fusion-builder-row {
    width: 100%;
    padding-inline: 22px;
  }

  #main .fusion-title h1,
  #main h1 { font-size: clamp(34px, 7vw, 50px) !important; line-height: 1.08 !important; }
  #main .fusion-title h2,
  #main h2 { font-size: clamp(28px, 5.8vw, 40px) !important; line-height: 1.14 !important; }
  #main .fusion-title h3,
  #main h3 { font-size: clamp(22px, 4.8vw, 30px) !important; line-height: 1.2 !important; }
}

@media (max-width: 640px) {
  #main .fusion-fullwidth > .fusion-builder-row { padding-inline: 18px; }

  .page-template-default #main .post-content > .fusion-fullwidth {
    --awb-padding-top-small: 38px;
    --awb-padding-bottom-small: 38px;
  }

  .page-template-100-width #main .post-content > .fusion-fullwidth {
    --awb-padding-top-small: 38px;
    --awb-padding-bottom-small: 38px;
  }

  #main .fusion-layout-column {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  #main .fusion-layout-column > .fusion-column-wrapper {
    padding-left: min(var(--awb-padding-left-small, 0px), 26px) !important;
    padding-right: min(var(--awb-padding-right-small, 0px), 26px) !important;
  }

  #main .fusion-button,
  #main .fusion-button.button-large,
  #main .fusion-button.button-medium {
    width: 100%;
    margin: 0 0 12px !important;
    min-height: 52px;
    padding: 14px 18px;
  }

  #main .fusion-button + .fusion-button { margin-left: 0 !important; }

  #main .fusion-image-element,
  #main .fusion-imageframe { margin-inline: auto; }

  #main .fusion-imageframe img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  #main p,
  #main li { font-size: 17px; line-height: 1.68; }

  .home #main .fusion-builder-row-4 {
    padding-top: 34px !important;
    padding-bottom: 22px !important;
  }

  .home #main .cokos-home-hero,
  .home #main .post-content > .fusion-fullwidth:first-child {
    min-height: 0 !important;
    padding-top: 54px !important;
    padding-bottom: 48px !important;
    background-position: 62% center !important;
  }

  .home #main .cokos-home-hero::before,
  .home #main .post-content > .fusion-fullwidth:first-child::before {
    background: linear-gradient(90deg, rgba(2, 29, 53, .96), rgba(2, 29, 53, .78)) !important;
  }

  .home #main .fusion-builder-row-4 .fusion-imageframe img {
    width: min(100%, 390px);
    max-height: 390px;
    object-fit: contain;
  }

  .home #main .fusion-builder-row-12 {
    padding-top: 36px !important;
    padding-bottom: 36px !important;
  }

  .home #main .fusion-builder-row-12 .frm_forms { margin-top: 0 !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Elite visual system v2: remove duplicate media, strengthen hierarchy, and
   turn the generated authority-page template into a polished card system. */
.fusion-tb-header {
  position: relative;
  z-index: 30;
  background: #fff;
  box-shadow: 0 8px 28px rgba(2, 29, 53, .12);
}

.fusion-tb-header .fusion-menu-element-list > li > a {
  position: relative;
  font-weight: 800 !important;
  letter-spacing: .035em;
  transition: color .18s ease, transform .18s ease;
}

.fusion-tb-header .fusion-menu-element-list > li > a:hover,
.fusion-tb-header .fusion-menu-element-list > li.current-menu-item > a {
  color: var(--cokos-blue) !important;
  transform: translateY(-1px);
}

/* Avada was outputting the same featured image as an empty 565px slideshow
   above the real hero on 101 authority pages. The in-content hero remains. */
.page #main .fusion-flexslider.post-slideshow {
  display: none !important;
}

/* Remove the generator's visible internal marker without hiding legitimate
   introductory copy on older pages. */
.page #main .post-content > p:empty:first-child + .fusion-text:has(+ .fusion-fullwidth h1) {
  display: none !important;
}

.page:not(.home) #main .post-content > .fusion-fullwidth:has(h1) {
  position: relative;
  isolation: isolate;
  min-height: clamp(470px, 48vw, 610px);
  display: flex;
  align-items: center;
  background-position: center 38% !important;
  background-size: cover !important;
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.12);
}

.page:not(.home) #main .post-content > .fusion-fullwidth:has(h1)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(2,29,53,.96) 0%, rgba(2,29,53,.82) 48%, rgba(2,29,53,.22) 100%);
}

.page:not(.home) #main .post-content > .fusion-fullwidth:has(h1) > .fusion-builder-row {
  width: min(calc(100% - 48px), 1250px) !important;
}

.page:not(.home) #main .post-content > .fusion-fullwidth:has(h1) .fusion-layout-column {
  max-width: 850px;
}

.page:not(.home) #main .post-content > .fusion-fullwidth:has(h1) h1 {
  color: #fff !important;
  font-size: clamp(42px, 5vw, 64px) !important;
  line-height: 1.03 !important;
  text-wrap: balance;
  text-shadow: 0 3px 18px rgba(0,0,0,.28);
}

.page:not(.home) #main .post-content > .fusion-fullwidth:has(h1) p {
  max-width: 760px;
  color: rgba(255,255,255,.93) !important;
  font-size: clamp(17px, 1.6vw, 21px) !important;
}

/* Quick-answer band: one readable answer plus three useful scannable cards. */
.page:not(.home) #main .post-content > .fusion-fullwidth:has(h1) + .fusion-fullwidth {
  display: grid !important;
  grid-template-columns: minmax(340px, 1.15fr) minmax(0, 2fr);
  gap: 22px;
  padding-top: 52px !important;
  padding-right: max(24px, calc((100% - 1250px) / 2)) !important;
  padding-bottom: 52px !important;
  padding-left: max(24px, calc((100% - 1250px) / 2)) !important;
  background: linear-gradient(145deg, #eef5fa, #f8fbfd) !important;
  border-bottom: 1px solid rgba(7,59,103,.08);
}

.page:not(.home) #main .post-content > .fusion-fullwidth:has(h1) + .fusion-fullwidth > .fusion-builder-row {
  display: flex !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
}

.page:not(.home) #main .post-content > .fusion-fullwidth:has(h1) + .fusion-fullwidth > .fusion-builder-row:last-child {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.page:not(.home) #main .post-content > .fusion-fullwidth:has(h1) + .fusion-fullwidth > .fusion-builder-row > .fusion-layout-column {
  width: auto !important;
  margin: 0 !important;
  min-width: 0;
}

.page:not(.home) #main .post-content > .fusion-fullwidth:has(h1) + .fusion-fullwidth > .fusion-builder-row:first-child > .fusion-layout-column {
  --awb-width-large: 100% !important;
  --awb-width-medium: 100% !important;
  --awb-width-small: 100% !important;
  flex: 1 1 100% !important;
  width: 100% !important;
  max-width: 100% !important;
}

.page:not(.home) #main .post-content > .fusion-fullwidth:has(h1) + .fusion-fullwidth > .fusion-builder-row:first-child > .fusion-layout-column > .fusion-column-wrapper {
  height: 100%;
  padding: 20px 8px !important;
  background: transparent !important;
  color: var(--cokos-ink) !important;
}

.page:not(.home) #main .post-content > .fusion-fullwidth:has(h1) + .fusion-fullwidth > .fusion-builder-row:last-child > .fusion-layout-column > .fusion-column-wrapper {
  height: 100%;
  padding: 28px !important;
  border: 1px solid rgba(7,95,169,.12);
  border-radius: 16px !important;
  background: #fff;
  box-shadow: var(--cokos-shadow);
}

.page:not(.home) #main .post-content > .fusion-fullwidth:has(h1) + .fusion-fullwidth > .fusion-builder-row:last-child > .fusion-layout-column:last-child > .fusion-column-wrapper {
  background: linear-gradient(145deg, #073b67, #075fa9);
  color: #fff;
  border-color: rgba(255,255,255,.12);
}

.page:not(.home) #main .post-content > .fusion-fullwidth:has(h1) + .fusion-fullwidth h2,
.page:not(.home) #main .post-content > .fusion-fullwidth:has(h1) + .fusion-fullwidth h3 {
  text-wrap: balance;
}

/* Long authority sections should read as designed editorial cards, not a
   succession of oversized empty stripes. */
.page:not(.home) #main .post-content > .fusion-fullwidth:has(h1) + .fusion-fullwidth ~ .fusion-fullwidth:not(:has(.fusion-accordian)):not(:has(.fusion-accordion)):not(:has(.frm_forms)):not(:has(.fusion-button)) {
  padding-top: 28px !important;
  padding-bottom: 28px !important;
  background: #f4f8fb !important;
}

.page:not(.home) #main .post-content > .fusion-fullwidth:has(h1) + .fusion-fullwidth ~ .fusion-fullwidth:not(:has(.fusion-accordian)):not(:has(.fusion-accordion)):not(:has(.frm_forms)):not(:has(.fusion-button)) > .fusion-builder-row {
  width: min(calc(100% - 48px), 1160px) !important;
  max-width: 1160px !important;
  padding: clamp(28px, 4vw, 48px) !important;
  border: 1px solid rgba(7,59,103,.09);
  border-left: 5px solid var(--cokos-blue);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(7,59,103,.08);
}

.page:not(.home) #main .post-content > .fusion-fullwidth:has(h1) + .fusion-fullwidth ~ .fusion-fullwidth:nth-of-type(even):not(:has(.fusion-accordian)):not(:has(.fusion-accordion)):not(:has(.frm_forms)):not(:has(.fusion-button)) > .fusion-builder-row {
  border-left-color: var(--cokos-red);
}

.page:not(.home) #main .post-content > .fusion-fullwidth:has(h1) + .fusion-fullwidth ~ .fusion-fullwidth h2 {
  color: var(--cokos-navy) !important;
  font-size: clamp(30px, 3.4vw, 44px) !important;
  line-height: 1.1 !important;
  text-wrap: balance;
}

.page:not(.home) #main .post-content > .fusion-fullwidth:has(h1) + .fusion-fullwidth ~ .fusion-fullwidth:has(.fusion-button) h2 {
  color: #fff !important;
}

.page:not(.home) #main .post-content > br {
  display: none;
}

/* Buttons: repair dark text on red buttons while retaining deliberate white
   secondary actions. */
#main .fusion-button[style*="--button_accent_color:#073b67"] {
  color: var(--cokos-navy) !important;
  background: #fff !important;
  border: 2px solid rgba(255,255,255,.82) !important;
}

#main .fusion-button[style*="--button_accent_color:#073b67"]:hover,
#main .fusion-button[style*="--button_accent_color:#073b67"]:focus-visible {
  color: #fff !important;
  background: var(--cokos-blue) !important;
}

/* FAQ treatment. */
#main .fusion-accordian,
#main .fusion-accordion {
  max-width: 1080px;
  margin-inline: auto;
}

#main .fusion-accordian .panel,
#main .fusion-accordion .panel {
  margin-bottom: 14px;
  border: 1px solid rgba(7,59,103,.12) !important;
  border-radius: 14px !important;
  background: #fff;
  box-shadow: 0 8px 24px rgba(7,59,103,.07);
}

#main .fusion-accordian .panel-title a,
#main .fusion-accordion .panel-title a {
  padding: 19px 22px !important;
  color: var(--cokos-navy) !important;
  font-size: 17px;
}

#main .fusion-accordian .panel-title a:hover,
#main .fusion-accordion .panel-title a:hover {
  color: var(--cokos-red) !important;
  background: #f8fbfd;
}

/* Form polish. */
#main .frm_forms input[type="text"],
#main .frm_forms input[type="email"],
#main .frm_forms input[type="tel"],
#main .frm_forms input[type="number"],
#main .frm_forms select,
#main .frm_forms textarea {
  min-height: 54px;
  border: 1px solid #cbd7e2 !important;
  border-radius: 10px !important;
  background: #fff !important;
  box-shadow: 0 3px 12px rgba(7,59,103,.05) !important;
  transition: border-color .18s ease, box-shadow .18s ease;
}

#main .frm_forms textarea { min-height: 150px; }

#main .frm_forms input:focus,
#main .frm_forms select:focus,
#main .frm_forms textarea:focus {
  border-color: var(--cokos-blue) !important;
  box-shadow: 0 0 0 4px rgba(7,95,169,.12) !important;
}

#main .frm_forms .frm_button_submit {
  min-height: 52px;
  padding: 13px 28px !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: #fff !important;
  background: linear-gradient(135deg, var(--cokos-red), #b30727) !important;
  box-shadow: 0 10px 24px rgba(212,11,47,.22) !important;
}

/* Homepage repairs: animation-hidden trust cards and large empty bands. */
.home #main .fusion-animated {
  visibility: visible !important;
  animation: none !important;
}

.home #main .fusion-builder-row-5 {
  padding-top: 46px !important;
  padding-bottom: 48px !important;
  background: linear-gradient(180deg, #f7fafc 0%, #edf4f8 100%) !important;
  border-bottom: 1px solid rgba(7,59,103,.09);
}

.home #main .fusion-builder-row-5 h2,
.home #main .fusion-builder-row-5 > .fusion-builder-row > .fusion-layout-column:first-child h3 {
  color: var(--cokos-navy) !important;
}

.home #main .fusion-builder-row-5 > .fusion-builder-row > .fusion-layout-column:first-child p {
  color: var(--cokos-muted) !important;
}

.home #main .fusion-builder-row-5 .fusion-layout-column:not(:first-child) > .fusion-column-wrapper {
  height: 100%;
  padding: 26px 20px !important;
  border: 1px solid rgba(7,59,103,.11);
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 12px 30px rgba(7,59,103,.09);
}

.home #main .fusion-builder-row-5 .fusion-layout-column:not(:first-child) h3,
.home #main .fusion-builder-row-5 .fusion-layout-column:not(:first-child) p {
  color: var(--cokos-navy) !important;
}

.home #main .fusion-builder-row-5 .fusion-layout-column:not(:first-child) img {
  filter: none !important;
}

.home #main .fusion-builder-row-6 .fusion-carousel-item .fusion-image-wrapper,
.home #main .fusion-builder-row-6 .fusion-carousel-item .fusion-imageframe {
  overflow: hidden;
  border-radius: 15px !important;
  background: #dfe8ee;
  box-shadow: 0 10px 24px rgba(7,59,103,.12);
}

.home #main .fusion-builder-row-6 .fusion-carousel-item img {
  width: 100% !important;
  aspect-ratio: 3 / 2;
  object-fit: cover !important;
  object-position: center !important;
}

.home #main .fusion-builder-row-6,
.home #main .fusion-builder-row-7,
.home #main .fusion-builder-row-9 {
  padding-top: 56px !important;
  padding-bottom: 56px !important;
}

.home #main .fusion-builder-row-7 .fusion-imageframe {
  overflow: hidden;
  border-radius: 18px !important;
  box-shadow: var(--cokos-shadow);
}

.home #main .fusion-builder-row-7 .fusion-imageframe img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.home #main .fusion-builder-row-9 .review,
.home #main .fusion-builder-row-9 .fusion-testimonials .review {
  border-radius: 16px;
  box-shadow: var(--cokos-shadow);
}

.fusion-tb-footer .fusion-footer-widget-area .fusion-fullwidth {
  padding-top: 48px !important;
  padding-bottom: 44px !important;
}

@media (max-width: 1180px) {
  .page:not(.home) #main .post-content > .fusion-fullwidth:has(h1) + .fusion-fullwidth {
    grid-template-columns: 1fr;
  }

  .page:not(.home) #main .post-content > .fusion-fullwidth:has(h1) + .fusion-fullwidth > .fusion-builder-row {
    width: 100% !important;
  }

  .page:not(.home) #main .post-content > .fusion-fullwidth:has(h1) + .fusion-fullwidth > .fusion-builder-row:last-child {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .fusion-tb-header {
    box-shadow: 0 5px 20px rgba(2,29,53,.11);
  }

  .fusion-tb-footer .fusion-footer-widget-area .fusion-fullwidth {
    padding-top: 34px !important;
    padding-bottom: 32px !important;
  }

  .page:not(.home) #main .post-content > .fusion-fullwidth:has(h1) {
    min-height: 0 !important;
    padding-top: 62px !important;
    padding-bottom: 58px !important;
    background-position: 64% center !important;
  }

  .page:not(.home) #main .post-content > .fusion-fullwidth:has(h1)::after {
    background: linear-gradient(90deg, rgba(2,29,53,.97), rgba(2,29,53,.84)) !important;
  }

  .page:not(.home) #main .post-content > .fusion-fullwidth:has(h1) > .fusion-builder-row,
  .page:not(.home) #main .post-content > .fusion-fullwidth:has(h1) + .fusion-fullwidth ~ .fusion-fullwidth > .fusion-builder-row {
    width: calc(100% - 32px) !important;
  }

  .page:not(.home) #main .post-content > .fusion-fullwidth:has(h1) + .fusion-fullwidth {
    padding-right: 16px !important;
    padding-left: 16px !important;
  }

  .page:not(.home) #main .post-content > .fusion-fullwidth:has(h1) + .fusion-fullwidth > .fusion-builder-row:last-child {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .page:not(.home) #main .post-content > .fusion-fullwidth:has(h1) + .fusion-fullwidth ~ .fusion-fullwidth:not(:has(.fusion-accordian)):not(:has(.fusion-accordion)):not(:has(.frm_forms)):not(:has(.fusion-button)) {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }

  .page:not(.home) #main .post-content > .fusion-fullwidth:has(h1) + .fusion-fullwidth ~ .fusion-fullwidth:not(:has(.fusion-accordian)):not(:has(.fusion-accordion)):not(:has(.frm_forms)):not(:has(.fusion-button)) > .fusion-builder-row {
    padding: 28px 22px !important;
    border-left-width: 4px;
    border-radius: 14px;
  }

  .home #main .fusion-builder-row-5,
  .home #main .fusion-builder-row-6,
  .home #main .fusion-builder-row-7,
  .home #main .fusion-builder-row-9 {
    padding-top: 38px !important;
    padding-bottom: 38px !important;
  }

  .home #main .fusion-builder-row-5 {
    padding-top: 34px !important;
    padding-bottom: 36px !important;
  }
}

/* Keep the generated authority-page grid away from legacy and form-led pages.
 * Generated pages are uniquely preceded by the empty paragraph + marker node. */
body.page:not(.home):not(:has(#main .post-content > p:empty:first-child + .fusion-text + .fusion-fullwidth h1))
  #main .post-content > .fusion-fullwidth:has(h1) + .fusion-fullwidth {
  display: flex !important;
  grid-template-columns: none !important;
  gap: initial !important;
  align-items: initial !important;
  background: initial !important;
  border-block: initial !important;
}

body.page:not(.home):not(:has(#main .post-content > p:empty:first-child + .fusion-text + .fusion-fullwidth h1))
  #main .post-content > .fusion-fullwidth:has(h1) + .fusion-fullwidth > .fusion-builder-row,
body.page:not(.home):not(:has(#main .post-content > p:empty:first-child + .fusion-text + .fusion-fullwidth h1))
  #main .post-content > .fusion-fullwidth:has(h1) + .fusion-fullwidth > .fusion-builder-row:last-child {
  display: flex !important;
  grid-template-columns: none !important;
  width: 100% !important;
  max-width: var(--site_width, 1200px) !important;
  gap: initial !important;
}

body.page:not(.home):not(:has(#main .post-content > p:empty:first-child + .fusion-text + .fusion-fullwidth h1))
  #main .post-content > .fusion-fullwidth:has(h1) + .fusion-fullwidth > .fusion-builder-row > .fusion-layout-column,
body.page:not(.home):not(:has(#main .post-content > p:empty:first-child + .fusion-text + .fusion-fullwidth h1))
  #main .post-content > .fusion-fullwidth:has(h1) + .fusion-fullwidth > .fusion-builder-row > .fusion-layout-column > .fusion-column-wrapper {
  width: auto !important;
  min-width: 0 !important;
  background: initial !important;
  color: inherit !important;
  border: initial !important;
  border-radius: initial !important;
  box-shadow: initial !important;
  padding: initial !important;
}

body.page:not(.home):not(:has(#main .post-content > p:empty:first-child + .fusion-text + .fusion-fullwidth h1))
  #main .post-content > .fusion-fullwidth:has(h1) + .fusion-fullwidth > .fusion-builder-row > .fusion-layout-column {
  flex: 1 1 auto !important;
}
