@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond&display=swap");
* {
  box-sizing: border-box;
  user-select: none;
  font-family: sans-serif;
}

body {
  margin: 0;
  padding: 0;
  height: 100dvh;
  overflow-y: hidden;
  background: white;
}

section {
  width: 100%;
  height: 100dvh;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 1; /* 移除原本 opacity: 0 */
  visibility: hidden;
  pointer-events: none;
  will-change: transform;
}
section.active {
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}
section .outer,
section .inner {
  width: 100%;
  height: 100%;
  position: relative; /* 新增這行 */
  will-change: transform;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}
section .bg {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  background-size: cover;
  background-position: center;
}
section .bg .clip-text {
  overflow: hidden;
}

.past .bg {
  /* background-image: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.6) 0%,
      rgba(0, 0, 0, 0.3) 100%
    ),
    url(https://images.unsplash.com/photo-1617478755490-e21232a5eeaf?crop=entropy&cs=srgb&fm=jpg&ixid=MnwxNDU4OXwwfDF8cmFuZG9tfHx8fHx8fHx8MTYxNzU1NjM5NA&ixlib=rb-1.2.1&q=75&w=1920); */

  background: linear-gradient(270deg, #f1f1f1 0%, #ffffff 100%);
}

.current .bg {
  background: linear-gradient(270deg, #d2ecfe 0%, #ebf7ff 100%);
}

.future .bg {
  background: #f0f8ff;
  flex-direction: column;
}
.coming-soon {
  text-align: center;
}
.future-section-content {
  text-align: center;
  background: linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.6) 0%,
    rgba(255, 255, 255, 0.7) 100%
  );
  border-radius: 8px;
  padding: 5% 4%;
  margin-right: -15vw;
}
html[lang="en"] .future-section-content h2 {
  font-size: 26px;
  margin-bottom: 0;
}
div.panel {
  position: absolute;
  z-index: 2;
  cursor: pointer;
  transition: z-index 0s ease 0.4s;
}
.panel-label {
  position: absolute;
  bottom: 1px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 20px;
  min-width: 100%;
  text-align: center;
  border-radius: 8px;
  color: #333;
  transition: 1s all;
  font-size: 15px;
  line-height: 1.1em;
}
div#past-panel-5 .panel-label,
div#current-panel-5 .panel-label {
  left: 45%;
}
.current .panel-label {
  border: none;
  color: #0a5086;
}
.panel.hovering {
  z-index: 10;
  transition-delay: 0s;
}
/* 
.panel.hovering .panel-label {
  opacity: 0;
  transition: 0.5s all;
} */

/* ✅ Panel Group Responsive Wrapper */

.panel-group-wrapper {
  width: 1200px;
  max-width: 80%;
  min-height: 860px;
  max-height: 980px;
  height: 90%;
  transform-origin: top center;
  position: relative;
  margin-left: 5%;
  margin-top: 5%;
  z-index: 1;
}
div#past-panel-1,
div#current-panel-1 {
  right: 7%;
  top: 13%;
}
div#past-panel-2,
div#current-panel-2 {
  left: 7%;
  top: 13%;
}
div#past-panel-3,
div#current-panel-3 {
  left: 7%;
  bottom: 10%;
}
div#past-panel-4,
div#current-panel-4 {
  right: 7%;
  bottom: 10%;
}
#past-panel-5,
#current-panel-5 {
  left: 25%;
  top: 27%;
  transform: translate(0) !important;
  z-index: 0;
}

div#past-panel-5 img.panel-img,
div#current-panel-5 img.panel-img {
  width: 610px;
  max-width: none;
}
div#past-panel-5:hover,
div#current-panel-5:hover {
  z-index: 2;
}
.bg-element {
  position: absolute;
  z-index: 0;
}
#past-bg-element-1 {
  left: 17vw;
  top: 44vh;
  width: 4vw;
}
#past-bg-element-2 {
  right: 22vw;
  top: 52vh;
  width: 4vw;
}
div#past-bg-element-3 {
  left: 16vw;
  width: 5vw;
  bottom: 20vh;
}
.panel img.panel-img {
  max-width: 100%;
  width: 360px;
  height: auto;
}
nav.timeline-nav {
  position: absolute;
  z-index: 100;
  left: 4%;
  top: 110px;
}

nav.timeline-nav ul {
  padding-left: 0px;
  margin-bottom: 0;
  position: relative;
}

