body {
  background-color: rgb(255, 255, 255);
  overflow-x: hidden;
}

*:focus:not(:focus-visible) {
  outline: none;
}

/* Global Link Styles From Theme Variables */
a {
  color: #0082f2;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover, a:focus {
  color: #0C63B6;
  text-decoration: underline;
}

body,
p,
span,
div {
  word-break: normal; /* 恢復預設，英文單字不會從中間斷開 */
  overflow-wrap: break-word; /* 保險機制：只有當單字長度真的超過螢幕寬度（例如長網址）時，才允許斷開 */
}

h1 strong,
h2 strong,
h3 strong,
h4 strong,
h5 strong,
h6 strong
{
  color: #0082f2;
}


h1 span strong,
h2 span strong,
h3 span strong,
h4 span strong,
h5 span strong,
h6 span strong
{
  color: #0082f2;
}


/* Sticky Header Implementation */
.ac-header-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition:
    background-color 0.3s ease,
    box-shadow 0.3s ease;
  background: transparent !important;
  margin-top: 0 !important; /* 強制歸零 */
  box-shadow: none !important;
}

.ac-header {
  background: transparent !important;
}

.ac-header__menu-wrap {
  background: none;
}

.ac-header-wrap.is-scrolled {
  background-color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

/* Ensure content doesn't jump when header becomes fixed */
/* Since it's fixed from the start, we might need padding on body or body-wrapper */
.body-wrapper {
  padding-top: 0; /* Adjust if needed based on header height */
}

/* Update mega menu top position if header height changes */
:root {
  --fiti-mega-top: 80px; /* Adjust this to match your actual header height */
}

/* 預設（電腦版）：水平排列 */
.responsive-btn-group {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
  justify-content: flex-start; /* 電腦版靠左，若要置中請改 center */
}

/* 當螢幕寬度小於 768px（手機版）時：改為垂直排列 */
@media (max-width: 768px) {
  .responsive-btn-group {
    margin: auto;
    width: 65%;
    display: flex;
    flex-direction: column;
    align-items: stretch; /* 讓內部的按鈕自動拉伸填滿外層容器 */
  }

  /* 針對手機版的按鈕統一寬度與文字置中 */
  .responsive-btn-group a {
    width: 100%;
    text-align: center;
    box-sizing: border-box; /* 確保 padding 不會撐破 100% 寬度 */
  }
}

@media (max-width: 767px) {
  .ac-header {
    padding: 10px 0;
  }
}

@media (max-width: 769px) {
  .header-dnd-area2.ac-header {
    background: none !important;
  }

  .pc-cta-title {
    display: none;
  }

  .pc-cta-des {
    display: none;
  }

  .mb-cta-title {
    display: block !important;
  }

  .mb-cta-des {
    display: block !important;
  }
}

.hs_cos_wrapper.hs_cos_wrapper_widget.hs_cos_wrapper_type_header {
  position: relative;
  z-index: 2;
}

.row-fluid-wrapper.row-depth-1.row-number-14.dnd-row {
  position: relative;
  z-index: 2;
}

.row-fluid-wrapper.row-depth-1.row-number-13.dnd-row {
  position: relative;
  z-index: 2;
}

.row-fluid-wrapper.row-depth-1.row-number-14.dnd-row {
  position: relative;
  z-index: 2;
}

.row-fluid-wrapper.row-depth-1.row-number-11.dnd-row {
  position: relative;
  z-index: 2;
}

.row-fluid-wrapper.row-depth-1.row-number-10.dnd-row {
  position: relative;
  z-index: 2;
}

@media (max-width: 991px) {
  .footer-global-background {
    display: none;
  }
  
  /* Fix footer layout squeezing between tablet size 768px and 992px */
  .ac-footer .footer__container .row-fluid {
    display: flex !important;
    flex-direction: column !important;
  }
  .ac-footer .footer__container .row-fluid > [class*="span"] {
    width: 100% !important;
    margin-left: 0 !important;
    /* margin-bottom: 48px; */
    box-sizing: border-box;
  }
  .ac-footer .footer__container .row-fluid > [class*="span"]:last-child {
    margin-bottom: 0;
  }
  
  /* Fix footer logos being too large on mobile/tablet */
  .ac-footer .ac-logo {
    display: inline-block !important; 
    vertical-align: middle;
    width: auto !important;
    margin-right: 20px !important;
    margin-bottom: 10px !important;
  }

  .ac-footer .ac-logo:last-child {
    margin-right: 0 !important;
  }

  .ac-footer .ac-logo img {
    min-width: 0 !important;
    /* width: 70%;  */
    max-width: 100% !important;
    height: auto !important;
  }
}

.body-container--homepage-one .ac-content {
  position: relative;
  z-index: 2;
}



@media (max-width: 767px) {
  /* 針對特定區域內的 br 標籤 */
  h1 br,
  .your-richtext-class br {
    display: none;
  }

  .row-depth-1.row-number-12,
  .row-depth-1.row-number-16 {
    background-image: none;
  }
}

.body-container-wrapper {
  margin-top:101px;
}

/* Override HubSpot editor's margin-top: 0 !important reset */
.hubspot-disable-focus-styles .body-container-wrapper {
  margin-top: 101px !important;
}

@media (max-width: 991px) {
  .body-container-wrapper {
    margin-top: 74px;
  }
  .hubspot-disable-focus-styles .body-container-wrapper {
    margin-top: 74px !important;
  }
}


/* 強制讓 DND Section 裡面的內容容器置中對齊 */
.dnd-section > .row-fluid-wrapper,
.dnd-section > .row-fluid {
    margin-left: auto !important;
    margin-right: auto !important;
    /* 如果你連裡面的文字/元件本身都想預設置中，可以加下面這行 */
    /* justify-content: center; */
}

form h4 {
  color:#14A4DA !important;
  font-size: 16px !important;
  font-weight: bold !important;
  display: flex;
  align-items: center;
}

form h4::after {
  background-color: #14a4da;
  content: "";
  flex: 1;
  height: 1px;
  margin-left: 20px;
}

.ac-title-content__subtitle,.ac-banner .ac-title-content__subtitle {
  font-size: 16px; !important;
  font-weight: bold; !important;
  color: #14A4DA;
}


.ac-footer form {
  margin:0 !important;
}

/* ==========================================================================
   Global Custom Multi-Select Dropdown Styles
   ========================================================================== */
.hs-fieldtype-checkbox .custom-multi-select-wrapper {
  position: relative;
  width: 100%;
}
.hs-fieldtype-checkbox .custom-multi-select-display {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 10px 36px 10px 16px;
  background: #ffffff;
  cursor: pointer;
  min-height: 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  position: relative;
  box-sizing: border-box;
}
.hs-fieldtype-checkbox .custom-multi-select-display:after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  border: solid #0082F2;
  border-width: 0 2px 2px 0;
  display: inline-block;
  padding: 4px;
  transform: translateY(-50%) rotate(45deg);
  transition: transform 0.3s ease;
}
.hs-fieldtype-checkbox .custom-multi-select-wrapper.open .custom-multi-select-display:after {
  transform: translateY(0%) rotate(-135deg);
}
.hs-fieldtype-checkbox .custom-multi-select-placeholder {
  color: #999;
  font-size: 16px;
}
.hs-fieldtype-checkbox .custom-multi-select-tag {
  background: #e6f2ff;
  color: #333;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
}
.hs-fieldtype-checkbox .custom-multi-select-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-top: 6px;
  padding: 8px 0px;
  z-index: 100;
  box-shadow: 0px 8px 24px rgba(0,0,0,0.1);
}
.hs-fieldtype-checkbox .custom-multi-select-wrapper.open .custom-multi-select-dropdown {
  display: block;
}

