/* HERO SECTION */

#homepage #hero {
  background: #05102c;
  color: #fff;
  overflow: hidden;
  border-bottom: 6px solid #d1f801;
}

#homepage #hero * {
  box-sizing: border-box;
}

/* Disclaimer */
#homepage #hero .disclaimer {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.3);
  color: #fff;
}

#homepage #hero .disclaimer p {
  margin: 0;
  color: inherit;
  font-family: "Montserrat", sans-serif;
  font-size: 11px;
  font-weight: 600;
  line-height: 20px;
  text-align: center;
}

#homepage #hero .disclaimer p a {
  color: inherit;
  text-decoration: underline;
}

#homepage #hero .disclaimer .close {
  display: none;
}

/* Container */
#homepage #hero .container {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

#homepage #hero .navigation {
  position: absolute;
  top: 28px;
  left: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}

#homepage #hero .navigation a,
#homepage #hero .navigation .breadCrumbs-icon {
  color: inherit;
}

/* Call to Action */
#homepage #hero .container .call-to-action {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
}

#homepage #hero .container .call-to-action h1 {
  max-width: 592px !important;
  margin: 0;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 48px !important;
  font-weight: 900;
  line-height: 1.22 !important;
  letter-spacing: 0;
  text-align: left;
}

#homepage #hero .container .call-to-action p {
  max-width: 604px !important;
  margin: 41px 0 0;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 25px !important;
  font-weight: 500;
  line-height: 1.17;
  text-align: left !important;
}

#homepage #hero .hero-actions {
  display: flex;
  gap: 24px;
  margin-top: 67px;
}

/* Hero Image Area */
#homepage #hero .container .hero {
  position: relative;
  z-index: 1;
  display: block;
  overflow: visible;
}


#homepage #hero .container .hero::after {
  z-index: 1;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #233df2;
  opacity: 0.78;
}

#homepage #hero .container .hero .hero-image {
  position: absolute;
  z-index: 2;
  display: block;
  max-width: none;
  height: auto;
}

/* ========================= */
/* MOBILE (≤1023px) */
/* ========================= */

@media (max-width: 1023px) {
  #homepage {
    --mobile-section-gutter: 20px;
  }

  #homepage #hero {
    min-height: 620px;
  }

  #homepage #hero .disclaimer.pc {
    display: none !important;
  }

  #homepage #hero .container {
    min-height: 620px;
    padding: 12px var(--mobile-section-gutter) 0;
  }

  #homepage #hero .disclaimer.mobile {
    position: relative;
    z-index: 3;
    display: flex !important;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    padding: 6px 28px 7px 9px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.58);
  }

  #homepage #hero .disclaimer.mobile p {
    font-size: 8px;
    font-weight: 600;
    line-height: 1.2;
    text-align: left;
  }

  #homepage #hero .disclaimer.mobile p a {
    color: #05102c;
  }

  #homepage #hero .disclaimer.mobile .close {
    position: absolute;
    top: 9px;
    right: 8px;
    display: block;
    width: 9px;
    height: 9px;
    cursor: pointer;
  }

  #homepage #hero .disclaimer.mobile .close img {
    display: block;
    width: 100%;
    height: 100%;
  }

  #homepage #hero .container .call-to-action {
    align-items: center !important;
    margin-top: 97px;
    text-align: center;
  }

  #homepage #hero .container .call-to-action h1 {
    max-width: 305px !important;
    font-size: 24px !important;
    line-height: 1.07 !important;
    text-align: center;
  }

  #homepage #hero .container .call-to-action p {
    max-width: 318px !important;
    margin-top: 9px;
    font-size: 12px !important;
    font-weight: 500;
    line-height: 1.08;
    text-align: center !important;
  }

  #homepage #hero .hero-actions {
    flex-direction: column;
    gap: 10px;
    margin-top: 34px;
  }

  #homepage #hero .container .hero {
    width: min(100%, 355px);
    height: auto;
    margin: 30px auto 0;
  }

  #homepage #hero .container .hero::before {
    top: 0;
    right: 50%;
    width: 250px;
    height: 218px;
    transform: translateX(50%);
  }

  #homepage #hero .container .hero::after {
    top: -8px;
    right: 38px;
  }



  #homepage #hero .container .hero .hero-image {
    position: relative;
    bottom: -30px;
    right: -8px;
    width: 100%;
    max-width: 335px;
    margin: 0 auto;
    transform: none;
  }

}

