
  #carouselExampleCaptions {
    background-color: #f8f9fa;
    width: 100%;
    z-index: 1000;
  }

  #carouselExampleCaptions .carousel-item img {
    object-fit: contain;
    width: 100%;
    height: 600px;
    /* 預設高度 */
  }


  /* 預設樣式 */
  .carousel-caption {
    position: absolute;
    border-radius: 2rem;
    width: 600px;
    background: rgba(233, 233, 233, 0.7);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    transform: translateY(-30%);
  }


  #banner-text h1 {
    font-size: 3rem;
    font-weight: bold;
    color: #0F1035;
    width: 100%;
    white-space: nowrap;
    /* 禁止文字換行 */
    text-align: center;
    /* 文字居中對齊 */
  }


  #banner-text p {
    margin-bottom: 0;
    color: #333;
    max-width: 700px;
    /* 限制最大寬度，確保適當換行 */
    margin: 0 auto;
    /* 讓文字區塊置中 */
    word-wrap: break-word;
    /* 避免長字超出 */
  }



  /* about-us */
  #about-us {
    padding: 80px 25px;
    text-align: left;
    background-color: #f8f9fa;
    background-image: url("data:image/svg+xml,%3Csvg width='5' height='5' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23333333' fill-opacity='0.2' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
  }

  #about-us img {
    border-radius: 20px 0px 0px 0px;
  }

  #about-us h2 {
    font-weight: 700;
    font-size: 2.5rem;
    color: #0F1035;
    line-height: 1.6;
  }

  #about-us p {
    font-size: 1.2rem;
    color: #333;
    line-height: 2;
    max-width: 800px;
    margin-bottom: 20px;
  }



  .custom-btn {
    background-color: #365486;
    color: white;
    font-size: 1.25rem;
    padding: 10px 40px;
    border-radius: 50px;
    transition: background-color 0.3s ease;
  }

  .custom-btn:hover {
    background-color: #0F1035;
    /* 懸停時背景顏色 */
    color: #ffffff;
    /* 懸停時文字顏色 */
  }


  /* service */
  #service {
    padding: 60px 72px;
    background-color: #555;
  }

  #service h2 {
    font-weight: 700;
    font-size: 2.5rem;
    color: #0f1035;
  }

  .service-item {
    padding: 20px;
  }

  .service-item h5 {
    font-weight: 600;
    color: #0f1035;
  }

  .service-item p {
    text-align: left;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
  }


  #certificate {
    padding: 25px;
    text-align: left;
  }

  #certificate h2 {
    font-weight: 700;
    font-size: 2.5rem;
    color: #0F1035;
    line-height: 1.6;
  }




  /* connect */
  #connect {
    position: relative;
    width: 100%;
    height: 100%;
    background-image: url('/img/connect.jpg');
    background-size: cover;
  }

  #connect::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    z-index: 1;
  }

  .connect-text {
    padding: 20%;
    z-index: 1;
  }

  .connect-text h3 {
    position: relative;
    color: #0F1035;
    text-align: center;
    z-index: 1;
  }

  .connect-text p {
    position: relative;
    color: #0F1035;
    text-align: center;
    z-index: 1;
  }

  @media (max-width: 1200px) {
    #carouselExampleCaptions .carousel-item img {
      height: 800px;
      /* 大螢幕以下，圖片高度適度縮小 */
    }

    .carousel-caption {
      transform: translateY(-30%);
      width: 500px;
      /* 當螢幕尺寸變小時，稍微增加寬度 */
      padding: 1rem;
    }

    #banner-text h1 {
      font-size: 2.5rem;
      margin: 0 20px;
      font-weight: bold;
      color: #0F1035;
      white-space: nowrap;
      /* 禁止文字換行 */
      text-align: start;
    }

    #banner-text p {
      margin: 5px 20px;
      color: #333;
      text-align: start;
    }

  }

  @media (max-width: 992px) {
    #carouselExampleCaptions .carousel-item img {
      height: 700px;
      /* 中型螢幕（例如平板）高度進一步縮小 */
    }

    .carousel-caption {
      transform: translateY(-40%);
      width: 400px;
      /* 當螢幕尺寸變小時，稍微增加寬度 */
      padding: 1rem;
    }

    #banner-text h1 {
      font-size: 2.5rem;
      font-weight: bold;
      color: #0F1035;
      white-space: nowrap;
      /* 禁止文字換行 */
      text-align: start;
    }

    #banner-text p {
      font-size: 1rem;
      margin: 5px 20px;
      color: #333;
      max-width: 280px;
      /* 限制最大寬度，確保適當換行 */
      word-wrap: break-word;
      /* 避免長字超出 */
      text-align: start;
    }

  }

  @media (max-width: 768px) {
    #carouselExampleCaptions .carousel-item img {
      height: 500px;
      /* 小型螢幕（如手機）的圖片高度 */
    }

    .carousel-caption {
      width: 350px;
      /* 手機設備下，讓容器寬度更大一些 */
      padding: 1rem;
    }

    #banner-text h1 {
      font-size: 2.1rem;
      font-weight: bold;
      color: #0F1035;
      white-space: nowrap;
      /* 禁止文字換行 */
      text-align: start;
      /* 文字居中對齊 */
    }

    #banner-text p {
      margin-bottom: 0;
      color: #333;
      margin: 5px 20px;
      max-width: 280px;
      /* 限制最大寬度，確保適當換行 */
      word-wrap: break-word;
      /* 避免長字超出 */
      text-align: start;
    }
  }


  /* 小於 576px 螢幕 (超小螢幕設備) */
  @media (max-width: 576px) {
    #carouselExampleCaptions .carousel-item img {
      height: 400px;
      /* 超小螢幕（手機豎版） */
    }

    .carousel-caption {
      width: 300px;
      /* 超小螢幕下，容器寬度接近螢幕寬度 */
      padding: 10px;
      transform: translateY(-10%);
      transform: translateX(-10%);
    }

    #banner-text h1 {
      font-size: 1.5rem;
      font-weight: bold;
      color: #0F1035;
      text-align: start;
    }

    #banner-text p {
      font-size: 14px;
      color: #333;
      margin: 5px 20px;
      max-width: 250px;
      /* 限制最大寬度，確保適當換行 */
      word-wrap: break-word;
      /* 避免長字超出 */
      text-align: start;
    }
  }