nav.timeline-nav li {
  margin-bottom: 25px;
  display: block;
  position: relative;
  padding: 4px;
  padding-left: 10px;
}
nav.timeline-nav li:last-child {
  margin: 0;
}
nav.timeline-nav ul:before {
  content: "";
  height: 80%;
  width: 1px;
  background: #cbe6ff;
  display: block;
  position: absolute;
  left: -5px;
  top: 13px;
}
nav.timeline-nav li button {
  color: #76b2e9;
  text-decoration: none;
  font-size: 17px;
  letter-spacing: 0.3px;
  transition: 0.3s all;
  background: none;
  text-align: left;
  padding: 10px 20px;
  background: #e0f0ff8c;
}
nav.timeline-nav li button.active,
nav.timeline-nav li button:hover {
  transition: 0.3s all;
  background: #e5f3ff;
  color: #2b5389;
}
nav.timeline-nav li button.active {
  background: #badeff;
  box-shadow: rgb(75 186 255 / 35%) 4px 1px 12px 0px,
    rgb(186 255 245 / 68%) -4px -1px 12px 0px;
  border: 1px solid #003d732e;
}
nav.timeline-nav li button:before {
  content: "";
  position: absolute;
  top: 50%;
  left: -10px;
  transform: translateY(-50%);
  display: block;
  width: 10px;
  height: 10px;
  background: #cbe6ff;
  border-radius: 100px;
}
nav.timeline-nav li button:after {
  content: "";
  background: url(../images/overview-img/blue-triangle-down.png) no-repeat
    center center;
  width: 16px;
  height: 21px;
  background-size: contain;
  display: block;
  position: absolute;
  left: -13px;
  opacity: 0;
  bottom: -30px;
  animation: timelineNavArrow 5s ease-in-out infinite;
}
#current-timeline-nav button:after {
  animation-delay: 2.5s;
}
#future-timeline-nav button:after {
  display: none;
}

@keyframes timelineNavArrow {
  0% {
    bottom: 0px;
    opacity: 0;
  }
  40% {
    bottom: -30px;
    opacity: 1;
  }
  70% {
    bottom: -65px;
    opacity: 0;
  }
}
nav.timeline-nav li button.active:before {
  background: #00529c;
}

div#stakeholder-nav {
  position: fixed; /* Fixed to overlay */
  bottom: 6%;
  left: 3%;
  z-index: 1033;
  display: flex;
}

div#stakeholder-nav .stakeholder-nav-item {
  display: block;
  width: 95px;
  margin-bottom: 10px;
  margin-right: 10px;
  cursor: pointer;
  position: relative;
}

.stakeholder-nav-item:before {
  background: #e7f5ff;
  padding: 8px;
  border-radius: 5px;
  position: absolute;
  width: 100%;
  text-align: center;
  bottom: -13px;
  display: none;
  z-index: 1033;
  font-size: 15px;
}

.stakeholder-nav-item:hover:before {
  display: block;
}

div#stakeholder1:before {
  content: "病人";
  background: #ffedab;
}
div#stakeholder2:before {
  content: "醫護人員";
  background: #e7f5ff;
}
div#stakeholder3:before {
  content: "院舍職員";
  background: #cafdf2;
}
div#stakeholder4:before {
  content: "院舍病人";
  background: #ffe0c1;
}
div#stakeholder5:before {
  content: "藥劑師";
  background: #ffdee1;
}
div#stakeholder6:before {
  content: "資訊科技職員";
  background: #dfe4ff;
}

html[lang="sc"] div#stakeholder1:before {
  content: "病人";
}
html[lang="sc"] div#stakeholder2:before {
  content: "医护人员";
}
html[lang="sc"] div#stakeholder3:before {
  content: "养老院工作人员";
}
html[lang="sc"] div#stakeholder4:before {
  content: "养老院病人";
}
html[lang="sc"] div#stakeholder5:before {
  content: "药剂师";
}
html[lang="sc"] div#stakeholder6:before {
  content: "资讯科技人员";
}

html[lang="en"] div#stakeholder1:before {
  content: "Patients";
}
html[lang="en"] div#stakeholder2:before {
  content: "Healthcare Professional";
}
html[lang="en"] div#stakeholder3:before {
  content: "Residential care home staff";
}
html[lang="en"] div#stakeholder4:before {
  content: "Residents";
}
html[lang="en"] div#stakeholder5:before {
  content: "Pharmacist";
}
html[lang="en"] div#stakeholder6:before {
  content: "IT staff";
}

.stakeholder-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8); /* 可調濃度 */
  z-index: 1031; /* 比 nav 高，比 #stakeholder-content 低 */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.stakeholder-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
#stakeholder-content {
  position: fixed;
  top: 3%;
  left: 2%;
  width: 96%;
  height: calc(100% - 6%);
  background: #e1f3fff0;
  border: 1px solid #b7d4e2;
  color: white;
  transform: translateY(100%);
  transition: transform 0.5s ease;
  z-index: 1032;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}
.stakeholder-col-6 {
  width: 47%;
  margin: 3%;
  position: relative;
  font-size: 18px;
}
.stakeholder-col-6 img {
  max-width: 100%;
  display: block;
  margin: 30px auto 50px;
}
.stakeholder-col-6:last-child:before {
  content: "";
  display: block;
  width: 40px;
  height: 40px;
  background: url("../images/overview-img/next-arrow.png");
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  left: -40px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.3;
}
.stakeholder-col-6.past {
  margin-left: 0;
}
.stakeholder-col-6.current {
  margin-right: 0;
}
.stakeholder-content-item {
  display: none; /* Hide all content items by default */
}

.stakeholder-content-item.active {
  display: block; /* Show active content item */
}

