:root {
  --acc-oa: #2791e0c7;
  --acc-sa: #ef717de0;
  --acc-ra: #8c59d5b3;
  --acc-ma: #33b069cc;
  --cpf-active: #ffb500;
  --cpf-light: #ffd77d;
  --pink: #ecb2ba;
  --pink-dark: #c6939a;
  --tape-gray: #dbd8be;
  --tape-edge-gray: #b7b49d;
  --transparent: rgba(255, 255, 255, 0);
}
html {
  scroll-behavior: smooth;
}
body {
  background-image: url(../img/paper-texture.webp);
  background-size: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  width: 100%;
}
.cpf-video-covers a {
  color: var(--theme-ui-colors-black);
}

.cpf-video-covers a:hover {
  color: var(--cpf-active);
}
.view-desktop {
  display: block;
}
.view-mobile {
  display: none;
}
.navbar {
  position: relative;
  display: flex;
}
.cpf-language-toggle {
  background-color: #000;
  width: fit-content;
  margin: auto;
  border-radius: 25px;
  padding: 0.5em;
  font-size: 0.9rem;
  position: absolute;
  right: 5.4em;
  top: 0.5em;
  z-index: 10000000000;
}

.cpf-toggle-text {
  color: #fff;
  font-weight: bold;
  padding: 0.5em;
  text-decoration: none;
}
.cpf-toggle-text:hover {
  background-color: #fff;
  color: #000;
  padding: 0.3em 0.5em;
  border-radius: 25px;
}
body.zh .cpf-language-toggle:hover .cpf-ch.active {
  background-color: #000;
  color: #fff;
}
body.en .cpf-language-toggle:hover .cpf-en.active {
  background-color: #000;
  color: #fff;
}
.cpf-toggle-text.active {
  background-color: #fff;
  color: #000;
  padding: 0.3em 0.5em;
  border-radius: 25px;
  pointer-events: none;
  cursor: default;
}
@font-face {
  font-family: "Font Awesome 5 Free";
  src: url("../webfonts/fa-solid-900.woff2") format("woff2"),
    url("../webfonts/fa-solid-900.woff") format("woff");
  font-weight: 900;
  font-style: normal;
}
.toggle-btn {
  display: none;
}
.row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.container-fluid {
  width: 100%;
  padding-right: 0px;
  padding-left: 0px;
}
.acc {
  color: #fff !important;
  padding: 4px 6px;
  border-radius: 5px;
  margin: 0.2em;
}
.oa {
  background-color: var(--acc-oa);
}
.sa {
  background-color: var(--acc-sa);
}
.ra {
  background-color: var(--acc-ra);
}
.ma {
  background-color: var(--acc-ma);
}
/* paper */

.pink {
  --paper-color: var(--pink);
  --paper-dark: var(--pink-dark);
  --shadow-size: 1px;
  --transparent: rgba(236, 178, 186, 0);
}
.blue {
  --paper-color: #f9edd5;
  --paper-dark: #eae9c2;
  --shadow-size: 3px;
  --transparent: rgba(213, 224, 249, 0);
}
.paper {
  padding: 2em;
  position: relative;
  background: linear-gradient(
      to bottom right,
      #eae2c20f,
      20%,
      var(--transparent)
    ),
    #fff9edba;
  min-width: 250px;
  min-height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-size) var(--shadow-size) 2px var(--paper-dark);
  margin: auto;
}
.tape-section {
  position: absolute;
  width: 100%;
}
.top-tape {
  position: absolute;
  height: 4vmin;
  top: -5px;
  width: 110%;
  background-color: var(--tape-gray);
  border-right: 1px dotted var(--tape-edge-gray);
  border-left: 1px dotted var(--tape-edge-gray);
  opacity: 0.5;
}
.tape-section:first-of-type {
  top: 0;
}
.tape-section:last-of-type {
  bottom: 0;
}
.tape-section::before,
.tape-section::after {
  content: "";
  width: 10vmin;
  height: 4vmin;
  position: absolute;
  background-color: var(--tape-gray);
  opacity: 0.5;
  border-right: 1px dotted var(--tape-edge-gray);
  border-left: 1px dotted var(--tape-edge-gray);
}

.tape-section:last-of-type::after {
  transform: rotate(-45deg);
  right: -4vmin;
  top: -3vmin;
}
.tape-section:first-of-type::before {
  transform: rotate(-45deg);
  left: -4vmin;
}

.tape-section:first-of-type::after {
  transform: rotate(45deg);
  right: -4vmin;
  top: 0;
}

.tape-section:last-of-type::before {
  transform: rotate(45deg);
  left: -4vmin;
  bottom: 0;
}
/* nav */
.sticky-nav {
  position: sticky;
  top: 0;
  background-color: #ffffff;
  border: 1px solid #ffd77d;
  z-index: 10000000;
  padding: 0;
  margin: 0;
}
.nav-links {
  display: flex;
  padding: 0;
  margin: 0;
  text-align: center;
  width: 100%;
}
.nav-btn {
  display: block;
  flex-grow: 1;
}
.nav-btn div {
  transition: width 0.5s ease-in-out;
}
.nav-links a {
  text-decoration: none;
  display: block;
  color: #222;
  font-size: 16px;
  position: relative;
  transition: background-color 0.2s ease-out font-size 0.2s ease-out;
}
.nav-links a span {
  position: relative;
  z-index: 10;
}
.nav-links a div {
  background: #ffb500;
  position: absolute;
  height: 100%;
  top: 0;
  left: 0;
  max-width: 100%;
  transition: all 60ms ease-out 0s;
  display: none;
}
.nav-links a.active {
  color: var(--theme-ui-colors-error);
  font-size: 1rem;
  font-weight: 900;
}

