/* ===================================================
   Government.css - 政府最新專案公告專頁樣式表
   =================================================== */

.page-content {
  background-color: var(--bg-white, #ffffff);
  min-height: calc(100vh - var(--nav-height, 80px));
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-center {
  text-align: center;
}

/* 頁首主視覺 Banner */
.gov-hero-banner {
  background: linear-gradient(rgba(15, 39, 29, 0.85), rgba(15, 39, 29, 0.9)), url('/img/bg.jpg') center/cover;
  padding: 70px 0;
  color: #ffffff;
}

.banner-tag {
  color: var(--accent-gold, #d4af37);
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.banner-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #ffffff;
  margin: 12px 0 12px;
}

.banner-desc {
  font-size: 1.05rem;
  color: #E2E8F0;
  max-width: 750px;
  margin: 0 auto;
  line-height: 1.8;
}

/* 通用 Section 規範 */
.section-block {
  padding: 60px 0 96px 0;
}

/* 公告卡片網格 (對應原本 News 列表排版) */
.gov-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* 單張公告卡片設計 */
.gov-card {
  background: var(--bg-white, #ffffff);
  border-radius: 12px;
  border: 1px solid var(--border-color, #e2e8f0);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.gov-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-green, #1b4332);
  box-shadow: 0 10px 25px rgba(27, 67, 50, 0.08);
}

.gov-card-image-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background-color: #e2e8f0;
  display: block;
}

.gov-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gov-card:hover .gov-card-img {
  transform: scale(1.05);
}

.gov-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #c53030; /* 帶點緊急/重要公告感的紅/橘系或維持主題綠 */
  color: white;
  padding: 4px 10px;
  font-size: 0.75rem;
  border-radius: 4px;
  font-weight: 600;
}

.gov-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.gov-meta {
  font-size: 0.8125rem;
  color: var(--text-muted, #718096);
  margin-bottom: 8px;
}

.gov-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-dark, #2d3748);
  margin-bottom: 12px;
  line-height: 1.4;
}

.gov-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.gov-card-title a:hover {
  color: var(--primary-green, #1b4332);
}

.gov-card-desc {
  font-size: 0.9375rem;
  color: var(--text-body, #4a5568);
  margin-bottom: 20px;
  flex-grow: 1;
  line-height: 1.6;
}

.gov-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-green, #1b4332);
  text-decoration: none;
  transition: opacity 0.2s;
  margin-top: auto;
}

.gov-read-more:hover {
  opacity: 0.8;
}

/* RWD 響應式 */
@media (max-width: 991px) {
  .gov-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .section-block {
    padding: 40px 0;
  }
  .gov-grid {
    grid-template-columns: 1fr;
  }
}