/**
 * Special Offers 區塊專用樣式
 * 模組化設計，獨立於其他樣式檔案
 */

 /* ==================== 字體設定 ==================== */
 .section-main-title, .regional-main-title, .service-main-title, .japan-main-title, 
 .brand-main-title, .learn-more-button span, .card-title, .service-card-title, 
 .japan-tips-card-title, .offers-card, .more-button span{
    font-family:  'Noto Sans JP', 'sans-serif';
 }

.special-offers {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 72px 0 0 0;
  gap: 0px;
  width: 100vw;
  background: linear-gradient(90deg, #1F286F 0%, #006FBB 100%);
  min-height: 832px;
  /* 使用負邊距讓底色突破父層限制，實現滿版效果 */
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.special-offers .sec-inner {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 240px;
}

.special-offers .inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 0px !important;
}

/* ==================== 主標題區域容器 ==================== */
.special-offers .title-section-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-bottom: 20px;
}

/* ==================== 主標題圖片容器 ==================== */
.special-offers .title-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0;
}

.special-offers .title-main-image {
  max-width: 120%;
  height: auto;
}

/* ==================== 標題文字容器 ==================== */
.special-offers .title-text-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -60px;
}

/* ==================== 期間限定標籤 ==================== */
.special-offers .limited-time-label {
  font-size: 36px;
  color: #FFFFFF;
  font-weight: bold;
  text-shadow: 0 0 10px #00A0E9, 0 0 20px #00A0E9, 0 0 30px #00A0E9;
  margin-bottom: 5px;
  line-height: 1;
}

/* ==================== 標題文字 ==================== */
.special-offers .section-main-title {
  font-size: 56px;
  color: #FFFFFF;
  text-align: center;
  font-weight: bold;
  text-shadow: 0 0 10px #00A0E9, 0 0 20px #00A0E9, 0 0 30px #00A0E9;
  margin: 0;
  line-height: 1.2;
}

/* ==================== 副標題圖片容器 ==================== */
.special-offers .subtitle-image-container {
  display: flex;
  justify-content: center;
  margin: 30px 0;
}

.special-offers .subtitle-image-container img {
  max-width: 60%;
  height: auto;
}

/* ==================== 優惠卡片區 ==================== */
.special-offers .offers-card-container {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 40px 0;
  flex-wrap: nowrap; /* 桌面版不換行，確保三張並排 */
  /* 桌面版確保三張橫向並排 */
  max-width: 1000px;
}