.nav-links a:hover {
  color: #fff !important;
  background-color: #e90044;
}
/* Display progress bar when the section is in the viewport */
.nav-links a.active div {
  display: block;
}
.interview-video {
  border-bottom: none !important;
}
.divider {
  height: 70%;
  width: 1px;
  background: #ffd77d;
  margin: auto;
}

.divider:last-of-type {
  display: none;
}

h1 {
  font-weight: 900;
}
#landing {
  height: auto;
  overflow: hidden;
  position: relative;
}
.landing-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-image: url(../img/landing.png);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  z-index: -1;
}
.headline {
  z-index: 1;
  position: relative;
  height: 100vh;
}
.intro {
  display: flex;
  flex-direction: row;
  padding: 3em;
  margin: 3em;
  width: 100%;
}
.cpf-qns-desktop {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #ffb50030;
  padding: 2em;
  border-radius: 10px;
  width: 50%;
  gap: 3em;
}
.cpf-qns-mobile {
  display: none;
  justify-content: center;
  align-items: center;
  background-color: #ffb50030;
  padding: 2em;
  border-radius: 10px;
  width: 50%;
  gap: 3em;
}
.cpf-qna-desktop {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 1em;
  width: 60%;
}
.cpf-qna-mobile {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 1em;
}
.qns-btn {
  padding: 1em;
  background-color: #ffb500;
  border-radius: 0.5em;
  color: var(--theme-ui-colors-black);
  width: 100%;
}
.qns-btn:hover {
  background-color: #fff;
  border: 1px solid #ffb500;
  color: var(--theme-ui-colors-black);
}
.intro-text {
  background-color: #ffffff81;
  padding: 2em;
  border-radius: 10px;
  text-align: center;
  font-size: 1.2rem;
  width: 40%;
  align-content: center;
}
.headline-img {
  width: 90%;
  margin: auto;
}
.timeline {
  top: 0;
}
.contribution-rate-sec,
.cpf-savings-sec,
.interest-rate-sec,
.qna-sec {
  margin-top: 3em;
}
.en-name {
  font-size: 0.9rem;
  color: #888;
  font-weight: 600;
}
.sidenotes {
  font-size: 0.8rem;
  color: #333;
  margin: 1em auto;
}
.data-scroll-img {
  width: 100%;
}
/* Timeline container setup */
.timeline-container {
  position: relative;
  width: 100%;
}
.swiper-container {
  max-width: 100%;
  overflow: hidden;
  margin: 0 auto;
  height: auto;
}
/* Style for each slide */
.timeline-slide {
  padding: 0 20px;
}

/* Content setup inside the slide */
.timeline-content {
  width: 100%;
}

/* Image container styling */
.timeline-image-container {
  width: 100%;
  height: auto;
}

.timeline-image-container img {
  width: 100%;
  margin: 0 1em;
  height: auto;
  border-bottom: 2px solid var(--cpf-active);
  object-fit: cover;
}
.timeline-text-container {
  padding: 20px;
  text-align: center;
  padding: 3em 5em 3em 3em;
}
.timeline-text-container p {
  text-align: left;
}
.timeline-text-container h2 {
  font-size: 24px;
  font-weight: bold;
  padding-bottom: 0.5em;
  border-bottom: 1px solid var(--cpf-active);
}
.timeline-text-container h4 {
  font-weight: 900;
  font-size: 0.9rem;
  font-family: roboto;
}

