/* welcome-section */
.welcome-section {
  background: linear-gradient(180deg, #00e0d3 0%, #00b8c4 100%);
  color: white;
  padding: 6rem 1rem 2rem;
  text-align: center;
  margin-top: 72px;
}

.welcome-content {
  max-width: 800px;
  margin: 0 auto;
}

.welcome-content h1 {
  font-size: 2.4rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.2);
  letter-spacing: 1px;
}

.welcome-content p {
  font-size: 1.2rem;
  color: #f5fafd;
}

.btn-primary {
  background: #ffffff;
  color: #00b8c4;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0ca39a, #0df4be);
  color: #fff;
  box-shadow: 0 0 10px rgba(13, 244, 190, 0.4);
}

/* footer */
.site-footer {
  background-color: #001f3f;
  color: #ffffff;
  padding: 2rem 1rem;
  text-align: center;
  margin-top: 0rem;
  border-top: 1px solid #333;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
  padding: 0;
}

.footer-links li {
  list-style: none;
}

.footer-links a {
  color: #ccc;
  font-size: 0.9rem;
  transition: color 0.3s;
  text-decoration: none;
}

.footer-links a:hover {
  color: #0df4be;
}

/* 🔹 歡迎區塊 */
.welcome-section {
  padding: 6rem 1rem 2rem;
  text-align: center;
  background-color: #fff;
  color: #000;
  margin-top: 72px;
}

/* 🔹 輪播圖區塊 */
.promo-carousel {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 1rem;
}

.promo-carousel .carousel-inner img {
  border-radius: 8px;
  object-fit: contain;
  max-height: 500px;
  width: 100%;
}

/* 輪播控制按鈕 */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  padding: 1.2rem;
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
}

.features-section {
  background: linear-gradient(to bottom,  #f2fcfc, #ffffff 100%);
  padding: 4rem 1rem;
  color: #000;
}

.features-section .container {
  max-width: 1200px;
  margin: 0 auto;
}

.features-title h2,
.features-note h2 {
  display: inline-block;
  padding-bottom: 0.3rem;
  margin-bottom: 0.8rem;
  color: #00b8c4;
  border-bottom: 2px solid #00e0d3;
  margin-top: 1.5rem;
}


.features-title .subtitle,
.features-note .subtitle {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 2rem;
}

.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.feature-item {
  background: #fff;
  border-radius: 10px;
  padding: 1.5rem;
  flex: 1 1 calc(25% - 1rem);
  text-align: center;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  min-width: 200px;
}

.feature-item img {
  height: 40px;
  margin-bottom: 0.75rem;
}

.feature-item h3 {
  font-size: 1.1rem;
  color: #00b6b6;
  margin-bottom: 0.25rem;
}

.feature-item p {
  font-size: 0.9rem;
  color: #333;
}

.features-note ol {
  margin-top: 1rem;
  padding-left: 1.5rem;
  line-height: 1.8;
}

.features-note ol li {
  margin-bottom: 0.75rem;
}

/* ⬅️ Feature 橫向排列 */
.feature-item.horizontal {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 1rem;
  flex: 1 1 100%;
}

.feature-item.horizontal img {
  width: 80px;
  height: auto;
  margin-bottom: 0; /* 移除預設下方空間 */
}

.feature-item.horizontal .text h3 {
  font-size: 1.1rem;
  color: #00b6b6;
  margin-bottom: 0.25rem;
}

.feature-item.horizontal .text p {
  font-size: 0.9rem;
  color: #333;
}

.feature-item.horizontal {
  display: flex;
  align-items: center;
  justify-content: center; /* ✅ 水平置中整組 */
  gap: 1rem;
  flex: 1 1 100%;
  text-align: left;
}

.feature-item.horizontal img {
  width: 80px;
  height: auto;
  flex-shrink: 0;
  margin-bottom: 0;
}

.feature-item.horizontal .text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.feature-item.horizontal .text h3 {
  font-size: 1.1rem;
  color: #00b6b6;
  margin: 0 0 0.25rem;
}

.feature-item.horizontal .text p {
  font-size: 0.9rem;
  color: #333;
  margin: 0;
}

/* ✅ 手機版改為上下排列 */
@media (max-width: 768px) {
  .feature-item.horizontal {
    flex-direction: column;
    text-align: center;
  }

  .feature-item.horizontal img {
    margin-bottom: 0.5rem;
  }

  .feature-item.horizontal .text {
    align-items: center;
  }

  .cert-logos {
    display: flex;
    gap: 1rem;
    justify-content: flex-start; /* ✅ 圖片靠左 */
    flex-wrap: wrap;
    margin-top: 1rem;
  }

  .cert-logos img {
    width: 80px;              /* ✅ 縮小圖片尺寸 */
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
  }

  .cert-logos img:hover {
    transform: scale(1.05);
  }

      .welcome-section {
      padding: 80px 16px;
    }

    .welcome-section h1 {
      font-size: 2rem;
    }

    .welcome-section p {
      font-size: 1rem;
    }
    .cert-logos img {
      width: 70px;            /* 📱 手機上更小 */
    }
}