/* observatory - hero section */
.hero.hero-observatory {
  height: 100svh;
}

.hero.hero-observatory .hero-container .hero-img-container .hero-img {
  filter: saturate(0);
}

.hero.hero-observatory .hero-container .hero-img-container .hero-img-gradient {
  background: rgb(0, 0, 0);
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.25) 0%,
    rgba(0, 0, 0, 0) 100%
  );
  z-index: 1;
}

.hero.hero-observatory .hero-container .hero-content .container {
  color: var(--base-100);
}

/* observatory - intro section */
.intro.intro-observatory {
  margin: 3rem 0;
}

/* observatory - routine section */
.routine {
  position: relative;
  width: 100%;
  height: 100svh;
  height: 100vh;
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background-color: #e3e3db;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-blend-mode: overlay;
}

.routine:after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    url("Images/old-wall.png"),
    url("Images/asfalt-dark.png");
  background-blend-mode: multiply;
  opacity: 0.6;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 1;
}

.routine .routine-container .routine-bg {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: var(--base-300);
  clip-path: polygon(
    4rem 0px,

    calc(50% - 15rem) 0px,
    calc(50% - 13.5rem) 2.75rem,
    calc(50% + 13.5rem) 2.75rem,
    calc(50% + 15rem) 0px,

    calc(100% - 4rem) 0px,
    100% 4rem,

    100% calc(100% - 4rem),
    calc(100% - 4rem) 100%,

    4rem 100%,
    0px calc(100% - 4rem),
    0px 4rem
  );
}

.routine .routine-container .routine-copy {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.routine .routine-container .routine-copy .container {
  padding: 6rem;
}

.routine .routine-container .routine-copy .container .routine-header {
  width: 100%;
  text-align:center;
}

.routine .routine-container .routine-copy .container .routine-progress-bar {
  position: relative;
  width: 100%;
  height: 0.25rem;
  background-color: #3f3f3f;
  margin: 1.5rem 0;
  overflow: hidden;
}

.routine
  .routine-container
  .routine-copy
  .container
  .routine-progress-bar
  .routine-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--base-500);
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

.routine .routine-container .routine-copy .container .routine-slider {
  width: 100%;
  height: calc(100% - 10rem);
  overflow: hidden;
}

.routine
  .routine-container
  .routine-copy
  .container
  .routine-slider
  .routine-slider-wrapper {
  position: relative;
  width: 607%;
  height: 100%;
  transform: translateX(0%);
  display: flex;
  gap: 1.5rem;
  will-change: transform;
}