.timeline-text-container p {
  font-size: 16px;
  color: #000;
  margin: 0 0 1em 0;
}
/* Pagination container positioning */
.timeline-pagination {
  position: relative;
  bottom: 0 !important;
  width: 100%;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Style for individual pagination bullets */
.swiper-pagination-bullet {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0 10px;
  background-color: transparent;
  cursor: pointer;
  width: 12px;
  height: 100px;
  opacity: 0;
  transition: all 0.3s ease;
}

/* Active pagination dot (bigger) */
.swiper-pagination-bullet.active {
  width: 80px;
  height: 60px;
  line-height: 1.2;
  opacity: 1;
  background-color: transparent;
}

/* Inactive pagination dot (smaller and greyed out) */
.swiper-pagination-bullet.inactive {
  width: 12px;
  height: 50px;
  opacity: 0.4;
}

/* Dot styling */
.swiper-pagination-bullet .dot {
  width: 10px;
  height: 10px;
  background-color: var(--theme-ui-colors-main); /* Dot color */
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Year styling */
.swiper-pagination-bullet .year {
  font-size: 18px;
  font-family: roboto;
  font-weight: bold;
  color: #000;
  margin-top: 5px;
  display: none;
  text-align: center;
  white-space: nowrap;
}

/* Note styling */
.swiper-pagination-bullet .note {
  font-size: 10px;
  color: #000;
  margin-top: 5px; /* Space between dot and note */
  display: none;
  text-align: center;
}
.swiper-button-prev,
.swiper-button-next {
  background-color: var(--cpf-light);
  padding: 35px;
  border-radius: 100%;
  opacity: 0.5;
  background-position: center;
  background-size: 40%;
  background-repeat: no-repeat;
}
.swiper-button-next:hover,
.swiper-button-prev:hover {
  opacity: 1;
  animation: shake 2s;
}
.swiper-button-next:active,
.swiper-button-prev:active {
  opacity: 1;
  background-color: var(--theme-ui-colors-main);
}
.swiper-button-next {
  background-image: url(../img/arrow-right.svg) !important;
}
.swiper-button-prev {
  background-image: url(../img/arrow-left.svg) !important;
}
.scroll-img {
  width: 100%;
}
.swiper-button-next:after,
.swiper-button-prev:after {
  display: none;
}

/* card swiper */
.cpf-accounts-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}
.mobile-cards {
  display: flex;
  overflow-x: auto;
  white-space: nowrap;
  padding: 10px;
  scroll-behavior: smooth;
}

.mobile-cards::-webkit-scrollbar {
  display: none;
}

.mobile-cards::-webkit-scrollbar-thumb {
  display: none;
}
.mobile-card {
  display: inline-grid;
  margin: 0 10px;
  width: 70%;
  max-width: 350px;
  text-align: center;
  border-radius: 10px;
  flex-shrink: 0;
}
.indicator {
  margin: 1em 0 0 0;
  font-size: 0.8rem;
  margin: auto;
  border-radius: 5px;
  animation: moveLeftRight 2s infinite;
  cursor: pointer;
}
.indicator-img {
  width: 35px;
  cursor: pointer;
}
@keyframes moveLeftRight {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-20px);
  }
  100% {
    transform: translateX(0);
  }
}
.card-swiper {
  width: 400px;
  height: 520px;
}
.card-swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  font-size: 22px;
  font-weight: bold;
}
.card-swiper-slide:nth-child(1n) {
  background-color: transparent;
}

.card-swiper-slide:nth-child(2n) {
  background-color: transparent;
}

.card-swiper-slide:nth-child(3n) {
  background-color: transparent;
}

.card-swiper-slide:nth-child(4n) {
  background-color: transparent;
}
.swiper-3d .swiper-slide-shadow {
  background: rgba(0, 0, 0, 0);
}

@keyframes shake {
  0% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(15px);
  }
  50% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(15px);
  }
  100% {
    transform: translateX(0);
  }
}
.target {
  border: 1px solid #999;
  padding: 1em 0 0 0;
  line-height: 1.3;
}
.target b {
  font-size: 1.1rem;
}
/* chart */
.input {
  width: 10px;
  height: 10px;
  background-color: #ffb400;
  position: relative;
  border-radius: 50%;
}
.input:hover {
  cursor: pointer;
}
.input::before,
.input::after {
  content: "";
  display: block;
  position: absolute;
  z-index: -1;
  top: 50%;
  transform: translateY(-50%);
  background-color: #ffb400;
  width: 4vw;
  height: 3px;
  max-width: 50px;
}
.input-final::before,
.input-final::after {
  display: none;
}
.input::after {
  right: calc(-4vw + 12.5px);
}
.input.active {
  background-color: #e90044;
}
.input.active::before {
  background-color: #ffd67d;
}
.input.active::after {
  background-color: #ffd67d;
}
.input.active span {
  font-weight: 700;
}
.input.active span::before {
  font-weight: 700;
}
.input.active span::after {
  font-size: 15px;
}
.input.active ~ .input,
.input.active ~ .input::before,
.input.active ~ .input::after {
  background-color: #ffd77d;
}
.input span {
  width: 1px;
  height: 1px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  visibility: hidden;
}
.input span::before,
.input span::after {
  visibility: visible;
  position: absolute;
  left: 50%;
}
.input span::after {
  content: attr(data-year);
  top: 25px;
  transform: translateX(-50%);
  font-size: 14px;
}
.input span::before {
  content: attr(data-info);
  top: -50px;
  width: 70px;
  line-height: 1.2;
  transform: translateX(-50%);
  font-size: 12px;
}
.description-flex-container div {
  display: none;
}
.description-flex-container div.active {
  display: block;
}
.description-flex-container.active {
  cursor: grabbing;
}
.cpf-header h1 {
  font-weight: 900;
  margin: 1em 0;
}
.cpf-subheader {
  font-size: 1.5rem;
  margin: 0.5em 0;
}
.chart-wrap {
  transform: translateX(30%);
  font-family: roboto;
  width: 60%;
}
.chart-sec {
  background-color: #ffffffc7;
  border: 1px solid var(--theme-ui-colors-focus);
  padding: 2em;
  margin: 1em auto;
  border-radius: 10px;
}
.chart-row {
  display: block;
}
.chart-container {
  height: 150px;
  margin: auto;
}
.burning-question {
  background-image: url("../img/question-mark.webp");
  background-repeat: repeat;
  background-size: 50px 50px;
}
.transcript {
  padding: 20px;
}
.big-question-mark {
  background-color: #ffc107;
  display: inline-block;
  font-size: 1.8rem;
  color: #fff;
  padding: 0.3em 0.45em;
  border-radius: 50px;
  font-weight: bold;
  margin-right: 10px;
  vertical-align: middle;
}
.chart-block {
  display: block;
  height: 100%;
  position: relative;
  margin: auto;
}