#stakeholder-close-button {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 0px 20px;
  color: #424242;
  border: none;
  cursor: pointer;
  font-size: 55px;
}
.panel-tooltip {
  top: -65px;
  left: 50%;
  transform: translateX(-50%);
  background: #e8e8e8;
  text-align: left;
  z-index: 5;
  position: absolute;
  width: 430px;
  /* aspect-ratio: 5 / 1.6; */
  background: url("data:image/svg+xml;utf8,<svg viewBox='-2 -2 358 128' fill='none' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'><defs><filter id='ds' x='-20%' y='-20%' width='140%' height='140%'><feDropShadow dx='0' dy='3' stdDeviation='4' flood-color='%23777777' flood-opacity='0.15'/></filter></defs><path d='M142 122C118.05 122 100.932 117.723 89.0146 110.483C79.7572 116.466 68.346 120 56 120C25.072 120 0 97.8381 0 70.5C0 58.9252 4.25523 49.1754 11.5088 41.7793C11.9777 19.7232 33.9548 1.00017 67.9482 1C81.8852 1 94.8064 4.14812 105.243 9.38183C116.506 3.51792 130.862 0 146.5 0C165.639 0 182.86 5.26528 194.836 13.6582C197.739 12.219 200.78 10.9401 203.941 9.83496C212.875 5.47704 223.115 3 234 3C247.283 3 259.606 6.68738 269.767 12.9824C270.32 13.2433 270.869 13.5101 271.413 13.7822C278.916 8.27626 288.307 5 298.5 5C322.398 5 341.894 22.9913 342.953 45.5654C349.893 53.2251 354 62.7182 354 73C354 98.4051 328.928 119 298 119C286.953 119 276.653 116.371 267.976 111.835C257.62 116.4 245.694 119 233 119C217.362 119 202.889 115.052 191.082 108.348C177.757 116.875 160.653 122 142 122Z' fill='%23ececec' stroke='%23cfcfcf' stroke-width='1' filter='url(%23ds)'/></svg>")
    no-repeat center center;
  background-size: 100% 100%;
  padding: 25px 35px;
  font-size: 15px;
  line-height: 1.4;
  color: #333;
  box-sizing: border-box;
  opacity: 0;
  will-change: opacity, transform;
  transition: opacity 0.3s ease;
}
html[lang="en"] .panel-tooltip {
  line-height: 1.2em;
  font-size: 15px;
}
.panel-tooltip::after {
  content: "";
  position: absolute;
  bottom: -18px;
  right: 40%;
  width: 18px;
  height: 18px;
  background: #ececec;
  border: 1px solid #cfcfcf;
  border-radius: 50%;
  box-shadow: 2px 2px 3px #0000004d;
}

.panel-tooltip::before {
  content: "";
  position: absolute;
  bottom: -32px;
  right: 43%;
  width: 12px;
  height: 12px;
  background: #ececec;
  border: 1px solid #cfcfcf;
  border-radius: 50%;
  box-shadow: 2px 2px 3px #0000004d;
}
.current .panel-tooltip {
  background: url("data:image/svg+xml;utf8,<svg viewBox='-2 -2 358 128' fill='none' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'><defs><filter id='ds' x='-20%' y='-20%' width='140%' height='140%'><feDropShadow dx='0' dy='3' stdDeviation='4' flood-color='%235c9dce' flood-opacity='0.15'/></filter></defs><path d='M142 122C118.05 122 100.932 117.723 89.0146 110.483C79.7572 116.466 68.346 120 56 120C25.072 120 0 97.8381 0 70.5C0 58.9252 4.25523 49.1754 11.5088 41.7793C11.9777 19.7232 33.9548 1.00017 67.9482 1C81.8852 1 94.8064 4.14812 105.243 9.38183C116.506 3.51792 130.862 0 146.5 0C165.639 0 182.86 5.26528 194.836 13.6582C197.739 12.219 200.78 10.9401 203.941 9.83496C212.875 5.47704 223.115 3 234 3C247.283 3 259.606 6.68738 269.767 12.9824C270.32 13.2433 270.869 13.5101 271.413 13.7822C278.916 8.27626 288.307 5 298.5 5C322.398 5 341.894 22.9913 342.953 45.5654C349.893 53.2251 354 62.7182 354 73C354 98.4051 328.928 119 298 119C286.953 119 276.653 116.371 267.976 111.835C257.62 116.4 245.694 119 233 119C217.362 119 202.889 115.052 191.082 108.348C177.757 116.875 160.653 122 142 122Z' fill='%23ffffff' stroke='%23caebff' stroke-width='1' filter='url(%23ds)'/></svg>")
    no-repeat center center;
}

.current .panel-tooltip::after,
.current .panel-tooltip::before {
  background: #ffffff;
  border: 2px solid #caebff;
}
.panel-tooltip b {
  display: block;
  text-align: left;
  color: #04529a;
  font-size: 15px;
}