.special-offers .offers-card {
  background: #FFFFFF;
  padding: 10px;
  overflow: hidden;
  flex: 1; /* 讓三張卡片平均分配寬度 */
  min-width: 0; /* 防止 flex 項目收縮時出問題 */
  max-width: 300px; /* 設定最大寬度避免太寬 */
  min-width: 265px; /* 設定最小寬度避免太窄 */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.special-offers .offers-card:hover {
  transform: translateY(-4px);
}

.special-offers .offers-card .card-image {
  width: 100%;
  height: 0;
  padding-bottom: 100%; /* 固定圖片比例為 1:1 (正方形) */
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.special-offers .offers-card .card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.special-offers .offers-card .card-info {
  padding: 15px 0 0 0;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  flex: 1;
  min-height: 50px;
}

.special-offers .offers-card .card-title {
  font-size: 13px;
  color: #003B90;
  line-height: 1.4;
  margin: 0;
  font-weight: 600;
  flex: 1;
  word-break: keep-all;
  text-align: left;
}

.special-offers .offers-card .more-button {
  background: #000000;
  color: #FFFFFF;
  padding: 4px 7px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition: background-color 0.3s ease;
  white-space: nowrap;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 28px;
  flex-shrink: 0;
}

.special-offers .offers-card .more-button:hover {
  background: #555;
}

.special-offers .offers-card .more-button .arrow-icon {
  width: 12px;
  height: 12px;
  vertical-align: middle;
}

/* 覆蓋 more-button span 的字體，避免使用 Archivo Black 粗體 */
.special-offers .offers-card .more-button span {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
}

/* ==================== 了解更多按鈕 ==================== */
.special-offers .learn-more-container {
  display: flex;
  justify-content: center;
  margin: 40px 0;
}

.special-offers .learn-more-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #FFFFFF;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
}

.special-offers .learn-more-button:hover {
  transform: translateY(-2px);
}

.special-offers .learn-more-button .arrow-icon {
  height: 20px;
  margin-top: -10px;
}

/* ==================== 響應式設計 ==================== */

/* 大螢幕調整 */
@media (max-width: 1200px) {
  .special-offers .sec-inner {
    padding: 0 120px;
  }
  .special-offers .title-text-container {
    margin-top: -60px;
  }
}

/* 中等螢幕 - 兩列置中設計 */
@media (max-width: 1024px) and (min-width: 769px) {

  .special-offers .title-text-container {
    margin-top: -55px;
  }
  .special-offers .offers-card-container {
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
  }
  
  .special-offers .offers-card {
    flex: 0 0 calc(50% - 12px);
    max-width: 320px;
    min-width: 280px;
  }
  
  /* 第三張卡片置中 */
  .special-offers .offers-card:nth-child(3) {
    flex: 0 0 320px;
    margin-top: 24px;
  }
}

/* 平板版 */
@media (max-width: 768px) {
  .special-offers {
    padding: 60px 0;
    gap: 32px;
  }
  
  .special-offers .sec-inner {
    padding: 0 40px;
  }

  /* 標題文字容器 - 平板版調整 */
  .special-offers .title-text-container {
    margin-top: -45px;
  }
  
  /* 期間限定標籤 - 平板版調整 */
  .special-offers .limited-time-label {
    font-size: 30px;
    margin-bottom: 4px;
  }
  
  /* 主標題 - 平板版調整 */
  .special-offers .section-main-title {
    font-size: 48px;
  }

  .special-offers .subtitle-image-container img {
    max-width: 80%;
  }
  
  /* 優惠卡片響應式 - 平板版 */
  .special-offers .offers-card-container {
    flex-direction: column;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    margin: 32px 35px;
  }
  
  .special-offers .offers-card {
    width: 100%;
    max-width: 400px;
    flex: none;
  }
}

/* 手機版 */
@media (max-width: 480px) {
  .special-offers {
    padding: 40px 0;
    gap: 24px;
  }
  
  .special-offers .sec-inner {
    padding: 0 20px;
  }
  
  /* 標題文字容器 - 手機版調整 */
  .special-offers .title-text-container {
    margin-top: -30px;
  }
  
  /* 期間限定標籤 - 手機版調整 */
  .special-offers .limited-time-label {
    font-size: 24px;
    margin-bottom: 3px;
  }
  
  /* 主標題 - 手機版調整 */
  .special-offers .section-main-title {
    font-size: 36px;
  }
}

/* iPhone 特殊調整 */
@media (max-width: 414px) {
  .special-offers .title-text-container {
    margin-top: -25px;
  }
  
  .special-offers .limited-time-label {
    font-size: 22px;
    margin-bottom: 2px;
  }
  
  .special-offers .section-main-title {
    font-size: 32px;
  }
}

/* iPhone SE 和更小螢幕 */
@media (max-width: 375px) {
  .special-offers .title-text-container {
    margin-top: -20px;
  }
  
  .special-offers .limited-time-label {
    font-size: 20px;
    margin-bottom: 2px;
  }
  
  .special-offers .section-main-title {
    font-size: 28px;
  }
}

/* 手機版完整響應式設計 */
@media (max-width: 480px) {
  /* 副標題圖片 - 手機版調整 */
  .special-offers .subtitle-image-container {
    margin: 20px 0;
  }
  
  .special-offers .subtitle-image-container img {
    max-width: 100%;
  }
 
  /* 優惠卡片響應式 - 手機版 */
  .special-offers .offers-card-container {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 24px 5px;
  }
  
  .special-offers .offers-card {
    width: 100%;
    max-width: 350px;
    flex: none;
  }
  
  .special-offers .offers-card .card-image {
    height: 0;
    padding-bottom: 100%;
    position: relative;
  }
  
  .special-offers .offers-card .card-info {
    padding: 16px 0 0 0;
    gap: 12px;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
  
  .special-offers .offers-card .card-title {
    word-break: keep-all;
    flex: 1;
    font-size: 14px;
  }
  
  .special-offers .offers-card .more-button {
    flex-shrink: 0;
    padding: 6px 12px;
    font-size: 13px;
    text-align: center;
  }
}