.vertical-divider {
  position: absolute;
  height: 68%;
  border-left: 1.5px dashed black;
  bottom: 0;
}
.total-contribution {
  font-size: 1.2rem;
  margin: 0 0 0.5em;
  border-bottom: #000 1px solid;
  line-height: 1.2;
}
.total-contribution strong {
  font-weight: bold;
}

.total-contribution .percentage {
  font-size: 2.5rem;
  font-weight: 900;
}
.employee-label strong,
.employer-label strong {
  font-weight: 400;
  font-size: 0.9rem;
}

.employee-label .percentage,
.employer-label .percentage {
  font-size: 16px;
  font-weight: bold;
}
.account {
  width: 100%;
  display: flex;
  position: relative;
}
.account-legend {
  font-size: 0.9rem;
  margin: auto;
  padding: 1em 0 0;
}
.accs {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
  font-size: 14px;
}

.accs span {
  display: block;
  margin-right: 8px;
}
.account-explanation {
  font-size: 0.9rem;
  background: #ffc0081a;
  padding: 1em 4em;
  display: none;
  text-align: center;
  margin: 0.5em auto;
}
.account-label {
  position: absolute;
  right: -10%;
  top: 50%;
  font-size: 0.9rem;
  transform: translateY(-50%);
}
.rate-tabs {
  overflow: hidden;
  display: flex;
  margin: auto;
}
.rate-tab {
  padding: 8px 16px;
  cursor: pointer;
  margin: 0.5em;
  background-color: #fff;
  font-size: 0.8rem;
  border-radius: 25px;
  border: 1px solid #ffd77d;
}
.active-rate-tab {
  background-color: #ffb500;
}
.divider-label {
  position: absolute;
  bottom: -30px;
  text-align: center;
  width: 300px;
  font-size: 1.2rem;
  font-weight: 600;
}
.cpf-body-text {
  width: 60%;
}
.cpf-content {
  margin: 0.5em auto;
}
.cpf-content ul li {
  list-style: decimal;
  text-align: left;
}
.rate-changes {
  margin: 1em 0;
}
.cpf-accounts {
  margin: 0;
}
.account-detail {
  padding: 0 1em;
  margin: 6em 0.5em 0.2em;
  width: 20%;
  border-radius: 10px;
  background-color: #ffffff99;
}
.account-detail b {
  font-size: 1.5rem;
}

.acc-img-wrap {
  display: block;
  margin: -6em auto 0.5em;
  position: relative;
}
.acc-img {
  width: 100%;
  max-width: 130px;
}
.rate {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 70px;
  height: 70px;
  background-color: var(--cpf-active);
  color: #000000;
  border-radius: 50%;
  font-weight: 800;
  line-height: 1.2;
  font-family: roboto;
  margin: auto;
}
.acc-oa {
  border: solid 1px var(--acc-oa);
}
.acc-sa {
  border: solid 1px var(--acc-sa);
}
.acc-ra {
  border: solid 1px var(--acc-ra);
}
.acc-ma {
  border: solid 1px var(--acc-ma);
}
.account-purpose + p {
  border-top: 1px solid var(--cpf-active);
  padding: 0.2em 1em;
  font-weight: 600;
  margin: 0;
}
.interview-video {
  width: 90%;
  margin: 2em 0 2em 5em;
  position: sticky;
  top: 5%;
}
.video-container {
  position: sticky;
  top: 5%;
  z-index: 10;
  transition: all 0.3s ease;
  width: 100%;
  /* height: 50%; */
}
.video {
  padding-top: 1rem;
  margin-top: auto;
}
.burning-question-video {
  align-items: flex-start;
}

.burning-question {
  background-color: #fff;
}
.transcript {
  font-size: 2rem;
  padding: 0 2em;
  line-height: 1.3;
}
.data-scroll {
  background-image: none;
}
.collapse {
  transition: max-height 0.3s ease-in-out;
  overflow: hidden;
}
.collapse.show {
  max-height: 1000px;
  background-color: #ffd77d26;
}

.policy-reveal-answer-container {
  padding: 1em 3em;
  text-align: left;
}
.reveal-answer-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  border: none;
  width: 100%;
  text-align: left;
  padding: 15px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  color: #000;
}
.reveal-answer-button:focus {
  outline: none;
  box-shadow: none;
}
.reveal-answer-body {
  font-size: 14px;
  color: #555;
  padding: 2em;
  border-top: 1px solid #ddd;
}
.reveal-answer-header {
  border-bottom: 1px solid #ccc;
}
.reveal-answer-item:last-child .reveal-answer-header {
  border-bottom: none;
}
.fa-chevron-down {
  transition: transform 0.3s ease;
}
.reveal-answer-button[aria-expanded="true"] .fa-chevron-down {
  transform: rotate(180deg);
}
.video-container {
  position: sticky;
  top: 5%;
  z-index: 1;
}
.reveal-title {
  font-size: 1rem;
  text-align: left;
  padding: 0.5em;
  border-bottom: 1px solid var(--cpf-active);
}
.btn-link {
  font-weight: 600;
  color: #000;
  text-decoration: none;
  padding-right: 2rem;
}
.transcript blockquote {
  font-size: 2rem;
  font-weight: 400;
  padding: 0 0 0 2em;
  margin: 1em auto;
}
.transcript cite {
  color: #000;
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
}
.sm {
  font-weight: 400;
  padding-left: 1em;
  color: #999;
}
.transcript small {
  font-weight: 700;
}
.inline-link {
  font-weight: 600;
  color: var(--theme-ui-colors-main);
  text-decoration: revert;
}
.inline-link:hover {
  color: var(--theme-ui-colors-main);
  background-color: #fff;
}
.highlight {
  font-weight: 900;
  color: #ff9e00;
}
.method-title {
  margin-bottom: 0.2rem;
  font-weight: 800;
}
.increase-cpf-saving p {
  font-size: 4rem;
}
.im-policy {
  margin-top: 1em;
  padding: 2em 0;
}
.policy-accordion {
  margin: 1em 0;
}

