/* Final responsive layer - loaded after page styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  max-width: 100%;
  /* overflow-x intentionally left off body — breaks the sticky header.
     html above already clips horizontal overflow. */
}

img,
svg,
video,
iframe {
  max-width: 100%;
}

input,
select,
textarea,
button {
  max-width: 100%;
}

main,
section,
article,
div {
  min-width: 0;
}

/* Bootstrap container is the only content container; keep mobile gutters. */
@media (max-width:767.98px) {
  .container {
    width: 100%;
  }

  body section {
    width: 100%;
  }

  /* All content grids collapse cleanly on phones. */
  body [class*="xt-g-"][style*="display: grid"],
  body [class*="xt-g-"][style*="display:grid"] {
    grid-template-columns: 1fr !important;
  }

  /* blanket min-width:0 / flex-wrap rules removed - see mobile-fix.css */

  /* Known split/grid layouts used across the site. */
  body .xt-g-9223e8eb,
  body .xt-g-20d20849,
  body .xt-g-72ea99d4,
  body .xt-g-e3654515 {
    grid-template-columns: 1fr !important;
  }

  body .xt-g-46e4e402,
  body .xt-g-6640f0a7,
  body .xt-g-1c8a99c5,
  body .xt-g-98130e47,
  body .xt-g-bde208cd,
  body .xt-g-08fb8977,
  body .xt-g-ede3e604 {
    grid-template-columns: 1fr !important;
  }

  /* Horizontal card rows become vertical card stacks. */
  body .xt-g-bc5b1373,
  body .xt-g-30175710,
  body .xt-g-a94f4657,
  body .xt-g-508880d9,
  body .xt-g-5c16797a,
  body .xt-g-7cc30f0c,
  body .xt-g-0ca946a1,
  body .xt-g-cf949c15 {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  body .xt-g-aa2227ea {
    width: 100%;
    height: auto;
    flex: 0 0 auto;
  }

  body .xt-g-80cf0ee6 {
    width: 100%;
    min-width: 0;
    border-left: 0;
    border-top: 5px solid #C01010;
  }

  /* Buttons/actions never force a horizontal overflow. */
  body .xt-g-0a8321c2,
  body .xt-g-c2de98d8 {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  body .xt-g-0a8321c2>a,
  body .xt-g-c2de98d8>a,
  body .xt-g-cf949c15>a {
    width: 100%;
    max-width: 100%;
    text-align: center;
    white-space: normal;
  }

  /* Long FAQ titles and card content can wrap. */
  body [class*="xt-g-"] a,
  body [class*="xt-g-"] p,
  body [class*="xt-g-"] h1,
  body [class*="xt-g-"] h2,
  body [class*="xt-g-"] h3,
  body [class*="xt-g-"] h4,
  body [class*="xt-g-"] summary {
    overflow-wrap: anywhere;
  }

  /* Footer - one clean column on phones, no clipped links. */
  .site-footer-wrap footer {
    width: 100%;
  }

  .site-footer-wrap .xt-h-a371eed5,
  .site-footer-wrap .xt-h-18bf4630 {
    grid-template-columns: 1fr !important;
    display: grid !important;
    gap: 28px;
  }

  .site-footer-wrap .xt-h-2f0696fd {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-footer-wrap .xt-h-1b6446e6 {
    font-size: 42px;
    max-width: calc(100% - 32px);
    overflow: hidden;
  }

  .site-footer-wrap .xt-h-b4d551d4,
  .site-footer-wrap .xt-h-06ad908e {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer-wrap .xt-h-c4012504 {
    min-width: 0;
  }

  .site-footer-wrap .xt-h-b12109ed,
  .site-footer-wrap .xt-h-562a949a {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

@media (min-width:768px) and (max-width:991.98px) {

  body .xt-g-9223e8eb,
  body .xt-g-72ea99d4,
  body .xt-g-e3654515 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body .xt-g-46e4e402,
  body .xt-g-98130e47,
  body .xt-g-bde208cd,
  body .xt-g-08fb8977,
  body .xt-g-ede3e604 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .site-footer-wrap .xt-h-a371eed5 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .site-footer-wrap .xt-h-18bf4630 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

/* Footer social/contact rows always wrap rather than overflow. */
.xt-h-60ca6dc0,
.xt-h-401bf128,
.xt-h-543dd183,
.xt-h-548d0458 {
  flex-wrap: wrap;
  min-width: 0;
}

/* Prevent fixed minimums inside responsive content from creating horizontal scroll. */
@media (max-width:991.98px) {

  body [class*="xt-g-"][style*="min-width"],
  body [class*="xt-g-"] {
    max-width: 100%;
  }
}

/* ===== Mobile footer: single-column layout ===== */
@media (max-width: 767.98px) {

  .site-footer-wrap footer .xt-h-a371eed5,
  .site-footer-wrap footer .xt-h-18bf4630 {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    gap: 26px !important;
  }

  .site-footer-wrap footer .xt-h-a371eed5>div,
  .site-footer-wrap footer .xt-h-18bf4630>div {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  .site-footer-wrap footer .xt-h-c4012504,
  .site-footer-wrap footer .xt-h-ceb5efbe {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .site-footer-wrap footer .xt-h-60ca6dc0,
  .site-footer-wrap footer .xt-h-401bf128 {
    width: 100% !important;
  }

  .site-footer-wrap footer .xt-h-b4d551d4,
  .site-footer-wrap footer .xt-h-06ad908e {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    width: 100% !important;
  }
}


/* ===== Shared desktop header layout: logo | centered menu | actions ===== */
@media (min-width:1151px) {

  .site-header-wrap>header.xt-h-e0cf04be,
  .site-header-wrap>header.xt-h-9f77e3e4 {
    display: grid !important;
    grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
    align-items: center;
    column-gap: 32px;
    width: 100%;
  }

  .site-header-wrap>header.xt-h-e0cf04be>.xt-h-5cd105e1,
  .site-header-wrap>header.xt-h-9f77e3e4>.xt-h-5cd105e1 {
    grid-column: 1;
    justify-self: start;
    margin: 0;
  }

  .site-header-wrap>header.xt-h-e0cf04be>.xt-nav-links,
  .site-header-wrap>header.xt-h-9f77e3e4>.xt-nav-links {
    grid-column: 2;
    justify-self: center;
    margin: 0;
  }

  .site-header-wrap>header.xt-h-e0cf04be>.xt-h-543dd183,
  .site-header-wrap>header.xt-h-9f77e3e4>.xt-h-543dd183 {
    grid-column: 3;
    justify-self: end;
    margin: 0;
  }
}

/* =========================================================
   FINAL HEADER REFERENCE LAYOUT
   Desktop: logo | centered navigation | sign-in/get-quote
   ========================================================= */
@media (min-width: 1151px) {
  .site-header-wrap {
    max-width: none !important;
    padding-left: 38px !important;
    padding-right: 38px !important;
  }

  .site-header-wrap>header.xt-h-9f77e3e4,
  .site-header-wrap>header.xt-h-e0cf04be {
    display: grid !important;
    grid-template-columns: 180px minmax(0, 1fr) 210px !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 95px !important;
    padding: 0 !important;
    gap: 0 !important;
  }

  .site-header-wrap>header.xt-h-9f77e3e4>.xt-h-5cd105e1,
  .site-header-wrap>header.xt-h-e0cf04be>.xt-h-5cd105e1 {
    grid-column: 1 !important;
    justify-self: start !important;
    margin: 0 !important;
  }



  .site-header-wrap>header.xt-h-9f77e3e4>.xt-nav-links,
  .site-header-wrap>header.xt-h-e0cf04be>.xt-nav-links {
    grid-column: 2 !important;
    justify-self: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 20px !important;
    margin: 0 !important;
    width: max-content !important;
    max-width: 100% !important;
    flex: none !important;
    font-size: 15px !important;
    font-weight: 600 !important;
  }

  .site-header-wrap>header.xt-h-9f77e3e4>.xt-h-543dd183 {
    grid-column: 3 !important;
    justify-self: end !important;
    display: flex !important;
    align-items: center !important;
    gap: 18px !important;
    margin: 0 !important;
  }

  .site-header-wrap>header.xt-h-9f77e3e4 .xt-h-30962a3b {
    font-size: 16px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
  }

  .site-header-wrap>header.xt-h-9f77e3e4 .xt-h-a8e2df9c {
    min-width: 156px !important;
    height: 58px !important;
    padding: 0 24px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
  }

  .site-header-wrap>header.xt-h-e0cf04be>.xt-h-543dd183 {
    grid-column: 3 !important;
    justify-self: end !important;
    margin: 0 !important;
  }
}

/* Singapore topbar from the supplied reference */
.xt-g-67e6dda6 {
  background: #001442 !important;
  border-bottom: 3px solid #c01010 !important;
}

.xt-g-ced947e3 {
  max-width: none !important;
  min-height: 51px !important;
  padding: 0 38px !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
}

.xt-g-83c6706e {
  font-size: 16px !important;
  color: #fff !important;
}

.xt-g-34c9aa49 {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  font-size: 16px !important;
  color: #fff !important;
}

.xt-g-topbar-separator {
  width: 1px !important;
  height: 20px !important;
  background: rgba(255, 255, 255, .42) !important;
  display: block !important;
}

.xt-g-country summary {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  color: #fff !important;
  cursor: pointer !important;
  list-style: none !important;
}

.xt-g-country summary::-webkit-details-marker {
  display: none !important;
}

.xt-sg-flag {
  font-size: 24px !important;
  line-height: 1 !important;
}

.xt-g-country-arrow {
  font-size: 12px !important;
}

.xt-g-country-menu {
  position: absolute !important;
  right: 0 !important;
  top: 28px !important;
  z-index: 100 !important;
  min-width: 160px !important;
  background: #fff !important;
  color: #262b35 !important;
  border: 1px solid #c9d9f4 !important;
  padding: 8px !important;
  box-shadow: 0 12px 30px -10px rgba(20, 33, 61, .25) !important;
}

.xt-g-country-menu a,
.xt-g-country-menu div {
  display: block !important;
  padding: 8px 10px !important;
  color: #262b35 !important;
}

/* =========================================================
   HEADER RESPONSIVE FINAL CHECK
   1150px and below: logo + Menu + CTA
   767px and below: compact logo + Menu + Get Quote
   480px and below: safe single-row header, no horizontal scroll
   ========================================================= */
@media (max-width:1150px) {

  html {
    overflow-x: hidden !important;
  }

  /* overflow-x intentionally NOT forced on body here — !important on body
     broke position:sticky for the header on mobile. html above already
     clips horizontal overflow at this breakpoint. */

  .site-header-wrap {
    width: 100% !important;
    max-width: none !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .site-header-wrap>header.xt-h-9f77e3e4,
  .site-header-wrap>header.xt-h-e0cf04be {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 76px !important;
    padding: 14px 0 !important;
    gap: 14px !important;
    flex-wrap: nowrap !important;
  }

  .site-header-wrap>header.xt-h-9f77e3e4>.xt-h-5cd105e1,
  .site-header-wrap>header.xt-h-e0cf04be>.xt-h-5cd105e1 {
    flex: 0 1 auto !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  .site-header-wrap>header.xt-h-9f77e3e4>.xt-h-5cd105e1 img,
  .site-header-wrap>header.xt-h-e0cf04be>.xt-h-5cd105e1 img {
    width: auto !important;
    height: 42px !important;
    max-width: 185px !important;
    display: block !important;
  }

  .site-header-wrap .xt-nav-links {
    display: none !important;
  }

  .site-header-wrap .xt-burger {
    display: block !important;
    position: static !important;
    flex: 0 0 auto !important;
    margin-left: auto !important;
  }

  /* Sign In + Get Quote now live inside the hamburger panel on mobile/tab
     (see .xt-mobile-quote-btn), so the standalone pair next to the burger
     is hidden entirely to avoid duplicating the CTA. */
  .site-header-wrap .xt-h-543dd183,
  .site-header-wrap .xt-h-548d0458 {
    display: none !important;
  }

  .site-header-wrap .xt-mobile-quote-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 44px !important;
    padding: 10px 16px !important;
    font-size: 14px !important;
    text-align: center !important;
  }
}

@media (max-width:767px) {
  .site-header-wrap {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .site-header-wrap>header.xt-h-9f77e3e4,
  .site-header-wrap>header.xt-h-e0cf04be {
    min-height: 68px !important;
    padding: 11px 0 !important;
    gap: 9px !important;
  }

  .site-header-wrap>header.xt-h-9f77e3e4>.xt-h-5cd105e1 img,
  .site-header-wrap>header.xt-h-e0cf04be>.xt-h-5cd105e1 img {
    height: 36px !important;
    max-width: 158px !important;
  }

  .site-header-wrap .xt-burger>summary {
    min-height: 40px !important;
    padding: 8px 10px !important;
  }

  .site-header-wrap .xt-mobile-quote-btn {
    min-height: 40px !important;
    padding: 9px 12px !important;
    font-size: 13px !important;
  }

  .xt-g-ced947e3 {
    min-height: 44px !important;
    padding: 7px 16px !important;
  }

  .xt-g-83c6706e {
    font-size: 13px !important;
  }

  .xt-topbar-links {
    display: none !important;
  }
}

@media (max-width:480px) {

  .site-header-wrap>header.xt-h-9f77e3e4,
  .site-header-wrap>header.xt-h-e0cf04be {
    gap: 7px !important;
  }

  .site-header-wrap>header.xt-h-9f77e3e4>.xt-h-5cd105e1 img,
  .site-header-wrap>header.xt-h-e0cf04be>.xt-h-5cd105e1 img {
    height: 32px !important;
    max-width: 140px !important;
  }

  .site-header-wrap .xt-burger>summary {
    padding: 7px 8px !important;
    font-size: 13px !important;
  }

  .site-header-wrap .xt-mobile-quote-btn {
    padding: 8px 10px !important;
    font-size: 12px !important;
  }

  .xt-menu-label {
    display: none !important;
  }

  .xt-g-83c6706e {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
}

/* FINAL: red-background buttons keep white text on hover */
.xt-h-1dce37bf:hover,
.xt-h-1dce37bf:focus,
.xt-h-1dce37bf:focus-visible,
.xt-h-1dce37bf:active {
  color: #fff !important;
}

.xt-h-78b9bcd0:hover,
.xt-h-78b9bcd0:focus,
.xt-h-78b9bcd0:focus-visible,
.xt-h-78b9bcd0:active {
  color: #fff !important;
}

.xt-h-a8e2df9c:hover,
.xt-h-a8e2df9c:focus,
.xt-h-a8e2df9c:focus-visible,
.xt-h-a8e2df9c:active {
  color: #fff !important;
}




@media (min-width: 992px) and (max-width: 1199px) {
      .site-header-wrap>header.xt-h-9f77e3e4>.xt-nav-links,
  .site-header-wrap>header.xt-h-e0cf04be>.xt-nav-links {
    gap: 18px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
  }
}