/* 🔹 主區塊標題 */
.kt-featured h2 {
  font-size: 2rem;
  font-weight: bold;
}

.kt-featured p {
  font-size: 1rem;
  color: #555;
}

/* 🔹 卡片整體樣式（圖片自適應，無留白） */
.game-card-auto {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
  display: inline-block;
  width: 100%;
}

.game-card-auto:hover {
  transform: translateY(-5px);
}

/* 🔸 自適應圖片 */
.game-card-auto img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* 🔹 下方文字與按鈕 */
.game-content {
  padding: 1.5rem;
  text-align: left;
}

.game-content .title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
}

.game-content .description {
  font-size: 0.95rem;
  color: #666;
  margin: 0.5rem 0 1rem;
}

.game-content .btn {
  font-size: 1rem;
  font-weight: 500;
}

/* 🔹 響應式調整 */
@media (max-width: 768px) {
  .kt-featured h2 {
    font-size: 1.5rem;
  }

  .kt-featured p {
    font-size: 0.95rem;
  }

  .game-content {
    padding: 1rem;
  }
}

.carousel-wrapper {
  width: 100%;
  aspect-ratio: 16 / 6;  /* ↓ 調整這行控制容器高度 */
  overflow: hidden;
  position: relative;
}

.carousel-inner,
.carousel-item,
.carousel-item img {
  width: 100%;
  height: 100%;
}

.carousel-item img {
  object-fit: cover;
  display: block;
}

.iframe-wrapper {
  background-color: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  max-width: 960px;
  margin: 0 auto 3rem auto;
}

.iframe-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 比例 */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
}

.iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
