/* JCAATs 3.5 Banner CSS - Swiper Carousel Enhanced */

/* @import url("https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.css"); */
/*
.banner-header {
  background: linear-gradient(to right, #fef6e4, #e0f2df);
  padding: 40px 0;
  font-family: 'Noto Sans TC', sans-serif;
}

.banner-header {
  background: linear-gradient(to right, #fef6e4, #e0f2df);
  padding: 60px 40px;
  font-family: 'Noto Sans TC', sans-serif;
  color: #1d2b1f;
  position: relative;
  overflow: hidden;
}
*/
.banner-header {
  background-color: #003366;
  color: #ffffff;
  padding: 60px 40px;
  /* font-family: 'Noto Sans TC', sans-serif; */
  position: relative;
  overflow: hidden;
}

/* .swiper {
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
} */
/* margin-top will be dynamically inserted by JS */

/*
.swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  min-height: 400px;
}
*/
/* .swiper-slide {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  min-height: 400px;
} */


.swiper-slide.blue-banner {
  background: url('../images/JCAATs_Product_Banner_1.png') no-repeat center;
  background-size: cover;
  background-position: center;
  color: white;
}


/*
.swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  min-height: 400px;

  background: linear-gradient(to right, #003366, #001f3f);
  color: white;
}


.banner-image {
  flex: 1 1 500px;
  text-align: center;
  max-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.banner-image img {
  max-height: 100%;
  width: auto;
  height: auto;
}


.banner-image {
  flex: 1 1 50%;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible; 
  max-width: 100%;
  max-height: 300px;
}
.banner-image img {
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain; 
  max-width: 500px; 
}
*/
.banner-image {
  flex: 1 1 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;             /* ✅ 建議保留 hidden，避免圖片外溢 */
  max-height: 280px;            /* ✅ 減少高度，讓畫面更緊湊 */
  padding: 10px;                /* ✅ 圖像周圍稍微留白，不擠壓 */
}

.banner-image {
  aspect-ratio: 16 / 9;
  max-height: 360px;
  overflow: hidden;
}

.banner-image img {
  max-width: 100%;             /* ✅ 自動適應 container 寬度 */
  max-height: 100%;            /* ✅ 自動壓縮高度以不超過區塊 */
  width: auto;
  height: auto;
  object-fit: contain;         /* ✅ 避免被裁切 */
}


.banner-feature {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.banner-text {
  flex: 1 1 500px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.label-box {
  display: inline-block;
  background-color: #d9f99d;
  color: #166534;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 14px;
}

.banner-sub {
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}
/*
.banner-text h1 {
  font-size: 32px;
  font-weight: 800;
  color: #065f46;
  margin: 0;
  line-height: 1.4;
}
*/
.banner-text h1 {
  font-size: 2.0rem; /* 或更大，如 2.5rem */
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
}

.banner-text h2 {
  font-size: 1.8rem;
  letter-spacing: 1px;
  font-weight: 800;
}

/*
.banner-text p {
  font-size: 16px;
  color: #374151;
  margin: 0;
}

.banner-text p {
  font-size: 1.1rem;
  color: #eeeeee; 
  line-height: 1.6;
}
*/
.banner-text p {
  color: #333333;  /* 淺底推薦用深灰 */
  font-size: 1.3rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}


.banner-download-btn {
  display: inline-block;
  background-color: #10b981;
  color: white !important;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 9999px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  width: fit-content;
}
/*
.banner-download-btn {
  padding: 12px 24px;
  font-size: 1.1rem;
  font-weight: bold;
  background: #00b894;
  color: #fff;
  border-radius: 50px;
}
*/
.banner-download-btn:hover {
  background-color: #059669;
  text-decoration: none;
}

.banner-image-box {
  min-height: 368px;
}

@media (max-width: 768px) {
  .swiper-slide {
    flex-direction: column;
    align-items: center;
  }

  .banner-image, .banner-text {
    margin-bottom: 16px;
  }

  .banner-text h1 {
    font-size: 24px;
  }

  .banner-sub {
    font-size: 16px;
  }

  .banner-text {
    min-height: 443px;
  }
  .banner-image-box {
    min-height: 246px;
  }
}
