/* Payment Connect — Southbound Collection (page-local) */

/* SC: prefer Simplified glyphs (Noto Sans TC was first in fonttype.css,
   so shared chars like 通 used Traditional 辶 shape) */
html[lang="zh-Hans"] *,
body.lang-sc * {
  font-family: 'Roboto', 'Noto Sans SC', 'Microsoft YaHei', 'PingFang SC', sans-serif;
}

/* Unify body/text greys & blacks to #333333 */
.page-integrated-investment.page-collection,
.page-integrated-investment.page-collection p,
.page-integrated-investment.page-collection .section-desc,
.page-integrated-investment.page-collection .feature-desc,
.page-integrated-investment.page-collection .feature-notes,
.page-integrated-investment.page-collection .feature-notes p,
.page-integrated-investment.page-collection .ques,
.page-integrated-investment.page-collection .answ,
.page-integrated-investment.page-collection .notice-section,
.page-integrated-investment.page-collection .notice-section h2,
.page-integrated-investment.page-collection .notice-section p {
  color: #333333;
}

footer .flink a,
footer .flink a:active,
footer .flink a:visited,
footer p,
footer .pt-4 {
  color: #333333;
}

/* Type scale (confirmed):
   section title 30 / intro 18 / feature title 23 / feature body 16 /
   notes 15 / FAQ Q 18 / FAQ A 16 / notice title 15 / notice body 15 */

/* ---- Hero: same mechanics as monthly-investment-plan ---- */
.page-integrated-investment.page-collection .page-banner {
  display: flex;
  align-items: center;
  height: 420px;
  margin: 0;
  background-image: url("../images/banner-desktop.jpeg");
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-position: center;
}

.page-integrated-investment.page-collection .page-banner .container {
  position: relative;
  width: 100%;
  max-width: none;
}

.page-integrated-investment.page-collection .page-banner .banner-content {
  position: relative;
}