.panel-tooltip-2nd {
  top: auto;
  bottom: -35px;
}
.panel-tooltip.panel-tooltip-2nd:after {
  bottom: auto;
  top: -24px;
  right: 42%;
}
.panel-tooltip.panel-tooltip-2nd:before {
  bottom: auto;
  top: -40px;
  right: 39%;
}
.panel-tooltip span {
  font-size: 16px;
  font-weight: bold;
}
#current-panel-5-tooltip-1.panel-tooltip::before {
  right: auto;
  left: 20%;
}
#current-panel-5-tooltip-1.panel-tooltip::after {
  right: auto;
  left: 24%;
}
div#past-panel-1-tooltip-2,
div#current-panel-1-tooltip-2 {
  max-width: 350px;
  right: 0%;
  left: auto;
  transform: none;
  padding: 25px 40px;
}
div#current-panel-1-tooltip-2 {
  max-width: 350px;
}
.how-to-handle {
  position: absolute;
  bottom: 3vh;
  right: 2vw;
  font-weight: 300;
  text-align: right;
  color: #666666;
  opacity: 0.7;
  z-index: 0;
}
.how-to-handle span {
  display: none;
}
.current .how-to-handle {
  color: #28789f;
}

#intro-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  color: white;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
}

.intro-content h2 {
  font-size: 1.8rem;
  margin-bottom: 0.6rem;
  margin-top: 0.2rem;
}

html[lang="en"] .intro-content h2 {
  font-size: 22px;
}
.past-doctor-star {
  position: absolute;
  width: 60px;
  right: 20%;
  top: 21%;
}
#past-doctor-star-1 {
  animation: doctorStar1 1s ease-in-out infinite;
}
#past-doctor-star-2 {
  animation: doctorStar2 3s ease-in-out infinite;
}

@keyframes doctorStar1 {
  0% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(-3deg);
  }
  100% {
    transform: rotate(0deg);
  }
}
@keyframes doctorStar2 {
  0% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(10deg);
  }
  100% {
    transform: rotate(0deg);
  }
}
img.past-hcp-question {
  position: absolute;
  width: 45px;
  top: 35%;
  left: 49%;
  animation: pastHcpQuestion 4s ease-in-out infinite;
}

@keyframes pastHcpQuestion {
  0% {
    transform: rotate(0deg);
    width: 30px;
  }
  50% {
    transform: rotate(20deg);
    width: 45px;
  }
  100% {
    transform: rotate(0deg);
    width: 30px;
  }
}

img.current-it-drug {
  width: 11%;
  position: absolute;
  top: 22%;
  left: 53%;
  transform: translateX(-50%);
  animation: currentItdrug 4s ease-in-out infinite;
}

@keyframes currentItdrug {
  0% {
    top: 20%;
    opacity: 1;
  }
  50% {
    top: 24%;
    opacity: 0.8;
  }
  100% {
    top: 20%;
    opacity: 1;
  }
}
.intro-content p {
  margin-bottom: 0.5rem;
}

#start-exploring-btn {
  margin: auto;
  margin-top: 1rem;
  padding: 12px 24px;
  font-size: 16px;
  background: #00529c;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
body.no-scroll {
  overflow: hidden;
}

/* 初始狀態：隱藏 */
#intro-overlay {
  opacity: 1;
  transition: opacity 0.5s ease;
}

.intro-content {
  max-width: 600px;
  background: #fff;
  width: 600px;
  padding: 50px;
  border-radius: 20px;
  box-shadow: rgb(42 135 217 / 48%) 6px 2px 16px 0px,
    rgb(51 138 83 / 80%) -6px -2px 16px 0px;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
  transform: translateY(20px);
}

/* 進場效果 */
#intro-overlay.show .intro-content {
  opacity: 1;
  transform: translateY(0);
}

/* 離場效果：overlay 整體淡出 */
#intro-overlay.hide {
  opacity: 0;
  pointer-events: none;
}

.panel-demo {
  position: relative;
  width: 220px;
  height: 220px;
  margin: auto;
  background: none;
}

/* 背景 Panel 圖片 */
.tutorial-img {
  width: 100%;
  height: 100%;
  background: url("../images/overview-img/panel-past-patient.png")
    center/contain no-repeat;
  border-radius: 10px;
  position: relative;
  z-index: 1;
  animation: floatUpDown 3s ease-in-out infinite;
}

