/* header  ***************************************************/
.page-node-type-digi-basic-page header .header-left::before {  
  background: linear-gradient(90deg, #DDB0FF 60%, #00B1EC 100%);
}
.page-node-type-digi-basic-page .service-hotline-content {
  background: linear-gradient(90deg, #DCB0FF 0%, rgba(0, 177, 236, 0.10) 90%);
}
@media (min-width: 1200px) {
  #block-i2-theme-digimainnavigation {
    border-bottom-left-radius: 30px;
    background-color: var(--color-blue);
    padding-left: 18px;
    padding-right: calc(var(--bs-gutter-x) * 0.5);
    position: relative;
  } 

  #block-i2-theme-digimainnavigation .nav-item>.nav-link {
    color: #fff;
    font-size: 18px;
    line-height: 1;
    padding: 16px 22px;
    transition: all 0.2s ease;
  }

  #block-i2-theme-digimainnavigation .nav-item>.nav-link:hover,
  #block-i2-theme-digimainnavigation .nav-item>.nav-link:focus {
    color: var(--color-lightgray);
  }

  body.scroll-fixed #block-i2-theme-digimainnavigation .nav-item>.nav-link {
    font-size: 16px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
}

/* digi logo */
#block-i2-theme-digilogo {
  text-align: right;
  padding-right: calc(var(--bs-gutter-x) * 0.5);
}
#block-i2-theme-digilogo::before {
  background-color: #fff;
  border-radius: 50%;
  content: '';
  display: block;
  width: 460px;
  height: 460px;
  filter: blur(100px);
  position: absolute;
  right: 0;
  top: -260px;
  z-index: -1;
}
#block-i2-theme-digilogo .sub-logo {
  display: inline-block;
  margin-top: 20px;
  margin-right: 24px;
}

/* Mobile Menu  ***************************************************/
.page-node-type-digi-basic-page .offcanvas-menu-top .btn-close {
  background-color: #DCB0FF;
}

/* footer  ***************************************************/
#block-i2-theme-digimainnavigation-2 {
  margin-left: auto;
}

/* === Sidebar Back ================================================== */
.page-node-type-digi-basic-page #block-i2-theme-sidebarrequestservice a.sidebar-back-request-service {  
  background: #DCB0FF;  
}
.page-node-type-digi-basic-page #block-i2-theme-sidebarrequestservice a.sidebar-back-request-service:hover,
.page-node-type-digi-basic-page #block-i2-theme-sidebarrequestservice a.sidebar-back-request-service:focus {
  background: #00B1EC;
}
/* Back to top button */
.page-node-type-digi-basic-page .sidebar-back-to-top {
  background-color: #00B1EC;
}
.page-node-type-digi-basic-page .sidebar-back-to-top:hover,
.page-node-type-digi-basic-page .sidebar-back-to-top:focus {
  background-color: #DCB0FF;
}