@media (max-width: 280px) {
  #homepage {
    --mobile-section-gutter: 12px;
  }

  #homepage #hero .container {
    padding-right: var(--mobile-section-gutter);
    padding-left: var(--mobile-section-gutter);
  }

  #homepage #hero .container .call-to-action {
    margin-top: 37px;
  }

  #homepage #hero .container .call-to-action h1 {
    font-size: 25px !important;
  }

  #homepage #hero .container .call-to-action p {
    max-width: 230px !important;
    font-size: 11px !important;
  }

  #homepage #hero .container .hero {
    width: 260px;
    height: auto;
    margin-top: 30px;
  }

  #homepage #hero .container .hero::before {
    width: 213px;
    height: 190px;
  }

  #homepage #hero .container .hero::after {
    right: 30px;
  }

  #homepage #hero .container .hero .hero-image {
    max-width: 260px;
  }
}

/* ========================= */
/* DESKTOP (≥1024px) */
/* ========================= */

@media (min-width: 1024px) {
  #homepage #hero {
    min-height: 743px;
    max-height: 743px;
  }

  #homepage #hero .disclaimer.pc {
    height: 20px;
  }

  #homepage #hero .container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 452px;
    column-gap: 70px;
    min-height: 464px;
    padding: 112px 0 0;
  }

  #homepage #hero .container .call-to-action {
    grid-column: 1;
    padding-top: 50px;
  }

  #homepage #hero .container .hero {
    grid-column: 2;
    width: 452px;
    height: 310px;
    margin-top: -5px;
  }

  #homepage #hero .container .hero::before {
    top: 0;
    right: 17px;
    width: 310px;
    height: 310px;
  }

  #homepage #hero .container .hero::after {
    top: 0;
    right: 97px;
  }

  #homepage #hero .container .hero .hero-image {
    top: 0px;
    right: -30px;
    width: 388px;
  }
}

@media (min-width: 1024px) and (max-width: 1239px) {
  #homepage #hero .container {
    width: calc(100% - 80px);
    grid-template-columns: minmax(0, 1fr) 390px;
    column-gap: 36px;
  }

  #homepage #hero .container .call-to-action {
    font-size: 42px !important;
  }

  #homepage #hero .container .call-to-action h1 {
    font-size: 42px !important;
  }

  #homepage #hero .container .call-to-action p {
    font-size: 21px !important;
  }

  #homepage #hero .container .hero {
    width: 390px;
  }

  #homepage #hero .container .hero::before {
    right: 0;
  }

  #homepage #hero .container .hero .hero-image {
    right: -45px;
    width: 406px;
  }

}

/* Newsroom hero */
#homepage #deposit-hero {
  display: none !important;
}

#homepage #hero {
  min-height: 0;
  max-height: none;
  border-bottom: 0;
  background: #05102c;
}

#homepage #hero .hero-content {
  display: block;
  width: 100%;
  min-height: 0;
  padding-top: 14px;
  padding-bottom: 26px;
}

#homepage #hero .hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 30px;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
}

#homepage #hero .hero-breadcrumb a,
#homepage #hero .hero-breadcrumb span {
  color: inherit;
}

#homepage #hero .hero-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 1fr);
  align-items: center;
  gap: 24px;
}

#homepage #hero .hero-copy {
  padding: 0 0 2px;
}

#homepage #hero .hero-eyebrow {
  margin: 0 0 26px;
  color: #d1f801;
  font-family: "Montserrat", sans-serif;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}

#homepage #hero .hero-copy h1 {
  margin: 0;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(64px, 4vw, 56px) !important;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-align: left;
}

#homepage #hero .hero-description {
  max-width: 570px;
  margin: 24px 0 0;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.38;
}

#homepage #hero .hero-visual {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
}

#homepage #hero .hero-visual img {
  display: block;
  width: 100%;
  height: auto;
}

#homepage #hero .hero-trust {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
  padding-top: 19px;
  border-top: 1px solid rgba(255, 255, 255, 0.78);
}

#homepage #hero .trust-card {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 82px;
  padding: 9px 12px;
  overflow: hidden;
  border: 1.5px solid #1b39e6;
  border-radius: 10px;
  background-color: #fff;
  background-image: url("https://www.hsb.co.id/2025/homepage/assets/images/card-bg-white.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #05102c;
}

#homepage #hero .trust-icon {
  display: block;
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  margin-right: 11px;
  object-fit: contain;
}

#homepage #hero .trust-card div:last-child {
  min-width: 0;
}

#homepage #hero .trust-card strong,
#homepage #hero .trust-card span {
  display: block;
  font-family: "Montserrat", sans-serif;
}