.btn {
  width: 100%;
  text-decoration: none;
  text-wrap: wrap;
}
.btn-link:hover {
  text-decoration: none;
  color: #000;
  border-color: transparent;
}
.btn-link:active {
  background-color: #ff9e00;
}
.card-header {
  padding: 0;
}
.card-header:active {
  background-color: #ff9e00;
}
.card-header:hover {
  background-color: #ff9e00;
}
.card {
  border-bottom: 1px solid #ff9e00;
  border: none;
  border-radius: 0;
}
.card-body {
  text-align: start;
}
.tab {
  float: left;
  border: 1px solid #ccc;
  background-color: #f1f1f1;
  width: 30%;
}
.tab button {
  display: block;
  background-color: inherit;
  color: black;
  padding: 22px 16px;
  width: 100%;
  border: none;
  outline: none;
  text-align: left;
  cursor: pointer;
  transition: 0.3s;
  font-size: 17px;
}
.tab button:hover {
  background-color: #ddd;
}
.tab button.active {
  background-color: #ccc;
}
.btn-link.focus,
.btn-link:focus {
  text-decoration: none;
}
.tabcontent {
  padding: 0px 12px;
  border: 1px solid #ccc;
  width: 70%;
  border-left: none;
}
.loh-video {
  width: 100%;
}
.loh-chin-chuan-secret {
  padding: 0;
  margin: 1em 0;
}
.question-transcript {
  font-size: 1rem;
  padding: 1em;
}
.questions {
  padding: 0 2em;
}
.caution {
  background-color: #ffffffd0;
  border: 1px solid var(--cpf-active);
  padding: 1em 2em;
  font-size: 0.9rem;
  border-radius: 10px;
  line-height: 1.5;
}
.cpf-investment {
  background-color: #fff;
  border: var(--cpf-active) 2px solid;
  padding: 0.5em 1em;
  color: #000;
  border-radius: 25px;
}
.cpf-investment:hover {
  background-color: var(--cpf-active);
  border: var(--cpf-active) 2px solid;
  color: #000;
  font-weight: 500;
}
.rip {
  height: auto;
  width: 100%;
}
.method-detail {
  padding: 0 3em;
  border-radius: 10px;
  background-color: #bafaffcf;
  border: 2px dotted var(--cpf-light);
}
.method-title b {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0) 50%,
    #ffc107 50%,
    #ffc107 100%
  );
}
.detail {
  margin: auto;
  font-size: 0.9rem;
}
.profile-wrap {
  padding: 1em;
}
.detail-img {
  width: 90%;
  padding: 2em;
}
.profile {
  background-color: #fff;
  border-radius: 10px;
  padding: 2em 1em 1em;
  border: 1px solid var(--cpf-active);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.profile-img {
  width: 70%;
  margin-bottom: 1em;
  border-radius: 50%;
}
.profile-photo {
  padding: 1em;
}
.profile-video {
  width: 100%;
  padding: 1em;
}
.position {
  font-weight: 600;
}
.quote-container blockquote p {
  color: #000;
  line-height: 1.4 !important;
  font-weight: 700;
}
.quote-container blockquote {
  margin: 0em auto !important;
  padding: 0em 0 0em 3em;
  text-align: left;
}
.strategy {
  border-top: 1px solid var(--cpf-active);
  border-bottom: 1px solid var(--cpf-active);
  margin: 1em;
  padding-top: 0.5em;
}
.strategy-title {
  margin-top: 1em;
}
.strategy-title p b {
  background-color: var(--cpf-light);
  padding: 0.3em 1em;
  border-radius: 20px;
}
.strategy ul li {
  text-align: left;
  font-size: 0.9rem;
}
blockquote:before {
  background-image: url(../img/quote-left.svg);
}
.strategy blockquote:before,
blockquote:after {
  width: 40px;
}
.strategy .quote-container blockquote {
  padding: 0em 0 0em 2em;
}
.name h4 {
  font-weight: 800;
}
.marriage {
  padding-left: 2em;
}
/* normal scrolly */
.method-scrolly {
  position: relative;
}
.method-scrolly .method-background {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}
.method-scrolly .method-background .method-background-content {
  position: absolute;
  top: 0px;
  bottom: auto;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}
.method-scrolly .method-background .method-background-content > * {
  position: absolute;
  width: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.method-scrolly .method-slide {
  position: relative;
  padding-bottom: 100vh;
  height: 100vh;
  z-index: 1;
}
@media (min-width: 351px) and (max-width: 460px) {
  .method-scrolly .method-slide {
    height: 90vh;
  }
}
.method-scrolly .method-slide:first-child {
  padding-top: 80vh;
}

.method-scrolly .method-slide:last-child {
  padding-top: 100vh;
}

.method-scrolly .method-slide .method-slide-content {
  width: 400px;
  position: absolute;
  top: 50%;
  right: 0;
  transform: translate(0, -50%);
  line-height: 1.8em;
  padding: 10px;
  box-sizing: border-box;
}
@media (min-width: 351px) and (max-width: 460px) {
  .method-scrolly .method-slide .method-slide-content {
    font-size: 1.56rem;
  }
}
.method-scrolly .method-slide .method-slide-content.right {
  right: 10%;
  max-width: calc(100% - 10px);
  top: 15%;
}
.first-slide {
  top: 28% !important;
}
.method-scrolly .method-background-content [class*="method-slide-"] {
  opacity: 0;
  transition: all 0.1s ease-in-out;
}
.method-scrolly .method-background-content [class*="method-slide-0"] {
  opacity: 1;
}
.method-scrolly.active .method-background .method-background-content {
  position: sticky;
}
.method-scrolly.active[data-index="0"]
  .method-background-content
  [class*="method-slide-0"] {
  opacity: 1;
}
.method-scrolly.active[data-index="1"]
  .method-background-content
  [class*="method-slide-1"] {
  opacity: 1;
}
.method-scrolly.active[data-index="2"]
  .method-background-content
  [class*="method-slide-2"] {
  opacity: 1;
}
/* key changes */
.key-changes-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin: 0 auto;
  touch-action: pan-y;
}
.timeline-slide .timeline-text-container blockquote {
  margin: 0 auto !important;
}
.qna-full {
  width: 85%;
}
.qna-full-wrap {
  background-color: #fff;
}
.qna-sidebar .qna-parent {
  background-color: #fff;
  font-size: 16px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  border-right: 1px solid var(--theme-ui-colors-focus);
  height: 100%;
  border-left: 1px solid var(--theme-ui-colors-focus);
  width: 40px;
  padding: 1em 0.5em;
  cursor: pointer;
}
.wrap-q {
  padding: 1em 0 0 0;
}
.sidebar-wrap {
  background-color: #fff6e2;
  padding: 0;
}
.qna-sidebar .qna-parent.active {
  background-color: #ffc107;
  color: #fff;
}
.qna-question,
.qna-parent {
  cursor: pointer; /* Suggests an element is clickable */
  -webkit-tap-highlight-color: transparent; /* Removes tap highlight color on iOS */
}
.qna-container {
  margin-bottom: 3em;
}
/* Content styles */
.qna-content h5 {
  font-weight: bold;
  font-size: 18px;
}
.question1 {
  border-top: 1px solid var(--cpf-active);
}
.qna-question {
  font-size: 1rem;
  cursor: pointer;
  width: 100%;
  border-radius: 5px;
  margin: 0.5em;
  padding: 1em;
}
.qna-question:hover {
  background-color: var(--cpf-light);
  font-weight: 800;
}
.qna-question:active {
  background-color: var(--cpf-light);
  font-weight: 600;
}
.question-line {
  border-bottom: 1px dotted var(--cpf-light);
}
.qna-questions {
  display: flex;
  overflow-x: hidden;
  border-bottom: 1px solid var(--cpf-active);
}
.qna-answer-wrap .row {
  display: none;
}
.tab-video {
  width: 100%;
}
/* Show only the active answer */
.qna-answer-wrap .row.active {
  display: block;
}

/* Highlight active question */
.qna-question.active {
  background-color: #ffc107;
  font-weight: bold;
}

.qna-answer-wrap {
  border: 1px solid var(--cpf-active);
  padding: 2em;
}
.qna-speech-to-text {
  margin-top: 0.5rem;
  font-size: 1rem;
  text-align: left;
}
.qna-speech-to-text h6 {
  font-weight: bold;
  margin-bottom: 0.5rem;
}
.qna-speech-to-text span {
  color: #ffc107;
  font-weight: bold;
}
.timeline-text-quote {
  font-size: 2rem;
  font-weight: 700;
  padding: 0 0 0 2em;
  margin: 1em auto;
}
.timeline-text-cite {
  color: #000;
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
}
.timeline-text-cite .sm {
  font-weight: 400;
  padding-left: 1em;
  color: #999;
}

/*videos*/
.video-sec {
  padding-bottom: 40px;
}
.cpf-video-covers {
  display: flex;
  justify-content: space-around;
  gap: 1rem;
  padding: 0 5rem;
}
.cpf-videos {
  flex: 1 0 250px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.cpf-video-img {
  width: 100%;
  margin-bottom: 10px;
}
.cpf-videos img {
  display: block;
  max-width: 100%;
  height: auto;
}
figcaption {
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .view-desktop {
    display: none !important;
  }
  .view-mobile {
    display: block !important;
  }
  .headline {
    height: 50%;
  }
  .intro {
    flex-direction: row;
    padding: 3em;
    margin: 3em 0;
  }
  body {
    background-image: url(../img/paper-texture-m.webp);
    background-repeat: repeat;
  }
  .headline-img {
    width: 70%;
  }
  .swiper-container {
    height: auto;
  }
  .account-explanation {
    margin: 1em;
  }
  .timeline-content {
    display: block;
    transform: translateX(25%);
  }
  .timeline-text-container img {
    margin: 0;
  }
  .rate-tabs {
    left: 10%;
  }
  .cpf-qns-desktop {
    display: flex;
  }
  .cpf-qns-mobile {
    display: none;
  }
  .cpf-qns-desktop h3 {
    font-size: 1.5rem;
  }
  .cpf-investment-info {
    text-align: center; 
    top: -250px; 
    z-index: 10;
  }
  .account-detail {
    width: 100%;
    height: 40vh;
  }
  .method-background-content {
    z-index: 10;
  }
  .method-scrolly .method-slide .method-slide-content.right {
    right: 0;
    line-height: 1.2em;
    width: auto;
    padding: 4em;
    padding-top: 1000px;
  }
  .scroll-img {
    padding-top: 300px;
    width: 80%;
    margin: auto;
  }
}
/* ipad */
@media screen and (max-width: 1024px) and (min-height: 1024px) {
  .view-mobile {
    display: block;
  }
  .view-desktop {
    display: none;
  }
  .swiper-container {
    height: auto;
  }
  .burning-question-title p {
    margin: 0;
  }
  .transcript small {
    font-size: 1.3rem;
  }
  .reveal-answer-button {
    font-size: 13px;
  }
  .big-question-mark {
    font-size: 1.4rem;
    vertical-align: baseline;
  }
  .account-detail {
    width: 100%;
  }
  .interview-video {
    margin: 2em 0 2em 3em;
  }
  .reveal-answer-body {
    padding: 1em 2em;
  }

  .method-scrolly .method-slide {
    z-index: -1;
  }
  .scroll-img {
    width: 70%;
    margin: auto;
  }
  .method-scrolly .method-slide .method-slide-content.right {
    right: 25%;
  }
  .method-scrolly .method-slide .method-slide-content {
    width: 450px;
    transform: translate(0, 0%);
  }
  .strategy blockquote:before,
  blockquote:after {
    width: 20px;
  }
  .strategy .quote-container blockquote {
    padding: 0em 0 0em 1.2em;
  }
  .marriage {
    padding-left: 0.5em;
  }
  .strategy {
    margin: 0;
  }
  .account-label {
    right: -15%;
  }
  .rate-tab {
    padding: 8px 12px;
    margin: 0.2em;
  }
  .account-explanation {
    margin: 0 0 1em;
  }
  .swiper-button-prev,
  .swiper-button-next {
    padding: 25px;
    background-size: 30%;
  }
  .profile-img {
    width: 100%;
  }
  .profile-video {
    padding: 1em 0;
  }
  .timeline-image-container img {
    margin: 0;
  }
  .key-change-row {
    display: block;
  }

  .transcript {
    padding: 0 1em;
  }
  .mobile-card {
    margin: 0 5px;
    width: 30%;
  }
}
@media (max-width: 767px) {
  body {
    background-image: url(../img/paper-texture-m.webp);
    background-repeat: repeat;
  }
  .view-desktop {
    display: none;
  }
  .view-mobile {
    display: block;
  }
  .intro {
    flex-direction: column;
    padding: 10em 3em;
    margin: 5em 0;
  }
  .cpf-qns-mobile,
  .intro-text {
    width: 100%;
    flex-direction: column;
    gap: 1em;
  }
  .cpf-qns-desktop {
    display: none;
  }
  .cpf-qns-mobile {
    display: flex;
  }
  .cpf-qns-title {
    display: flex;
    align-items: center;
    gap: 1.5em;
  }
  .cpf-qns-mobile h3 {
    font-size: 1.2rem;
  }
  .cpf-qna-mobile {
    width: 100%;
  }
  .cpf-header h1 {
    font-size: 2rem;
  }
  .big-question-mark {
    font-size: 1.2rem;
    vertical-align: top;
  }
  .swiper-button-prev,
  .swiper-button-next {
    padding: 22px;
    opacity: 1;
    top: 40%;
    border-radius: 50% 0 0 50%;
    background-size: 30%;
  }
  .swiper-button-next:hover,
  .swiper-button-prev:hover {
    opacity: 1;
    animation: none;
  }
  .swiper-button-prev {
    left: 0;
    border-radius: 0 50% 50% 0;
  }
  .swiper-button-next {
    right: 0;
  }
  .swiper-pagination-bullet.inactive {
    width: 7px;
    height: 10px;
  }
  .swiper-container {
    height: auto;
  }
  .transcript {
    padding: 0.5em;
  }
  .account-detail {
    width: 100%;
    margin: 3em 0.5em 0.2em;
    height: 50vh;
  }
  .acc-img {
    width: 60%;
  }
  .acc-img-wrap {
    margin: -2em auto 0.5em;
  }
  .acc-content {
    padding: 0.2em 1em 0.5em;
  }
  .cpf-body-text {
    width: 90%;
  }
  .rate-tabs {
    flex-wrap: wrap;
  }
  .chart-headline {
    margin: 1em 0 0 0;
  }
  .chart-content {
    margin: 0 auto 0.5em;
  }
  .rate-tab {
    padding: 3px 10px;
    padding: 5px 15px;
    margin: 0.2em auto;
    text-align: center;
  }
  .account-explanation {
    font-size: 0.8rem;
    padding: 1em 1.8em;
    margin: 0 auto;
  }
  .sidenotes {
    margin: auto;
  }
  .chart-sidenotes {
    margin: 0.5em auto;
  }
  .chart-sec {
    width: 92%;
    padding: 1em;
  }
  .chart-wrap {
    width: 85%;
    margin-top: 1em;
    transform: translateX(5%);
  }
  .accs span {
    font-size: 0.8rem;
  }
  .account-legend {
    margin-left: 6% !important;
    font-size: 0.8rem;
  }
  .account-label {
    right: -20%;
    font-size: 0.7rem;
  }
  .total-contribution {
    margin: 0 0 1.5em;
    font-size: 1rem;
  }
  .total-contribution .percentage {
    font-size: 1.2rem;
  }
  .vertical-divider {
    height: 78%;
    border-left: 1px dashed black;
  }
  .employee-label strong,
  .employer-label strong {
    font-size: 0.8rem;
  }
  .employee-label .percentage,
  .employer-label .percentage {
    font-size: 0.8rem;
  }
  .employer-label {
    left: calc(100% - 80px);
  }
  .profile-photo {
    padding: 0;
  }
  .profile-video {
    padding: 0;
  }
  .scroll-img {
    width: 80%;
    margin: auto;
  }
  .profile-wrap {
    padding: 1em 0;
  }
  .strategy {
    margin: 0;
  }
  .profile {
    padding: 2em 1em;
  }
  .interview-video {
    width: 100%;
    margin: 0;
    border-bottom: none !important;
  }
  .transcript p small {
    font-size: 1.5rem;
  }
  .sticky-nav .nav-links a {
    font-size: 0.8rem;
    font-weight: 400;
  }
  .sticky-nav .nav-links a.active {
    font-size: 0.9rem;
    line-height: 1.2;
    font-weight: 600;
  }
  .profile-img {
    width: 40%;
  }
  .transcript blockquote {
    padding: 0 0.5em 0 2em;
    margin: 1em auto;
  }
  .transcript blockquote p {
    font-size: 26px;
  }
  .paper {
    padding: 2em 1em;
  }
  .timeline-image-container {
    padding: 0;
  }
  .timeline-image-container img {
    margin: 0;
  }
  /* #landing {
  height: 150vh;
} */
  .cpf-accounts-wrap {
    width: 85%;
    padding: 0 2em 0 2em;
    display: block;
  }
  .swiper-pagination-bullet .year {
    font-size: 12px;
  }
  .intro-text {
    padding: 1em;
  }
  /* .intro {
  padding: 1em;
} */
  .strategy blockquote:before,
  blockquote:after {
    width: 30px;
  }
  /* scrolly */
  .first-slide {
    top: 50% !important;
  }
  .method-scrolly .method-slide .method-slide-content.right {
    right: 0;
    line-height: 1.2em;
    width: auto;
    padding: 1.5em;
  }
  .method-scrolly .method-slide {
    z-index: -1;
  }
  /* Hide sidebar on mobile */
  .qna-sidebar {
    display: none;
  }
  /* Parent navigation for mobile */
  .qna-parent-wrapper {
    display: flex;
    overflow-x: auto;
    background-color: #fff;
    padding: 1rem 0;
    gap: 5px;
    font-size: 0.9rem;
    border-bottom: 2px solid #eaeaea;
  }
  .qna-parent-wrapper .qna-parent {
    flex: 0 0 auto;
    padding: 0.5rem 1rem;
    border: 1px solid #eaeaea;
    border-radius: 5px;
  }
  .qna-parent-wrapper .qna-parent.active {
    background-color: #ffc107;
    color: #fff;
  }
  /* Horizontal scrolling questions */
  .qna-questions {
    flex-direction: row; /* Ensure horizontal layout */
    overflow-x: auto;
    gap: 1rem;
    border-bottom: none;
  }
  .qna-answer-wrap {
    padding: 1em;
  }
  .qna-full {
    width: 100%;
  }
  /* Hide questions by default on mobile */
  .qna-questions[data-parent] {
    display: none !important;
  }
  /* Show questions when active */
  .qna-questions.active {
    display: block !important;
  }
  .timeline-text-quote {
    font-size: 1.4em;
  }
  .timeline-text-container {
    padding: 10px 40px 0 40px;
  }
  .timeline-text-quote {
    font-size: 1.5rem;
  }
  .headline-img {
    width: 100%;
  }
  .cpf-investment-info {
    text-align: center; 
    top: -300px; 
    z-index: 10;
    line-height: 2rem;
  }
  /*videos*/
  .cpf-video-covers {
    flex-direction: column;
    padding: 0 3rem;
  }
  .cpf-videos {
    flex: 1 0 100%;
    flex-direction: row-reverse;
    gap: 1rem;
  }
  .cpf-video-img {
    width: 50%;
  }
}

@media (min-width: 600px) and (max-width: 767px) {
  .scroll-img {
    padding-top: 290px;
  }
}

@media (min-width: 300px) and (max-width: 580px) {
  .headline {
    height: 50%;
  }
  .intro {
    padding: 2em;
    margin: 0;
  }
}