.page-integrated-investment.page-collection .page-banner .banner-content .banner-subtitle {
  color: #ffffff;
  font-size: 42px; /* 32 * 1.3 */
  font-weight: 700;
  line-height: 52px;
  margin-bottom: 0;
  opacity: 1 !important;
  animation: none;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

.page-integrated-investment.page-collection .page-banner .banner-content .banner-subtitle .banner-line1,
.page-integrated-investment.page-collection .page-banner .banner-content .banner-subtitle .banner-line2 {
  display: block;
}

.page-integrated-investment.page-collection .page-banner .banner-content .banner-subtitle .banner-line1 {
  font-size: 42px; /* 32 * 1.3 */
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 8px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

.page-integrated-investment.page-collection .page-banner .banner-content .banner-subtitle .banner-line2 {
  font-size: 29px; /* 22 * 1.3 */
  font-weight: 500;
  color: #ffffff;
  line-height: 1.35;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

/* MIP mobile banner behaviour */
@media only screen and (max-width: 767px) {
  .page-integrated-investment.page-collection .page-banner {
    height: auto;
    /* mobile banner 960x564 → keep image fully in top zone (not spill under text) */
    padding-top: 58.75%;
    background-color: #fff;
    background-image: url("../images/banner-mobile.jpeg");
    background-size: 100% auto;
    background-position: center top;
    background-repeat: no-repeat;
    box-shadow: 0px 5px 5px 0px rgba(100, 100, 100, 0.1);
  }

  .page-integrated-investment.page-collection .page-banner .main-content,
  .page-integrated-investment.page-collection .page-banner .container {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .page-integrated-investment.page-collection .page-banner .banner-content {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 16px 16px 20px;
    background: #fff;
  }

  .page-integrated-investment.page-collection .page-banner .banner-content .banner-subtitle {
    font-size: 26px; /* 20 * 1.3 */
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 10px;
    color: #333333;
    text-shadow: none;
  }

  .page-integrated-investment.page-collection .page-banner .banner-content .banner-subtitle .banner-line1 {
    font-size: 26px; /* 20 * 1.3 */
    font-weight: 700;
    margin-bottom: 4px;
    color: #333333;
    text-shadow: none;
  }

  .page-integrated-investment.page-collection .page-banner .banner-content .banner-subtitle .banner-line2 {
    font-size: 20px; /* 15 * 1.3 */
    font-weight: 500;
    color: #333333;
    text-shadow: none;
  }
}

.page-integrated-investment.page-collection .section-title {
  color: #e60000;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.3;
}

.page-integrated-investment.page-collection > .page-section:nth-child(2) {
  margin-top: 0;
  padding-top: 56px;
}

.page-integrated-investment.page-collection .collection-intro {
  max-width: 900px;
  margin: 0 auto 64px;
  padding: 0 16px;
}

.page-integrated-investment.page-collection .collection-intro .section-desc {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
  color: #333333;
  margin: 0 0 16px;
  text-align: center;
}

.page-integrated-investment.page-collection .collection-intro .section-desc:last-child {
  margin-bottom: 0;
}

.page-integrated-investment.page-collection > .page-section:nth-child(2) > .main-content > .section-title:first-child {
  margin-bottom: 28px;
}

.page-integrated-investment.page-collection > .page-section:nth-child(2) .break-line {
  display: block;
  border: 0;
  height: 0;
  margin: 48px auto 56px;
  max-width: 900px;
  background: none;
}

/* ---- Features: match Figma 4-col layout ---- */
.page-integrated-investment.page-collection .reward-type-wrap.collection-reward {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 8px 4% 8px;
  margin: 12px auto 40px;
  max-width: 1100px;
}

.page-integrated-investment.page-collection .reward-type-wrap.collection-reward .reward-type {
  flex: 1 1 0;
  width: auto;
  max-width: none;
  min-width: 0;
  margin: 0;
  text-align: center;
  font-size: 14px;
  font-weight: 400;
  color: #333333;
  line-height: 1.55;
}

.page-integrated-investment.page-collection .reward-type-wrap.collection-reward .collection-feature-icon {
  display: block;
  width: 110px;
  height: 110px;
  margin: 0 auto 18px;
  object-fit: contain;
  background: transparent;
}

.page-integrated-investment.page-collection .reward-type-wrap.collection-reward .reward-type strong {
  display: block;
  color: #f15a22;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 8px;
}

/* Desktop: equal title block height so feature-desc tops align
   EN titles can wrap to 3 lines (e.g. "Simple for your Chinese Mainland...") */
@media (min-width: 992px) {
  .page-integrated-investment.page-collection .reward-type-wrap.collection-reward .reward-type strong {
    min-height: calc(1.4em * 3);
  }
}

.page-integrated-investment.page-collection .reward-type-wrap.collection-reward .reward-type .feature-desc {
  display: block;
  color: #333333;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}

.page-integrated-investment.page-collection .feature-notes {
  max-width: 900px;
  margin: 0 auto 16px;
  text-align: left;
  font-size: 15px;
  color: #333333;
  line-height: 1.55;
}

.page-integrated-investment.page-collection .feature-notes p {
  margin: 0 0 6px;
}

/* ---- FAQ + Important notice (Figma) ---- */
.page-integrated-investment.page-collection .faq-section {
  max-width: 900px;
  margin: 0 auto 0;
  text-align: left;
  padding: 0 16px;
}

.page-integrated-investment.page-collection .faq-section > .section-title {
  color: #e60000;
  font-size: 30px;
  font-weight: 500;
  text-align: center;
  margin: 0 0 36px;
}

.page-integrated-investment.page-collection .ques {
  padding: 20px 40px 20px 0;
  margin: 0;
  border-bottom: 1px solid #e0e0e0;
  position: relative;
  cursor: pointer;
  font-size: 18px;
  font-weight: 400;
  color: #333333;
  line-height: 1.5;
  text-align: left;
}

.page-integrated-investment.page-collection .ques::before,
.page-integrated-investment.page-collection .ques::after {
  position: absolute;
  right: 2px;
  top: 50%;
  width: 14px;
  height: 2px;
  content: "";
  background-color: #ff5800;
  transform: translateY(-50%);
}

.page-integrated-investment.page-collection .ques::after {
  transform: translateY(-50%) rotate(-90deg);
  transition: transform 0.25s ease;
}

.page-integrated-investment.page-collection .ques.onn::after {
  transform: translateY(-50%) rotate(0deg);
}

.page-integrated-investment.page-collection .answ {
  display: none;
  padding: 16px 20px;
  margin: 0;
  background-color: #f5f5f5;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: #333333;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

.page-integrated-investment.page-collection .notice-section {
  max-width: 900px;
  margin: 72px auto 64px;
  padding: 0 16px;
  background: transparent;
  border-left: none;
  text-align: left;
}

.page-integrated-investment.page-collection .notice-section h2 {
  font-size: 15px;
  font-weight: 700;
  color: #333333;
  margin: 0 0 14px;
  line-height: 1.4;
}

.page-integrated-investment.page-collection .notice-section p {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  color: #333333;
}

.page-integrated-investment.page-collection .notice-section p:last-child {
  margin-bottom: 0;
}

/*
 * Header HTML + CSS come from jd_mastercard (styles.css + inmo-navbar).
 * Undo jd content-only rules that would break this page layout.
 */
.page-integrated-investment.page-collection .page-banner .banner-content {
  max-width: none;
}

/* Align banner title with header logo (.nav-container max-width: 1100px) */
.site-container .page-integrated-investment.page-collection .page-banner .main-content {
  max-width: 1100px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}

.site-container .page-integrated-investment.page-collection > .page-section:not(:first-child) .main-content {
  max-width: none;
  width: 66.66666667%;
  margin-left: 16.66666667%;
  margin-right: 0;
}

@media only screen and (max-width: 1280px) {
  .site-container .page-integrated-investment.page-collection > .page-section:not(:first-child) .main-content {
    width: 90%;
    margin-left: 5%;
  }
}

@media only screen and (max-width: 767px) {
  .site-container .page-integrated-investment.page-collection > .page-section:not(:first-child) .main-content {
    width: 95%;
    margin-left: 2.5%;
  }
}

footer .flink a,
footer .flink a:active,
footer .flink a:visited {
  color: #333333;
}

@media (max-width: 991px) {
  .page-integrated-investment.page-collection .reward-type-wrap.collection-reward {
    flex-wrap: wrap;
    gap: 28px 16px;
  }

  .page-integrated-investment.page-collection .reward-type-wrap.collection-reward .reward-type {
    flex: 1 1 calc(50% - 16px);
    max-width: calc(50% - 8px);
  }

  .page-integrated-investment.page-collection .reward-type-wrap.collection-reward .collection-feature-icon {
    width: 96px;
    height: 96px;
  }

  .page-integrated-investment.page-collection .section-title,
  .page-integrated-investment.page-collection .faq-section > .section-title {
    font-size: 26px;
  }

  .page-integrated-investment.page-collection .ques {
    font-size: 16px;
  }

  .page-integrated-investment.page-collection .answ {
    font-size: 15px;
  }
}

@media (max-width: 575px) {
  .page-integrated-investment.page-collection .reward-type-wrap.collection-reward .reward-type {
    flex: 1 1 100%;
    max-width: none;
    margin: 0 0 8px;
  }

  .page-integrated-investment.page-collection .reward-type-wrap.collection-reward .reward-type strong {
    font-size: 20px;
  }

  .page-integrated-investment.page-collection .section-title,
  .page-integrated-investment.page-collection .faq-section > .section-title {
    font-size: 24px;
    margin-bottom: 24px;
  }

  .page-integrated-investment.page-collection .notice-section {
    margin-top: 40px;
  }
}

/* ============================================================
   Business inMotion #modal_dl — styles from official:
   https://www.cncbinternational.com/sme/business-inmotion/
   (inmo-style.css + custom.css + bootstrap modal)
   ============================================================ */

/* Keep header CTA white on click/focus (a:focus / visited otherwise turn dark) */
.desktop-nav a.downloadnow,
.desktop-nav a.downloadnow:link,
.desktop-nav a.downloadnow:visited,
.desktop-nav a.downloadnow:hover,
.desktop-nav a.downloadnow:focus,
.desktop-nav a.downloadnow:active {
  color: #fff !important;
}

/* inmo-style.css — .modal / #modal_dl (single overlay on .modal itself)
   z-index above .desktop-nav (999) so header doesn't sit on top of popup */
#modal_dl.modal,
#myModal.modal {
  position: fixed;
  z-index: 2000;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

#modal_dl.modal.show,
#myModal.modal.show {
  display: block;
}

/* Bootstrap also injects .modal-backdrop — hide it so overlay isn't double-dark */
body.modal-open > .modal-backdrop {
  display: none !important;
}

/* Let dialog span full modal so #modal_dl .modal-content width:60% = 60vw (as on ref) */
#modal_dl .modal-dialog,
#myModal .modal-dialog {
  width: auto !important;
  max-width: none !important;
  margin: 0 auto !important;
  padding: 0;
  position: relative;
}

/* inmo-style.css — #modal_dl .modal-content + bootstrap border-radius: 6px */
#modal_dl .modal-content {
  background-color: #fefefe;
  margin: auto;
  padding: 20px;
  border: 1px solid #888;
  width: 60% !important;
  max-width: none !important;
  border-radius: 6px;
  box-shadow: none;
  box-sizing: border-box;
  position: relative;
}

#myModal .modal-content {
  background-color: #fefefe;
  margin: auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80% !important;
  max-width: none !important;
  border-radius: 6px;
  box-shadow: none;
  box-sizing: border-box;
  position: relative;
}

/* inmo-style .close (#aaaaaa / 28px) + bootstrap hover darken */
#modal_dl .close,
#myModal .close {
  color: #aaaaaa !important;
  float: right;
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  opacity: 1 !important;
  text-shadow: none;
  background: none;
  border: 0;
  padding: 0;
  position: relative;
  z-index: 2;
  text-decoration: none;
  cursor: pointer;
}

#modal_dl .close:hover,
#modal_dl .close:focus,
#myModal .close:hover,
#myModal .close:focus {
  color: #000 !important;
  opacity: 0.5 !important;
  text-decoration: none;
  cursor: pointer;
}

/* custom.css — download row */
#modal_dl .download {
  display: flex;
  justify-content: center;
  align-items: center;
}

#modal_dl .download .qrcode {
  width: 106px;
  height: 106px;
}

#modal_dl .download img {
  padding: 2px 3px;
}

#modal_dl .appicon {
  width: 106px;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
}

#modal_dl .appicon img {
  width: 100%;
  height: auto;
}

#modal_dl .modal-content a {
  color: #D14600;
}

/* inmo-style.css — @media max-width 1024px */
@media screen and (max-width: 1024px) {
  #modal_dl .modal-content {
    width: 95% !important;
  }
}