#homepage #hero .trust-card strong {
  margin-bottom: 4px;
  color: #1b39e6;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
}

#homepage #hero .trust-card span {
  color: #05102c;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
}

@media (min-width: 1024px) and (max-width: 1239px) {
  #homepage #hero .hero-content {
    width: 100%;
  }

  #homepage #hero .hero-main {
    grid-template-columns: minmax(0, 0.95fr) minmax(400px, 1.05fr);
    gap: 32px;
  }

  #homepage #hero .hero-copy h1 {
    font-size: 43px;
  }

  #homepage #hero .hero-description {
    font-size: 17px;
  }

  #homepage #hero .trust-card {
    padding: 8px;
  }

  #homepage #hero .trust-icon {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
    margin-right: 8px;
  }

  #homepage #hero .trust-card strong {
    font-size: 12px;
  }

  #homepage #hero .trust-card span {
    font-size: 9px;
  }
}

@media (max-width: 1023px) {
  #homepage #hero {
    min-height: 0;
  }

  #homepage #hero .hero-content {
    min-height: 0;
    padding: 46px var(--mobile-section-gutter) 34px;
    overflow: hidden;
  }

  #homepage #hero .disclaimer.mobile {
    margin-bottom: 34px;
    padding: 14px 44px 14px 14px;
    border-radius: 6px;
    background: #9299aa;
  }

  #homepage #hero .disclaimer.mobile p {
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.35;
  }

  #homepage #hero .disclaimer.mobile p a {
    display: block;
    color: #05102c;
  }

  #homepage #hero .disclaimer.mobile .close {
    top: 50%;
    right: 15px;
    width: 16px;
    height: 16px;
    transform: translateY(-50%);
  }

  #homepage #hero .hero-breadcrumb {
    gap: 14px;
    margin-bottom: 34px;
    font-size: 16px;
    line-height: 1.3;
  }

  #homepage #hero .hero-main {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  #homepage #hero .hero-copy {
    width: 100%;
    text-align: center;
  }

  #homepage #hero .hero-eyebrow {
    margin-bottom: 34px;
    font-size: 22px;
  }

  #homepage #hero .hero-copy h1 {
    font-size: clamp(38px, 9vw, 52px) !important;
    line-height: 1.06;
    text-align: center;
  }

  #homepage #hero .hero-description {
    max-width: 560px;
    margin: 26px auto 0;
    font-size: 20px;
    line-height: 1.4;
    text-align: center;
  }

  #homepage #hero .hero-visual {
    width: 100%;
    max-width: 620px;
    aspect-ratio: 1.275 / 1;
    margin: 116px auto 0;
    overflow: hidden;
  }

  #homepage #hero .hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  #homepage #hero .hero-trust {
    display: flex;
    gap: 14px;
    margin: 36px calc(var(--mobile-section-gutter) * -1) 0;
    padding: 32px calc(var(--mobile-section-gutter) + 24px) 2px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: calc(var(--mobile-section-gutter) + 4px);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  #homepage #hero .hero-trust::-webkit-scrollbar {
    display: none;
  }

  #homepage #hero .trust-card {
    flex: 0 0 min(82vw, 410px);
    min-height: 142px;
    padding: 16px 20px;
    border-radius: 16px;
    scroll-snap-align: start;
  }

  #homepage #hero .trust-icon {
    flex-basis: 104px;
    width: 104px;
    height: 104px;
    margin-right: 16px;
  }

  #homepage #hero .trust-card strong {
    font-size: 21px;
    white-space: normal;
  }

  #homepage #hero .trust-card span {
    font-size: 17px;
    line-height: 1.4;
  }
}

@media (max-width: 560px) {
  #homepage #hero .hero-content {
    padding-top: 28px;
  }

  #homepage #hero .disclaimer.mobile p {
    font-size: 12px;
  }

  #homepage #hero .hero-breadcrumb {
    font-size: 14px;
  }

  #homepage #hero .hero-eyebrow {
    font-size: 18px;
  }

  #homepage #hero .hero-description {
    font-size: 16px;
  }

  #homepage #hero .hero-visual {
    margin-top: 82px;
  }

  #homepage #hero .trust-card {
    min-height: 112px;
    padding: 12px;
  }

  #homepage #hero .trust-icon {
    flex-basis: 78px;
    width: 78px;
    height: 78px;
    margin-right: 12px;
  }

  #homepage #hero .trust-card strong {
    font-size: 16px;
  }

  #homepage #hero .trust-card span {
    font-size: 13px;
  }
}