@keyframes floatUpDown {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
/* Tooltip */
.tooltip-box {
  position: absolute;
  top: -8px;
  left: 60px;
  background: #ffffff;
  color: #333;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 2;
  animation: showTooltip 4s infinite;
  border: 1px solid #aac7df;
}

/* Cursor Icon */
.animated-cursor {
  width: 28px;
  height: 28px;
  background: url("../images/overview-img/cursor.png") no-repeat center center;
  background-size: contain;
  position: absolute;
  top: 160px; /* 開始時落啲 */
  left: -30px;
  animation: cursorMove 4s infinite;
  z-index: 3;
}

@keyframes cursorMove {
  0% {
    top: 160px;
    left: 0px;
    opacity: 0;
  }
  30% {
    top: 110px;
    left: 70px;
  }
  35%,
  50% {
    top: 110px;
    left: 70px;
    opacity: 1;
  }
  60% {
    top: 160px;
    left: 70px;
    opacity: 0;
  }
  100% {
    top: 160px;
    left: 0px;
    opacity: 0;
  }
}

/* Tooltip timing */
@keyframes showTooltip {
  0%,
  30% {
    opacity: 0;
    transform: translateY(10px);
  }
  35%,
  50% {
    opacity: 1;
    transform: translateY(0px);
  }
  55%,
  100% {
    opacity: 0;
    transform: translateY(10px);
  }
}

.icon-left {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  left: 0px;
  top: 15%;
  z-index: 11;
  width: 50px;
}

.icon-right {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  right: 0px;
  top: 65%;
  z-index: 11;
  width: 50px;
}
.icon-right.pharmacy-past-icon-right {
  top: 50%;
}

.icon-left.pharmacy-past-icon-left {
  top: 20%;
  width: 60px;
}
.icon-left.hcp-past-icon-left {
  top: 20%;
  width: 60px;
}
.icon-right.hcp-past-icon-right {
  width: 70px;
  top: 55%;
}
.icon-right.patient-past-icon-right {
  top: 6%;
  width: 80px;
}
.pharmacy-past-icon-left,
.doctor-past-icon-left {
  width: 65px;
}
.doctor-past-icon-right {
  width: 80px;
  top: 40%;
}

.doctor-current-icon-left {
  width: 65px;
}
.doctor-current-icon-right {
  width: 90px;
  top: 55%;
}
.pharmacy-current-icon-left,
.pharmacy-current-icon-right {
  width: 8vh;
}

.timeline-text img {
  height: 14vh;
}
.icon-left.hcp-current-icon-left,
.icon-right.hcp-current-icon-right {
  width: 75px;
}
.past-pharmacy-sad-face {
  position: absolute;
}
.timeline-text {
  position: fixed;
  right: 2vw;
  top: 12vh;
  display: block;
  width: 100%;
  text-align: right;
}
.timeline-text b {
  font-size: 55px;
  font-weight: 100;
  opacity: 0.3;
  background: -webkit-linear-gradient(45deg, #aaa, #222);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
html[lang="en"] .timeline-text b {
  font-size: 48px;
  line-height: 1.1em;
  display: block;
  padding-top: 10px;
}
.timeline-text span {
  position: absolute;
  top: -1.5vh;
  right: 0;
  color: #999;
  font-weight: 300;
  font-size: 17px;
  letter-spacing: 0.5px;
}
.current .timeline-text b {
  opacity: 1;
  background: -webkit-linear-gradient(45deg, #79c2f1, #005f9d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.current .timeline-text span {
  color: #005f9d;
}
.timeline-intro {
  font-size: 16px;
  margin-bottom: 20px;
  color: #666;
  font-weight: 300;
  font-size: 15px;
  margin-left: -15px;
}
.current-bg {
  position: absolute;
  width: 100%;
  left: 0;
  top: 52%;
  transform: translateY(-50%);
}
.panel-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup-content {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 610px;
  text-align: center;
  position: relative;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.4s ease, transform 0.4s ease;
  box-shadow: rgb(42 135 217 / 48%) 6px 2px 16px 0px,
    rgb(51 138 83 / 80%) -6px -2px 16px 0px;
}

.panel-popup.show-popup .popup-content {
  opacity: 1;
  transform: scale(1);
}

.popup-content img {
  max-width: 100%;
  height: auto;
  margin-bottom: 15px;
}
.popup-content h4 {
  margin-top: 10px;
  margin-bottom: 20px;
}

.close-popup {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
}

.stakeholder-content-item h3 {
  font-weight: var(--bold-weight);
  background: var(--text-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  font-size: 34px;
}

.mobile-stakeholder-col,
img.mobile-panel-img,
.mobile-stakeholder-content {
  display: none;
}
body.disable-tooltips .panel-tooltip {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.circle-dot {
  position: absolute;
  width: 35px;
  height: 35px;
  background: url("../images/overview-img/current-dot-green.png");
  background-size: contain;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
}
.circle-dot {
  opacity: 0; /* 預設為 0 */
  transition: opacity 0.5s ease;
}
.circle-dot.blue {
  background: url("../images/overview-img/current-dot-blue.png");
  background-size: contain;
}
.circle-animation-wrapper {
  position: absolute;
  width: 25px;
  height: 25px;
  top: 0;
  width: 100%;
  height: 100%;
}

#circle-,
.stake-holder-line-svg {
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}
.mobile-stakeholder-connection {
  position: absolute;
  bottom: -180px;
  z-index: -2;
}
#mobile-stakeholder4-col-current .mobile-stakeholder-connection {
  bottom: -140px;
}
.stake-holder-line {
  opacity: 0.3;
}
.stakeholder-dot {
  position: absolute;
  width: 24px;
  height: 24px;
  background: url("../images/overview-img/current-dot-blue.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  border-radius: 50%;
  z-index: 5;
  pointer-events: none;
}
.past-patient-smoke path {
  fill: none;
  stroke: #385977;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.5px;
}
svg.past-patient-smoke {
  position: absolute;
  top: 45px;
  left: 135px;
  width: 40px;
  height: auto;
  z-index: 6;
}
svg#current-emed-svg {
  width: 610px;
  max-width: none;
  position: absolute;
  left: 0;
}
.past-pharmacy-sad-face {
  position: absolute;
  right: 16%;
  width: 50px;
  top: 20%;
  animation: pastPharmacyFace 5s ease-in-out infinite;
}

@keyframes pastPharmacyFace {
  0% {
    top: 25%;
    width: 20px;
    right: 26%;
    opacity: 0;
  }
  50% {
    top: 20%;
    right: 18%;
    width: 40px;
    opacity: 1;
  }
  100% {
    top: 25%;
    width: 20px;
    right: 26%;
    opacity: 0;
  }
}

.circle-dot.med-dot1,
.circle-dot.med-dot2 {
  position: absolute;
  width: 24px;
  height: 24px;
  background: url("../images/overview-img/current-dot-blue.png");
  background-size: contain;
  pointer-events: none;
  opacity: 0;
  z-index: -1;
}

@media (min-width: 768px) {
  .stakeholder-content-item .container {
    max-width: 750px;
  }
}

@media (min-width: 1000px) {
  .stakeholder-content-item .container {
    max-width: 900px;
  }
}

@media (min-width: 1400px) {
  .stakeholder-content-item .container {
    max-width: 1100px;
  }
}

@media (max-width: 1920px) {
  .panel img.panel-img {
    width: 320px;
  }
  div#stakeholder-nav .stakeholder-nav-item {
    width: 85px;
  }
}

@media (max-width: 1500px) {
  .current-bg {
    top: 54%;
    width: 97%;
  }
  .past-doctor-star {
    top: 18%;
    width: 52px;
  }
  div#stakeholder-nav {
    z-index: 1031;
    bottom: 2%;
  }

  html[lang="en"] .timeline-text {
    top: 10.5vh;
  }
  html[lang="en"] .timeline-text b {
    font-size: 40px;
  }
  html[lang="en"] .timeline-text span {
    top: -0.5vh;
  }

  html[lang="en"] .icon-left.hcp-past-icon-left {
    top: 30%;
  }
  div.timeline-text span {
    font-size: 16px;
  }
  nav.timeline-nav {
    top: 100px;
  }
  div#stakeholder-nav .stakeholder-nav-item {
    width: 75px;
    margin-bottom: 5px;
    margin-right: 5px;
  }
  .panel-group-wrapper {
    height: 850px;
    /* margin: auto 0 2% 7%; */
    max-width: 87%;
  }
  .panel img.panel-img {
    width: 275px;
  }

  div#past-panel-1,
  div#current-panel-1 {
    right: 18%;
    top: 20%;
  }
  div#past-panel-2,
  div#current-panel-2 {
    left: 18%;
    top: 20%;
  }
  div#past-panel-3,
  div#current-panel-3 {
    left: 18%;
    bottom: 9%;
  }
  div#past-panel-4,
  div#current-panel-4 {
    right: 18%;
    bottom: 9%;
  }
  #past-panel-5,
  #current-panel-5 {
    left: 28%;
    top: 34%;
    transform: translate(0) !important;
    z-index: 0;
  }
  div#past-panel-5 img.panel-img,
  div#current-panel-5 img.panel-img {
    width: 510px;
  }
  svg#current-emed-svg {
    width: 510px;
  }
  svg.past-patient-smoke {
    top: 20px;
    left: 90px;
  }

  .panel-tooltip b {
    font-size: 15px;
  }
  .panel-tooltip {
    font-size: 15px;
    width: 400px;
    padding: 26px 30px;
  }
}