.routine
  .routine-container
  .routine-copy
  .container
  .routine-slider
  .routine-slider-wrapper
  .routine-block {
  position: relative;
  flex: 1;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.routine
  .routine-container
  .routine-copy
  .container
  .routine-slider
  .routine-slider-wrapper
  .routine-block
  .routine-block-header,
.routine
  .routine-container
  .routine-copy
  .container
  .routine-slider
  .routine-slider-wrapper
  .routine-block
  .routine-block-footer {
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.routine
  .routine-container
  .routine-copy
  .container
  .routine-slider
  .routine-slider-wrapper
  .routine-block
  .routine-block-header {
  align-items: flex-start;
}

.routine
  .routine-container
  .routine-copy
  .container
  .routine-slider
  .routine-slider-wrapper
  .routine-block
  .routine-block-footer {
  align-items: flex-end;
}

.routine
  .routine-container
  .routine-copy
  .container
  .routine-slider
  .routine-slider-wrapper
  .routine-block
  .routine-block-header
  p:nth-child(2) {
  color: var(--base-200);
}
.routine {
  .routine-container {
    .routine-copy {
      .container {
        .routine-slider {
          .routine-slider-wrapper {
            .routine-block {
              .routine-icon1,
              .routine-icon2,
              .routine-icon3,
              .routine-icon4,
              .routine-icon5,
              .routine-icon6 {
                position: absolute;
                top: 50%;
                left: 70%;
                transform: translate(-50%, -50%);
                width: 30%;
                min-width: 5rem;
                aspect-ratio: 1;
              }
            }
          }
        }
      }
    }
  }
}

/* Responsive for all icons */
@media (max-width: 768px) {
  .routine {
    .routine-container {
      .routine-copy {
        .container {
          .routine-slider {
            .routine-slider-wrapper {
              .routine-block {
                .routine-icon2 {
                  top: 70%;
                  left: 10%;
                  width: 80%; /* Adjust as needed */
                  transform: translate(0, -50%);
                }
              }
            }
          }
        }
      }
    }
  }

    .routine {
    .routine-container {
      .routine-copy {
        .container {
          .routine-slider {
            .routine-slider-wrapper {
              .routine-block {
                .routine-icon3 {
                  top: 80%;
                  left: 5%;
                  width: 65%; /* Adjust as needed */
                  transform: translate(0, -50%);
                }
              }
            }
          }
        }
      }
    }
  }


    .routine {
    .routine-container {
      .routine-copy {
        .container {
          .routine-slider {
            .routine-slider-wrapper {
              .routine-block {
                .routine-icon3 {
                  top: 80%;
                  left: 5%;
                  width: 75%; /* Adjust as needed */
                  transform: translate(0, -50%);
                }
              }
            }
          }
        }
      }
    }
  }

      .routine {
    .routine-container {
      .routine-copy {
        .container {
          .routine-slider {
            .routine-slider-wrapper {
              .routine-block {
                .routine-icon5 {
                  top: 50%;
                  left: 5%;
                  width: 65%; /* Adjust as needed */
                  transform: translate(0, -50%);
                }
              }
            }
          }
        }
      }
    }
  }

        .routine {
    .routine-container {
      .routine-copy {
        .container {
          .routine-slider {
            .routine-slider-wrapper {
              .routine-block {
                .routine-icon6 {
                  top: 65%;
                  left: 20%;
                  width: 65%; /* Adjust as needed */
                  transform: translate(0, -50%);
                }
              }
            }
          }
        }
      }
    }
  }
  .routine {
    .routine-container {
      .routine-copy {
        .container {
          .routine-slider {
            .routine-slider-wrapper {
              .routine-block {
                .routine-icon1,
                .routine-icon4
               {
                  top: 80%;
                  left: 17%;
                  width: 50%; /* Adjust as needed */
                  transform: translate(0, -50%);
                }
              }
            }
          }
        }
      }
    }
  }
}

.routine
  .routine-container
  .routine-copy
  .container
  .routine-slider
  .routine-slider-wrapper
  .routine-block
  .routine-icon
  img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* observatory - about section */
.about {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.about .container .about-header {
  display: flex;
  flex-direction: column;
}

.about .container .about-header .about-header-row {
  display: flex;
}

.about .container .about-header .about-header-row:nth-child(2) {
  justify-content: space-around;
  padding-left: 10rem;
}

.about .container .about-header .about-header-row:nth-child(3) {
  justify-content: space-between;
}

.about .container .about-header .about-header-row:nth-child(4) {
  justify-content: center;
  padding-left: 4rem;
}

.about .container .about-map {
  width: 75%;
  margin: 2rem auto;
  height: 100%;
}

/* observatory - team section */
.team {
  position: relative;
  width: 100%;
  height: 100svh;
  overflow: hidden;
}

.team .team-counter {
  position: absolute;
  display: flex;
  width: 100%;
  gap: 1.5rem;
  justify-content: space-between;
  margin-top: 0;
  padding: 1.5rem;
}

.team .team-counter .counter-title h1 {
  position: relative;
  top: 0.75rem;
  line-height: 0.85 !important;
}

.team .team-counter .count {
  position: relative;
  width: max-content;
  height: 150px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
  overflow: hidden;
}

.team .team-counter .count .count-container {
  position: relative;
  transform: translateY(150px);
  will-change: transform;
}

.team .team-counter h1 {
  width: 100%;
  position: relative;
  text-transform: uppercase;
  font-size: 150px;
  line-height: 1;
  will-change: transform;
}

.team .cards {
  position: absolute;
  top: 25%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150vw;
  height: 600px;
  will-change: transform;
}

.team .cards .card {
  position: absolute;
  width: 425px;
  height: 575px;
  left: 50%;
  top: 50%;
  transform-origin: center center;
  margin-left: -250px;
  display: flex;
  flex-direction: column;
  gap: 1em;
  will-change: transform;
}

.team .cards .card .card-img {
  flex: 1;
  border-radius: 0.5rem;
  overflow: hidden;
}

.team .cards .card .card-img img {
  filter: saturate(0) sepia(1) brightness(0.85);
}

.team .cards .card .card-content {
  width: 100%;
  height: 60px;
}

.team .cards .card .card-content h3 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  letter-spacing: clamp(0rem, -0.5vw, -0.05rem);
  margin-bottom: 0.5rem;
  color: var(--base-100);
}

.team .cards .card .card-content p {
  color: var(--base-200);
}

.team .empty {
  opacity: 0;
}

/* observatory - media queries */
@media (max-width: 1000px) {
  .intro.intro-observatory .container .intro-copy {
    flex-direction: column;
  }

  .routine .routine-container .routine-bg {
    clip-path: none;
  }

  .routine .routine-container .routine-copy .container {
    padding: 6rem 1rem 1rem 1rem;
  }

  .routine .routine-container .routine-copy .container .routine-header {
    align-items: flex-end;
  }

  .routine
    .routine-container
    .routine-copy
    .container
    .routine-slider
    .routine-slider-wrapper {
    width: calc(600% + 7.5rem);
  }

  .routine
    .routine-container
    .routine-copy
    .container
    .routine-slider
    .routine-slider-wrapper
    .routine-block
    .routine-block-header,
  .routine
    .routine-container
    .routine-copy
    .container
    .routine-slider
    .routine-slider-wrapper
    .routine-block
    .routine-block-footer {

  }

  .routine
    .routine-container
    .routine-copy
    .container
    .routine-slider
    .routine-slider-wrapper
    .routine-block
    .routine-block-footer
    p:nth-child(2) {
    display: none;
  }

  .about .container .about-header .about-header-row:nth-child(2) {
    padding-left: 0;
    flex-direction: column;
    align-items: flex-end;
  }

  .about .container .about-map {
    width: 100%;
  }

  .team .team-counter {
    margin: 6rem 1rem 1rem 1rem;
    padding: 0;
  }

  .team .team-counter .counter-title {
    height: 30px;
  }

  .team .team-counter .count {
    padding-right: 2rem;
  }

  .team .cards {
    top: 27.5%;
  }

  .team .cards .card {
    width: 375px;
    height: 500px;
  }

  .team .team-counter .counter-title h1 {
    font-size: clamp(4.5rem, 10vw, 10rem);
  }
}
/* Add to your existing CSS */
.routine-block .icon-content {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.routine-block .chinese-char {
  font-size: 4rem;
  color: var(--base-100);
  opacity: 0.9;
}
    .chinese-gene {
      font-family: 'Yuji Boku', serif;
      writing-mode: vertical-rl;
      text-orientation: upright;
      font-size: 20px;
      line-height: 1.8;
    }
.routine-block .routine-block-footer p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--base-300);
  margin-top: 1rem;
  text-align: justify;
}
/* Mobile: no padding, no line */
.routine-para {
  position: relative;
  padding-left: .5rem;
}

/* Desktop: add padding and vertical line */
@media screen and (min-width: 1000px) {
  .routine-para {
    font-size: 1.2rem;
    padding-left: 2rem; /* space for the line */
  }


}
  .routine-para::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px; /* line thickness */
    background-color: var(--base-500); /* line color */
  }

.routine-block .routine-block-footer h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--base-100);
}

.routine-header p {
  color: var(--base-200);
  font-size: 1.1rem;
  margin-top: 0.3rem;
}

/* For mobile responsiveness */
@media (max-width: 1000px) {
  .routine-block .chinese-char {
    font-size: 3rem;
  }


  .routine-block .routine-block-footer p {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .routine-block .routine-block-footer h3 {
    font-size: 1.3rem;
  }
}
.routine-one-img
{
object-fit:contain;
}