/* Native Checkbox List inside Dropdown */
.hs-fieldtype-checkbox .custom-multi-select-dropdown .inputs-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  max-height: 250px;
  overflow-y: auto;
}
.hs-fieldtype-checkbox .custom-multi-select-dropdown .inputs-list li {
  margin-bottom: 12px;
  clear: both;
  display: block;
}
.hs-fieldtype-checkbox .custom-multi-select-dropdown .inputs-list li:last-child {
  margin-bottom: 0;
}
.hs-fieldtype-checkbox .custom-multi-select-dropdown .hs-form-checkbox label {
  display: flex !important;
  align-items: center;
  cursor: pointer;
  font-weight: normal;
  color: #333;
  font-size: 16px;
  margin-bottom: 0;
}
.hs-fieldtype-checkbox .custom-multi-select-dropdown .hs-form-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* Custom Checkbox SVG Styles (Multi-select Only) */
.hs-fieldtype-checkbox .custom-multi-select-dropdown .hs-form-checkbox label::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  margin-right: 12px;
  background-image: url('data:image/svg+xml;utf8,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="4" y="4" width="16" height="16" rx="2" stroke="%23C8D5E2" stroke-width="2"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

.hs-fieldtype-checkbox .custom-multi-select-dropdown .hs-form-checkbox input[type="checkbox"]:checked ~ label::before,
.hs-fieldtype-checkbox .custom-multi-select-dropdown .hs-form-checkbox label:has(input:checked)::before {
  background-image: url('data:image/svg+xml;utf8,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="4" y="4" width="16" height="16" rx="2" fill="%230082F2" stroke="%230082F2" stroke-width="2"/><path d="M16.4928 9.38405L11.3288 14.6013L8.05751 11.8671" stroke="white" stroke-width="2"/></svg>') !important;
}

/* Force hide original inputs list until JS moves it */
.hs-fieldtype-checkbox:not(.transformed-multi) > .input > .inputs-list {
  display: none !important;
}

blockquote {
  background-color: #f8fbff !important;
  border: none !important;
  border-left: 2px solid #14a4da !important;
  padding: 30px 20px !important;
  border-radius: 0px;
  max-width:100%;
  margin:20px 0px 30px 0px;
    
}

blockquote::before {
  display: none;
}

/* blockquote p {
  margin-bottom: 12px !important;
}

blockquote p:last-child {
  margin-bottom: 0 !important;
}

blockquote strong, 
blockquote b {
  display: block;
  font-size: 1.1em;
  margin-bottom: 8px;
} */
.ac-button:hover {
  text-decoration: none;
}

.ac-button {
  text-decoration: none !important;
}

/* Fiti Section - Card */
.fiti-section-card.dnd-section,
.fiti-section-card {
  border-radius: 20px !important;
  box-shadow:
    0px 8px 30px 0px #072D611A,
    0px -4px 0px 0px #BBE8FF !important;
  overflow: hidden !important;
}

.dnd-section .dnd-column {
  padding: 0 !important;
}