@media (max-width: 1200px) {
  nav.timeline-nav li button {
    font-size: 16px;
    padding: 8px 16px;
    text-align: center;
  }
  nav.timeline-nav li {
    margin-bottom: 22px;
    padding: 0 20px;
  }
  .stakeholder-col-6:last-child:before {
    width: 32px;
    height: 32px;
  }
  .current-bg {
    top: 50%;
  }
  .panel img.panel-img {
    width: 240px;
  }
  div#past-panel-1,
  div#current-panel-1 {
    right: 15%;
    top: 15%;
  }
  div#past-panel-2,
  div#current-panel-2 {
    left: 15%;
    top: 15%;
  }
  div#past-panel-3,
  div#current-panel-3 {
    left: 15%;
    bottom: 21%;
  }
  div#past-panel-4,
  div#current-panel-4 {
    right: 15%;
    bottom: 21%;
  }
  div#stakeholder-nav {
    bottom: 4%;
  }
  div#stakeholder-nav .stakeholder-nav-item {
    width: 65px;
  }
  nav.timeline-nav {
    top: 80px;
  }
  .panel-group-wrapper {
    height: 800px;
    margin: 10% 2% 0 auto;
    max-width: 83%;
  }

  #past-panel-5,
  #current-panel-5 {
    left: 50%;
    top: 43%;
    transform: translate(-50%, -50%) !important;
    z-index: 0;
  }

  .timeline-text {
    top: 10vh;
  }
  .timeline-text b {
    font-size: 45px;
  }
  div.timeline-text span {
    font-size: 15px;
  }
  .how-to-handle {
    bottom: 2vh;
    font-size: 14px;
  }
  .how-to-handle span {
    display: inline-block;
  }
  .how-to-handle br {
    display: none;
  }

  html[lang="en"] .timeline-text {
    top: 10vh;
  }
  html[lang="en"] .timeline-text b {
    font-size: 38px;
  }
}