/* index Css Document  ***************************************************/
/* banner */
.page-node-type-digi-basic-page .paragraph--type--banner .bannerSwiper-content--shared {
  background: url(../images/icon/home_banner_contentbg_pink.svg) left top no-repeat;  
}
.page-node-type-digi-basic-page .paragraph--type--banner .bannerSwiper-content--shared::before {
  background-image: linear-gradient(180deg, #DCB0FF 10px, rgba(220, 176, 255, 0.00) 98%);  
}
/* 定義自訂屬性並指定型別為顏色 */
@property --color-start {
  syntax: '<color>';
  inherits: false;
  initial-value: #DDB0FF;
}
.page-node-type-digi-basic-page .paragraph--type--banner .bannerSwiper-content--shared .bannerSwiper-content-button a {  
  background-image: linear-gradient(to right, var(--color-start) 20%, #00B1EC 84%);
  /* transition: all 0.2s ease; */
  transition: --color-start 0.3s ease, all 0.2s ease;
}
.page-node-type-digi-basic-page .paragraph--type--banner .bannerSwiper-content--shared .bannerSwiper-content-button a:hover,
.page-node-type-digi-basic-page .paragraph--type--banner .bannerSwiper-content--shared .bannerSwiper-content-button a:focus {
  --color-start: #00B1EC;  
}
.page-node-type-digi-basic-page .paragraph--type--banner .bannerSwiper-button-next {
  background: #00B1EC url(../images/icon/arrow_30x30.svg) center center no-repeat;
}

.page-node-type-digi-basic-page .paragraph--type--banner .bannerSwiper-button-prev {
  background: #00B1EC url(../images/icon/arrow_30x30.svg) center center no-repeat;
  transform: scaleX(-1);
}
.page-node-type-digi-basic-page .paragraph--type--banner .bannerSwiper-button-next:hover,
.page-node-type-digi-basic-page .paragraph--type--banner .bannerSwiper-button-next:focus,
.page-node-type-digi-basic-page .paragraph--type--banner .bannerSwiper-button-prev:hover,
.page-node-type-digi-basic-page .paragraph--type--banner .bannerSwiper-button-prev:focus {
  background-color: #DCB0FF;
}
.page-node-type-digi-basic-page .paragraph--type--banner .bannerSwiper-content--shared {
  max-width: 52%;
}
.page-node-type-digi-basic-page .paragraph--type--banner .bannerSwiper-hero {
  margin-bottom: 0;
}

/* digi intro section */
.digi-intro-section {
  background: url(../images/background/digi-intro-section-bg.jpg) left top no-repeat;
  background-size: min(43vw, 620px) auto;
  padding-top: 84px;
  padding-bottom: 150px;  
}

/* Digitalisation Timeline ***************************************************/
.paragraph--type--timeline.timeline {  
  --timeline-navy: #163A8F;  
  --timeline-progress: 0;
  /* background-color: var(--timeline-navy);
  border-top-right-radius: 40px;
  border-bottom-left-radius: 40px;
  color: #fff; */  
  /* overflow: hidden;
  padding: 48px 40px 56px;
  position: relative; */
}

/* Timeline Background */
.paragraph--type--timeline .timeline__inner {
  position: relative;
}
.paragraph--type--timeline .timeline__inner::before {
  background: #1E3E87 url(../images/background/digitalisation_timeline_bg.jpg) no-repeat;    
  background-size: 100% auto;  
  background-attachment: fixed;  
  border-radius: 0 80px 80px 0;
  content: '';
  position: absolute;
  inset: 105px calc(var(--bs-gutter-x) * 0.5) 100px 0;
  z-index: 1;
}
.paragraph--type--timeline .timeline__inner::after {
  border-bottom-left-radius:120px;
  background: linear-gradient(90deg, #DCB0FF 59.22%, #F8EFFF 100%);
  content: '';
  position: absolute;
  inset: 375px 0 0 calc(var(--bs-gutter-x) * 0.5);
  z-index: 0;
}
@media (min-width: 1540px) {
  .paragraph--type--timeline .timeline__inner::after {
    left: calc(50% - 720px);
  }
}

/* Header */
.paragraph--type--timeline .timeline__header {  
  position: initial;
}
.paragraph--type--timeline .timeline__title {
  background: url(../images/icon/title_stroke_digi.svg) center bottom no-repeat;
  color: #151B74;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  padding-left: 15px;
  padding-right: 15px;
  padding-bottom: 26px;
  margin-bottom: 40px;
  position: relative;
}
/* .paragraph--type--timeline .timeline__title-accent {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin: 0 auto;
}
.paragraph--type--timeline .timeline__title-accent::before,
.paragraph--type--timeline .timeline__title-accent::after {
  border-radius: 2px;
  content: '';
  display: block;
  height: 4px;
  width: 36px;
}
.paragraph--type--timeline .timeline__title-accent::before {
  background-color: var(--timeline-cyan);
}
.paragraph--type--timeline .timeline__title-accent::after {
  background-color: var(--timeline-purple);
} */

/* Body + spine */
.paragraph--type--timeline .timeline__body {
  /* background-color: var(--timeline-navy); */
  max-width: 1440px;
  margin: 0 auto 100px;
  padding: 50px 40px;
  position: relative;
  z-index: 2;
}
.paragraph--type--timeline .timeline__spine {
  background-color: #fff;
  bottom: 0;
  left: 50%;
  position: absolute;
  top: 0;
  transform: translateX(-50%) scaleY(var(--timeline-progress));
  transform-origin: top center;
  width: 4px;
  z-index: 1;
}

.paragraph--type--timeline .timeline__items {
  display: flex;
  flex-direction: column;
  gap: 56px;
  position: relative;
  z-index: 2;
}

.paragraph--type--timeline .timeline__items > div {
  margin: 0;
}

/* Timeline item row */
.paragraph--type--timeline-item.timeline-item {
  margin: 0;
}

.paragraph--type--timeline-item .timeline-item__row {  
  display: grid;  
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas: 'meta node content';
  align-items: flex-start;  
  position: relative;
}

.paragraph--type--timeline-item.timeline-item--side-right .timeline-item__row {
  grid-template-areas: 'content node meta';
}

/* Meta (time + theme) */
.paragraph--type--timeline-item .timeline-item__meta {
  color: #fff;
  text-align: right;
  grid-area: meta;
  padding-right: 13px;
}
.paragraph--type--timeline-item.timeline-item--side-right .timeline-item__meta {
  text-align: left;
  padding-left: 13px;
}
.paragraph--type--timeline-item .field--name-field-time {  
  font-size: calc(var(--font-size-lg) + 2px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}
.paragraph--type--timeline-item .field--name-field-theme {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

/* Node on spine */
.paragraph--type--timeline-item .timeline-item__node {
  grid-area: node;
  border-radius: 50px;
  width: 24px;
  height: 24px;
  position: relative;  
  z-index: 3;
}
.paragraph--type--timeline-item.timeline-item--accent-cyan .timeline-item__node::after {  
  background-color: #00B1EC;
}
.paragraph--type--timeline-item.timeline-item--accent-purple .timeline-item__node::after {
  background-color: #DCB0FF;
}
/* .paragraph--type--timeline-item .timeline-item__node::before {
  background-color: #fff;
  content: '';
  height: var(--timeline-spine-width);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
}
 */
.paragraph--type--timeline-item .timeline-item__node::after {
  border-radius: 50%;  
  content: '';
  display: block;
  height: 100%;
  position: relative;
  transition: all 0.35s ease;
  width: 100%;
  z-index: 1;
}
/* .paragraph--type--timeline-item.is-active .timeline-item__node::after {
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.45);
  filter: contrast(2);
} */

/* Content card */
.paragraph--type--timeline-item .timeline-item__content {
  grid-area: content;
  position: relative;
}
.paragraph--type--timeline-item .timeline-item__content > .field {  
  background: linear-gradient(90deg, #FAFDFF 4%, #B6E7FF 97%);
  border: 1px solid #3FB5E8;
  border-left: none;
  border-radius: 0 20px 20px 0;
  color: #1a1a1a;
  margin-left: -10px;
  padding: 30px;
  position: relative;
}
.paragraph--type--timeline-item.timeline-item--side-right .timeline-item__content > .field {
  background: linear-gradient(90deg, #FAFDFF 4%, #F3DBFF 97%);
  border: 1px solid #3FB5E8;
  border-right: none;
  border-radius: 20px 0 0 20px;
  margin-left: 0;
  margin-right: -11px;
}

.paragraph--type--timeline-item .timeline-item__content > .field::after {
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.paragraph--type--timeline-item.timeline-item--side-left .timeline-item__content > .field::after {
  content: '»';
  right: 14px;
}

.paragraph--type--timeline-item.timeline-item--side-right .timeline-item__content > .field::after {
  content: '«';
  left: 14px;
}

.paragraph--type--timeline-item.timeline-item--accent-cyan .timeline-item__content > .field::after {
  color: var(--timeline-cyan);
}

.paragraph--type--timeline-item.timeline-item--accent-purple .timeline-item__content > .field::after {
  color: var(--timeline-purple);
}

.paragraph--type--timeline-item .field--name-field-content p {
  color: #333;
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 12px;
}

.paragraph--type--timeline-item .field--name-field-content p:last-child {
  margin-bottom: 0;
}

.paragraph--type--timeline-item .field--name-field-content img {
  border-radius: 8px;
  display: block;
  height: auto;
  margin-top: 16px;
  max-width: 100%;
  width: 100%;
}

/* Scroll reveal */
.paragraph--type--timeline-item .timeline-item__meta,
.paragraph--type--timeline-item .timeline-item__content {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.paragraph--type--timeline-item.timeline-item--side-left .timeline-item__meta {
  transform: translateX(-40px);
}

.paragraph--type--timeline-item.timeline-item--side-left .timeline-item__content {
  transform: translateX(40px);
}

.paragraph--type--timeline-item.timeline-item--side-right .timeline-item__meta {
  transform: translateX(40px);
}

.paragraph--type--timeline-item.timeline-item--side-right .timeline-item__content {
  transform: translateX(-40px);
}

.paragraph--type--timeline-item .timeline-item__node::after {
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.35s ease;
}

.paragraph--type--timeline-item.is-visible .timeline-item__meta,
.paragraph--type--timeline-item.is-visible .timeline-item__content {
  opacity: 1;
  transform: translateX(0);
}

.paragraph--type--timeline-item.is-visible .timeline-item__node::after {
  opacity: 1;
  transform: scale(1);
}

/* .paragraph--type--timeline-item.is-visible.is-active .timeline-item__node::after {
  transform: scale(1.35);
} */

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .paragraph--type--timeline .timeline__spine {
    transform: translateX(-50%) scaleY(1);
  }

  .paragraph--type--timeline-item .timeline-item__meta,
  .paragraph--type--timeline-item .timeline-item__content,
  .paragraph--type--timeline-item .timeline-item__node::after {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/**************************************************************/
/* Media Query ************************************************/
@media screen and (max-width: 1499px) {

  /* header  ***************************************************/
  #block-i2-theme-digimainnavigation .nav-item>.nav-link {
    padding: 16px;
  }
}

@media screen and (max-width: 1299px) {
  /* header  ***************************************************/
  #block-i2-theme-digimainnavigation .nav-item>.nav-link {
    font-size: 16px;
    padding: 12px;
  }
}

@media screen and (max-width: 1199.98px) {
  /* header  ***************************************************/
  #block-i2-theme-digimainnavigation .navbar-nav {
    margin-top: 30px;
  }
  #block-i2-theme-digimainnavigation .nav-item>.nav-link {
    display: flex;
    align-items: center;
    width: 100%;
    color: #fff;
    font-size: 26px;
    line-height: 1;
    padding: 20px 0;
    border: none;
    background: transparent;
  }
  /* digi logo */
  #block-i2-theme-digilogo {
    padding-left: calc(var(--bs-gutter-x) * 0.5);
    padding-right: 0;
    position: absolute;
    top: 100px;
    left: 0;
  }
  #block-i2-theme-digilogo::before {
    right: -100px;
    top: -350px;
  }
  #block-i2-theme-digilogo .sub-logo img {
    height: 60px;
  }

  /* index Css Document  ***************************************************/
  /* banner */
  .page-node-type-digi-basic-page .paragraph--type--banner .bannerSwiper-slide-image-desktop,
  .page-node-type-digi-basic-page .paragraph--type--banner .bannerSwiper-slide-video {    
    aspect-ratio: 1920 / 900;
  }
  .page-node-type-digi-basic-page .paragraph--type--banner .bannerSwiper-content--shared {
    max-width: 80%;
  }

  /* Digitalisation Timeline ***************************************************/
  .paragraph--type--timeline.timeline {
    border-bottom-left-radius: 24px;
    border-top-right-radius: 24px;
    padding: 32px 20px 40px;
  }

  .paragraph--type--timeline .timeline__header {
    margin-bottom: 32px;
  }

  .paragraph--type--timeline .timeline__spine {
    left: 20px;
    transform: translateX(0) scaleY(var(--timeline-progress));
  }

  .paragraph--type--timeline .timeline__items {
    gap: 40px;
    padding-left: 44px;
  }

  .paragraph--type--timeline-item .timeline-item__row {
    column-gap: 16px;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      'node meta'
      'node content';
    row-gap: 16px;
  }

  .paragraph--type--timeline-item.timeline-item--side-right .timeline-item__row {
    grid-template-areas:
      'node meta'
      'node content';
  }

  .paragraph--type--timeline-item .timeline-item__meta {
    text-align: left;
  }

  .paragraph--type--timeline-item .timeline-item__node::before {
    display: none;
  }

  .paragraph--type--timeline-item.timeline-item--side-left .timeline-item__meta,
  .paragraph--type--timeline-item.timeline-item--side-left .timeline-item__content,
  .paragraph--type--timeline-item.timeline-item--side-right .timeline-item__meta,
  .paragraph--type--timeline-item.timeline-item--side-right .timeline-item__content {
    transform: translateY(20px);
  }

  .paragraph--type--timeline-item.is-visible .timeline-item__meta,
  .paragraph--type--timeline-item.is-visible .timeline-item__content {
    transform: translateY(0);
  }

  .paragraph--type--timeline-item .timeline-item__content > .field,
  .paragraph--type--timeline-item.timeline-item--side-right .timeline-item__content > .field {
    padding: 20px 36px 20px 20px;
  }

  .paragraph--type--timeline-item.timeline-item--side-right .timeline-item__content > .field::after {
    left: auto;
    right: 14px;
  }

  /* footer  ***************************************************/
  #block-i2-theme-digimainnavigation-2 {
    margin-left: 0;
  }
}

@media screen and (max-width: 991px) {
  /* index Css Document  ***************************************************/
  /* digi intro section */
  .digi-intro-section {
    background-size: min(60vw, 620px) auto;
  }  
}

@media screen and (max-width: 767px) {
  /* index Css Document  ***************************************************/
  /* banner */
  .page-node-type-digi-basic-page .paragraph--type--banner .bannerSwiper-content--shared {
    max-width: none;
  }
  /* digi intro section */
  .digi-intro-section {
    background-size: min(80vw, 620px) auto;
  }
}