@charset "UTF-8";

/* ==========================================================
   1. 共用設定 (Banner & Breadcrumb & Layout)
   ========================================================== */

/* Page Banner */
.page-banner {
  width: 100%;
  position: relative;
  margin-top: var(--nav-height-mobile, 45px);
  display: block;
}
@media (min-width: 768px) {
  .page-banner {
    margin-top: var(--nav-height-tablet, 55px);
  }
}
@media (min-width: 1024px) {
  .page-banner {
    margin-top: var(--nav-height-desktop, 79px);
  }
}

.page-banner img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Container */
.x720-container {
  width: var(--container-fluid-width, 90%);
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

/* Section Spacing */
.section-video {
  padding-top: 1rem;
  padding-bottom: 4rem;
}


/* Breadcrumb */
.x720-breadcrumb {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0px;
  gap: 8px;
  height: 28px;
  margin-bottom: 1.5rem;
}
.breadcrumb-link {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--color-header, #333);
  font-size: var(--fs-body-base, 1rem);
  font-weight: 400;
  padding-bottom: 1px;
  transition: all 0.3s ease;
}
.breadcrumb-link span {
  border-bottom: 1px solid #666;
}
.breadcrumb-link:hover {
  color: #000;
}
.breadcrumb-link img {
  width: 20px;
  height: 20px;
  margin-bottom: 2px;
}
.breadcrumb-sep {
  width: 14px;
  height: 14px;
  opacity: 0.6;
}
.breadcrumb-current {
  color: var(--primary-color, #4fa8d8);
  font-size: var(--fs-body-base, 1rem);
  letter-spacing: 0.5px;
}

/* ==========================================================
   2. 影片列表 (Video Grid) - 依照圖一設計
   ========================================================== */

/* 確保 Grid 間距 */
.section-video .row {
  --bs-gutter-x: 2rem;
  --bs-gutter-y: 2rem;
}

/* 卡片本體 */
.video-card {
  cursor: pointer;
  background-color: #fff; /* ✅ 白色背景 */
  border-radius: 12px; /* ✅ 12px 圓角 */
  overflow: hidden; /* ✅ 確保內容不溢出圓角 */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); /* 輕微陰影增加層次 */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* 等高 */
  border: 1px solid rgba(0, 0, 0, 0.05); /* 極細邊框 */
  display: flex;
  flex-direction: column;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* 縮圖區域 */
.video-thumbnail {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 比例 */
  height: 0;
  overflow: hidden;
  background-color: #f0f0f0;
}

.video-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.video-card:hover .video-thumbnail img {
  transform: scale(1.05);
}

/* 紅色播放按鈕 (依照圖一) */
.play-btn-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background-color: #c92f2f; /* 圖中的深紅色 */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  z-index: 2;
}

.play-btn-overlay i {
  color: #fff;
  font-size: 28px;
  margin-left: 4px; /* 視覺修正 */
}

.video-card:hover .play-btn-overlay {
  transform: translate(-50%, -50%) scale(1.1);
  background-color: #d32f2f;
}

/* 內容區域 (白底文字) */
.video-info {
  padding: 1.5rem; /* 增加內距 */
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.video-info h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.video-info p {
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex-grow: 1; /* 將日期推到底部 */

  /* 限制顯示行數 (約3行) */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-date {
  font-size: 0.9rem;
  color: #999;
  text-align: right; /* 日期靠右 */
  margin-top: auto;
}

/* ==========================================================
   3. 播放視窗 (Modal) - 依照圖二設計
   ========================================================== */

.modal-content {
  border-radius: 12px;
  border: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-header .btn-close {
  opacity: 0.5;
  transition: opacity 0.3s;
}
.modal-header .btn-close:hover {
  opacity: 1;
}

.modal-video-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 1rem;
}

.modal-video-desc {
  font-size: 1.05rem;
  line-height: 1.8;
  text-align: justify;
}

.modal-video-date {
  font-family: monospace; /* 讓日期看起來稍微技術感一點，可選 */
}

/* RWD Modal 調整 */
@media (min-width: 992px) {
  .modal-dialog {
    max-width: 900px;
  }
}