@media (max-width: 1050px) {
  body,
  section {
    height: calc(var(--vh, 1vh) * 100);
  }
  .timeline-intro {
    text-align: center;
    margin-bottom: 10px;
    font-size: 16px;
  }
  .timeline-text {
    display: none;
  }
  nav.timeline-nav li button:before {
    display: none;
  }
  .how-to-handle {
    bottom: 120px;
    right: 30px;
  }
  .future-section-content {
    margin-right: 0px;
  }
  .panel-label {
    bottom: 20px;
    background: #ffffffde;
    padding: 7px 5px;
    min-width: 95px;
    border: none;
  }
  .circle-animation-wrapper {
    width: 130%;
    max-width: 130%;
    margin-left: -15%;
  }
  nav.timeline-nav li button:after {
    content: "";
    background: url(../images/overview-img/blue-triangle-right.png) no-repeat
      center center;
    width: 16px;
    height: 21px;
    background-size: contain;
    left: auto;
    right: 0;
    bottom: 13px;
    animation: timelineNavArrowRight 5s ease-in-out infinite;
  }
  #current-timeline-nav button:after {
    animation-delay: 2.5s;
  }
  #future-timeline-nav button:after {
    display: none;
  }

  @keyframes timelineNavArrowRight {
    0% {
      right: 0px;
      opacity: 0;
    }
    30% {
      right: -30px;
      opacity: 0.7;
    }
    100% {
      right: -65px;
      opacity: 0;
    }
  }

  .timeline-text {
    top: auto;
    bottom: 14vh;
    right: 60px;
  }
  .timeline-text b {
    font-size: 55px;
  }
  nav.timeline-nav {
    top: 80px;
    left: 0;
  }
  div#stakeholder-nav {
    left: 50%;
    bottom: 3%;
    transform: translateX(-50%);
    z-index: 1033;
  }
  .stakeholder-nav-item:hover:before {
    display: none !important;
  }
  #stakeholder-content {
    height: calc(100% - 4%);
  }
  div#past-panel-1,
  div#current-panel-1 {
    right: 4%;
    top: 15%;
  }
  div#past-panel-2,
  div#current-panel-2 {
    left: 4%;
    top: 15%;
  }
  div#past-panel-3,
  div#current-panel-3 {
    left: 4%;
    bottom: 18%;
  }
  div#past-panel-4,
  div#current-panel-4 {
    right: 4%;
    bottom: 18%;
  }
  .panel-group-wrapper {
    width: 750px;
    margin: 0;
    margin-top: 5vh;
    max-width: 100%;
    min-height: 100vh;
  }
  nav.timeline-nav ul {
    padding-left: 0px;
    margin-bottom: 0;
    display: flex;
    width: 100vw;
    justify-content: space-evenly;
  }
  nav.timeline-nav li br {
    display: none;
  }
  nav.timeline-nav li {
    margin-bottom: 0px;
  }
  .stakeholder-nav-col {
    display: flex;
  }
  .panel img.panel-img {
    width: 250px;
  }
  .current .inner {
    overflow: hidden;
  }
  .current-bg img {
    width: 130%;
    max-width: 130%;
    margin-left: -15%;
  }
  .how-to-handle {
    display: none;
  }
}

@media (max-width: 767px) {
  html {
    overflow-y: hidden;
    max-height: 100vh !important;
    overflow: hidden !important;
  }
  body {
    overflow-y: auto !important;
    height: calc(var(--vh, 1vh) * 100);
  }
  header.site-header {
    z-index: 1034;
  }
  .panel-group-wrapper,
  .bg-element,
  .timeline-text b,
  .how-to-handle {
    display: none;
  }
  nav.timeline-nav li button:after {
    bottom: 50%;
    transform: translateY(50%);
    animation: none;
    opacity: 1;
    right: -5px;
  }
  .timeline-intro {
    /* margin-bottom: 9px; */
    /* margin-top: -7px; */
    display: none;
  }
  nav.timeline-nav {
    position: fixed;
    left: 0;
    padding: 5px 0px;
    /* background: #f5f5f5; */
    background: linear-gradient(180deg, #fff, #fff, #ffffff00);
    overflow: hidden;
    width: 100vw;
    top: 65px;
  }
  nav.timeline-nav li button {
    font-size: 15px;
  }
  nav.timeline-nav ul {
    width: 96%;
    justify-content: start;
    margin-left: 2%;
  }
  nav.timeline-nav ul:before {
    display: none;
  }
  nav.timeline-nav li button {
    padding: 10px;
    text-align: center;
    width: 80%;
    height: 100%;
    min-height: 50px;
    margin: auto;
  }
  nav.timeline-nav li:first-child button {
    margin-left: 0;
    width: 94%;
  }
  nav.timeline-nav li:last-child button {
    margin-right: 0;
    width: 94%;
  }
  nav.timeline-nav li {
    width: 100%;
    padding-left: 0px;
    padding-right: 0px;
  }
  div#stakeholder-nav {
    width: 100vw;
    display: flex;
    bottom: 0;
    padding: 10px 0px 4px 0px;
    background: linear-gradient(
      0deg,
      rgba(255, 255, 255, 1) 0%,
      rgba(255, 255, 255, 1) 70%,
      rgba(255, 255, 255, 0) 100%
    );
    justify-content: center;
  }
  div#stakeholder-nav .stakeholder-nav-item#stakeholder3:after {
    content: "";
    display: block;
    width: 25px;
    height: 25px;
    background: linear-gradient(to right, #c5f5e6, #d7f4eb, #ffe98b, #ffba78);
    position: absolute;
    top: 52%;
    right: -12px;
    transform: translateY(-50%);
    z-index: -1;
  }
  #intro-overlay {
    display: none;
  }
  section,
  section .outer,
  section .inner {
    all: unset;
    display: block;
    width: 100%;
    position: relative !important;
    height: auto !important;
    overflow: visible !important;
  }

  .bg {
    position: relative !important;
    height: auto !important;
  }
  .panel-tooltip {
    display: block !important;
    opacity: 1;
    top: 45px;
    width: 94%;
    max-width: 380px;
    line-height: 1.3em;
    position: relative;
    padding: 18px 25px;
    font-size: 15px;
  }
  .panel-tooltip b {
    float: left;
    margin-right: 8px;
    line-height: 1.3em;
    font-size: 15px;
  }
  html[lang="en"] .panel-tooltip b {
    line-height: 1.2em;
  }
  .panel-tooltip.panel-tooltip-2nd {
    bottom: -10px;
    top: auto;
    position: absolute;
  }

  .mobile-stakeholder-content,
  .mobile-stakeholder-col {
    display: block;
  }
  .mobile-panel-container {
    position: relative;
  }
  .mobile-stakeholder-content {
    display: none;
    padding: 14px;
    padding-top: 0px;
    padding-bottom: 240px;
    max-width: 100vw;
  }
  div#current-mobile-stakeholder-content {
    margin-top: 0px;
  }
  #overview-page-body .panel-group-wrapper,
  #overview-page-body .bg-element {
    display: none !important;
  }
  img.mobile-panel-img {
    max-width: 80%;
    margin: auto;
    display: block;
    width: 400px;
    margin-bottom: 20px;
  }
  .mobile-stakeholder-col {
    padding-top: 105px;
    width: 450px;
    max-width: 100%;
    margin-bottom: 0px;
    text-align: center;
    position: relative;
  }
  .mobile-stakeholder-col.no-image {
    padding-top: 20px;
  }
  .mobile-stakeholder-col h3 {
    margin-bottom: 20px;
    font-size: 26px;
  }
  section .bg {
    background: none !important;
  }
  .stakeholder-nav-item:hover:before {
    display: none;
  }

  #current-panel-5-tooltip-1.panel-tooltip::before {
    left: 35%;
  }
  #current-panel-5-tooltip-1.panel-tooltip::after {
    left: 37%;
  }
  .mobile-stakeholder-col:before {
    content: "";
    width: 250px;
    height: 250px;
    background: #eee;
    border-radius: 500px;
    position: absolute;
    top: 20%;
    right: 10%;
    z-index: -1;
    opacity: 0.4;
  }
  #current-mobile-stakeholder-content .mobile-stakeholder-col:before {
    background: #daf1ff;
  }
  .mobile-stakeholder-col.no-image:before {
    display: none;
  }

  div#past-panel-5-tooltip-1 {
    top: 20px;
  }
  .future-section-content {
    margin-top: 200px;
    background: #f4fbff;
    width: 90%;
    padding: 30px;
    border-radius: 16px;
    display: none;
    margin-right: 0;
  }
  .mobile-stakeholder-col:after {
    content: "";
    background: none;
    width: 100%;
    height: 2px;
    position: absolute;
    bottom: -60px;
    left: 0;
    border-bottom: 6px dotted #e1e1e1;
  }
  #mobile-stakeholder3-col-past.mobile-stakeholder-col:after,
  #mobile-stakeholder3-col-current.mobile-stakeholder-col:after {
    display: none;
  }
  .current .mobile-stakeholder-col:after {
    border-bottom: 6px dotted #d3eeff;
  }
}

@media (max-width: 500px) {
  div#stakeholder-nav .stakeholder-nav-item {
    width: 64px;
    margin: 2px;
  }
  .mobile-stakeholder-col h3 {
    font-size: 21px;
    margin-bottom: 10px;
  }
  img.mobile-panel-img {
    margin-top: 15px;
    max-width: 68%;
    margin-bottom: 12px;
  }
  nav.timeline-nav li button {
    font-size: 15px;
  }

  html[lang="en"] nav.timeline-nav li button {
    font-size: 14px;
  }
  .panel-tooltip.panel-tooltip-2nd {
    bottom: 0px;
  }
  nav.timeline-nav li button:after {
    width: 11px;
  }
  nav.timeline-nav li button {
    width: 90%;
  }
}

@media (max-width: 400px) {
  div#stakeholder-nav {
    left: 0;
    transform: translateX(0%);
    justify-content: start;
    overflow: auto;
  }
}
