/* 根變數 */
:root {
  --grid-columns: 12;
  --gutter: 1rem;
  --max-width: 1320px;
  --breakpoint-sm: 576px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 992px;
  --primary-color: #333;
  --text-color: #333;
  --bg-color: #fff;
}

/* 重置樣式 */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


/* 基礎樣式 */
html {
  font-size: 12px;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: #ffffff;
}

p {
  margin-bottom: 1rem;
}

ul,
ol {
  margin-bottom: 1rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  /* display: contents; */
}

a:hover {
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-thickness: 1px;
}

a:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  outline: none;
}

/* 排版樣式 */
h1,
.h1 {
  font-size: 4rem;
  line-height: 2;
}

h2,
.h2 {
  font-size: 2.5rem;
  line-height: 1.3;
}

h3,
.h3 {
  font-size: 1.7rem;
  line-height: 1.4;
}

h4,
.h4 {
  font-size: 1.5rem;
  line-height: 2;
}

h5,
.h5 {
  font-size: 1.25rem;
  line-height: 1.5;
}

h6,
.h6 {
  font-size: 1rem;
  line-height: 1.5;
}

.w4 {
  font-weight: 400;
}

.w5 {
  font-weight: 500;
}

.w7 {
  font-weight: 700;
}

/* 圖片樣式 */
.img-fluid {
  max-width: 100%;
  height: auto;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
.c-fix {
  padding: 0;
  width: 100%;
}
/* 容器樣式 */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
}

.container-fluid {
  width: 100%;
  padding: 0 var(--gutter);
}
.c-fix {
  padding: 0;
  width: 100%;
}

/* CSS Grid 系統 */
.grid {
  display: grid;
  grid-template-columns: repeat(var(--grid-columns), 1fr);
  gap: var(--gutter);
}

.col-1 {
  grid-column: span 1;
}
.col-2 {
  grid-column: span 2;
}
.col-3 {
  grid-column: span 3;
}
.col-4 {
  grid-column: span 4;
}
.col-5 {
  grid-column: span 5;
}
.col-6 {
  grid-column: span 6;
}
.col-7 {
  grid-column: span 7;
}
.col-8 {
  grid-column: span 8;
}
.col-9 {
  grid-column: span 9;
}
.col-10 {
  grid-column: span 10;
}
.col-11 {
  grid-column: span 11;
}
.col-12 {
  grid-column: span 12;
}

/* 表單樣式 */
form {
  margin-bottom: 1rem;
}

input,
textarea,
button {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

button {
  background: var(--primary-color);
  color: #fff;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  padding: 0.8rem 2rem;
  margin: 1rem 0.3rem;
  font-weight: 700;
  font-size: 1.2rem;
  border-radius: 0;
  line-height: 1.4;
  min-width: 150px;
}

button:hover {
  background: #0056b3;
}

button:focus {
  outline: 2px solid #0056b3;
  outline-offset: 2px;
}

/* 其他元素 */
hr {
  border: none;
  border-top: 1px solid #ccc;
  margin: 1rem 0;
}

blockquote {
  border-right: 6px solid var(--primary-color);
  padding-left: 1rem;
  margin: 1rem 0;
  /* font-style: italic; */
  /* border: 1px solid #dedede; */
  border-radius: 30px;
  padding: 35px;
  position: relative;
  line-height: 3rem !important;
  background: #f5f4f4bf;
  border-color: #e8e8e8;
  /* border-left: 3px solid #e7e6e6; */
}
blockquote:before {
  content: "“";
  left: -5rem;
  top: -2rem;
  font-size: 5rem;
}

blockquote:after {
  content: "”";
  right: -13rem;
  bottom: 0rem;
  font-size: 5rem;
  /* line-height: 1.3; */
  float: right;
}

/* 導航欄與漢堡選單 */
.nav-toggle {
  display: none;
}

.hamburger {
  cursor: pointer;
  width: 30px;
  height: 30px;
  position: relative;
  border: 1px solid #333;
  padding: 6px;
  display: block;
  z-index: 1000;
  border-radius: 5px;
  align-content: center;
  background: #fff;
}

.hamburger span {
  background: #000000;
  display: block;
  height: 2px;
  width: 16px;
  margin-bottom: 4px;
  position: relative;
  transition:
    transform 0.3s ease 0.5s,
    opacity 0.3s ease 0.5s;
}

.nav-toggle:checked + .hover-div .hamburger span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle:checked + .hover-div .hamburger span:nth-child(2) {
  opacity: 0;
}

.nav-toggle:checked + .hover-div .hamburger span:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
}

.hover-div {
  text-align: center;
  cursor: pointer;
  z-index: 3;
  position: fixed;
  right: 20px;
  top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#nav {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  position: fixed;
  top: 0;
  width: 100%;
  padding: 10px 0;
  z-index: 1000;
  text-align: center;
}
/* 下拉選單樣式 */
.dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.dropdown > a {
  cursor: pointer;
  /* padding-right: 20px; */ /* 為箭頭留空間 */
}

/* 向下箭頭 */
.dropdown > a::after {
  content: "\25BC"; /* Unicode 向下箭頭 */
  font-size: 0.6em;
  position: absolute;
  left: 50%;
  width: 100%;
  color: #686868;
  transform: translate(-50%);
}

.dropdown-content {
  display: block;
  position: absolute;
  background-color: #bfbebee3;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
  top: 120%;
  left: -50%;
  font-size: 1.4rem;
  opacity: 0;
  transform: translate(0, -30%);
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease; /* 動畫效果 */
  border-radius: 10px;
  /* padding-top: 90px; */
}
/*mobile次選單  */

summary {
  list-style: none; /* 移除預設箭頭 */
  cursor: pointer;
  position: relative; /* 為箭頭定位提供參考 */
  padding: 0;
  padding-right: 50px; /* 為箭頭預留更多空間 */
}
summary::-webkit-details-marker {
  display: none; /* 移除舊版瀏覽器箭頭 */
}
summary::after {
  content: "▼"; /* 自訂箭頭 */
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem; /* 增大箭頭尺寸 */
  color: #333;
  width: 40px; /* 增大點擊區域寬度 */
  height: 40px; /* 增大點擊區域高度 */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease; /* 平滑旋轉 */
}
details[open] summary::after {
  transform: translateY(-50%) rotate(180deg); /* 展開時箭頭旋轉，保持垂直置中 */
}
.expand {
  font-size: 1.4rem;
  display: grid;
  gap: 10px;
  margin-top: 10px;
  text-align: left; /* 靠左對齊 */
  padding-left: 0; /* 移除縮排，與主選單對齊 */
}

.expand a {
  padding-left: 30px; /* 子選單項目縮排 */
}
.expand_mobile {
  font-size: 1.4rem;
  display: grid;
  gap: 10px;
  /* padding:30px 0; */
}

.dropdown::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 30px; /* 與空隙高度一致 */
  background: transparent; /* 透明 */
  z-index: 1;
}

.dropdown-content a {
  padding: 8px 16px;
  text-decoration: none;
  display: block;
}

.show-div a:hover {
  background: #d0e1e5;
  border-radius: 0px;
  /* padding: 5px 0; */
}
.dropdown-content a:hover {
  background: #f1f1f1;
  border-radius: 5px;
}
/* 滑鼠懸停時顯示下拉選單並觸發動畫 */
.dropdown:hover .dropdown-content {
  opacity: 1;
  transform: translateY(3px);
  visibility: visible;
}

#nav.visible {
  opacity: 1;
}

.show-div {
  width: 0;
  height: 0;
  background-color: #97d0dd;
  position: absolute;
  top: 0;
  right: 0;
  opacity: 0;
  overflow: hidden; /* 隱藏溢出內容 */
  transition:
    width 0.5s ease-in-out,
    height 0.5s ease-in-out,
    opacity 0.5s ease-in-out;
  z-index: 2;
  margin: 10px;
  padding: 50px 20px; /* 左右內邊距 */
  border-radius: 10px;
}

.show-div ul {
  list-style: none; /* 移除點點 */
  padding: 0;
  margin: 0;
}

.show-div li {
  list-style: none; /* 移除點點 */
  padding: 0;
  margin: 0;
}

.show-div button {
  width: 80%;
  margin-bottom: 0.4rem;
}

.nav-toggle:checked ~ .show-div {
  width: 272px;
  height: 520px; /* 固定高度，不讓內容超出 */
  opacity: 1;
  overflow-y: auto; /* 內容過多時可以捲動 */
}

/* 輪播圖樣式 */
.carousel {
  position: relative;
  width: 100%;
  overflow-x: hidden;
}

.carousel-inner {
  display: flex;
  width: 100%;
  transition: transform 0.5s ease;
}

.carousel-item {
  flex: 0 0 100%;
  width: 100%;
  position: relative;
}

.carousel-item img {
  width: 100%;
  height: auto;
  display: block;
}

.carousel-caption {
  position: absolute;
  bottom: 20px;
  width: 100%;
  color: #fff;
  text-align: right;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  transition: transform 0.5s ease;
  z-index: 1000;
  padding: 0 3rem 3rem 0;
}

.carousel-caption h5 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.carousel-caption p {
  font-size: 1.5rem;
  margin-bottom: 0;
}

.carousel-indicators {
  position: relative;
  display: flex;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%;
  justify-content: center;
}

.carousel-indicators li {
  width: 130px;
  height: 8px;
  background: #c7c7c7;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.carousel-indicators li.active {
  background: #fa8c53;
}

.carousel-indicators li:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.carousel-control-prev,
.carousel-control-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  cursor: pointer;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1/1;
  min-width: unset;
  padding: 0;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: var(--primary-color);
}

.carousel-control-prev:focus,
.carousel-control-next:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.carousel-control-prev {
  left: 10px;
}

.carousel-control-next {
  right: 10px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 20px;
  height: 20px;
  background: transparent no-repeat center center;
  background-size: contain;
}

.carousel-control-prev-icon {
  background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" fill="%23fff" viewBox="0 0 16 16"%3E%3Cpath d="M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z"/%3E%3C/svg%3E');
}

.carousel-control-next-icon {
  background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" fill="%23fff" viewBox="0 0 16 16"%3E%3Cpath d="M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"/%3E%3C/svg%3E');
}

/* 頁面元素樣式 */
header {
  padding: 1rem 0;
  text-align: center;
  margin: 30px auto -12px;
}

nav {
  border-top: 1px solid #000000;
  border-bottom: 1px solid #000000;
  margin-bottom: -30px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 4rem;
  padding: 0rem 4rem;
  align-items: center;
}

nav a {
  font-weight: bold;
}

main {
  padding: 2rem 0;
  min-height: calc(100vh - 200px);
}

aside {
  background: #f9f9f9;
  padding: 1rem;
}

.menu {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
}
.show-div .menu {
  padding: 5px 0 0;
  text-align: left; /* 靠左對齊 */
  align-items: flex-start; /* 左對齊 */
  width: 100%; /* 佔滿寬度 */
}

.menu :nth-child(1) {
  font-size: 1.7rem;
  font-weight: 500;
  margin-top: 1rem;
  white-space: nowrap;
}

.menu :nth-child(2) {
  font-size: 1rem;
  font-weight: 400;
  margin-top: -0.3rem;
}

.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

/* Banner 樣式 */
.banner {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.banner-down {
  width: 90%;
  position: absolute;
  bottom: -20px;
  transform: translate(0%, 65%);
  z-index: 998;
}

.banner-down > .col-6 {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  border-radius: 0 10px 0;
}

.index_visual {
  margin-top: 150px;
  background-color: #f1f1f1;
  background-image: url("../images/index_visual_bg.png");
  background-size: cover;
  padding: 75px 0;
}

.visual img {
  border: 10px solid #fff;
}

.visual {
  filter: drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.36));
  z-index: 3;
}

.visual_intro {
  background: linear-gradient(264deg, rgba(203, 201, 201, 1) 0%, rgba(240, 240, 240, 1) 100%);
  margin: 30px 0 30px calc(-1 * var(--gutter));
  clip-path: polygon(0 0, 85% 0%, 100% 10%, 100% 100%, 0 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 90px;
  position: relative;
  z-index: 0;
}

.visual_info {
  width: 100%;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  bottom: 0;
  gap: 1rem;
  flex-wrap: wrap;
}

/* 新聞樣式 */
.index_news {
  margin-top: 50px;
}
.news,
.award {
  margin-top: 0;
  margin-bottom: 25px;
}

.index_news_img img {
  object-fit: cover;
  object-position: top;
  aspect-ratio: 16/9;
  border-radius: 5px;
}
.index_award_img img {
  object-fit: cover;
  object-position: top;
  aspect-ratio: 16/9;
  border-radius: 5px;
}

.index_news_date {
  padding: 0.5rem 0;
}

.index_news_title,
.index_news_content {
  border-left: 8px solid #45b1be;
  padding-left: 1rem;
}

.award .index_news_title,
.award .index_news_content {
  border-left: 8px solid #fa8c53;
}

.index_news_title {
  line-height: 1.2 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 1.2em;
  display: block;
}

.index_news_content {
  line-height: 2;
}

.banner_news_box {
  background-color: #f0f0f0;
  display: flex;
}

.banner_news {
  width: 100%;
  display: flex;
  gap: 1rem;
  flex-direction: row;
  align-items: center;
  border-bottom: 1px dashed #a5a5a5;
}

.banner_news_date {
  padding: 0.5rem;
  border-left: 8px solid #45b1be;
  text-align: center;
  background-color: #fff;
  aspect-ratio: 1/1;
  padding: 1rem 0.8rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.banner_news_date p {
  margin: 0;
  line-height: 1;
}

.banner_news_title {
  padding: 0 1.5rem 0 0.5rem;
}

/* 分類標籤 */
.sort_a,
.sort_b,
.sort_c,
.sort_d {
  border-radius: 12px;
  text-align: center;
  font-size: 1.2rem;
  margin: 5px 0;
  padding: 13px 20px;
  white-space: nowrap;
  line-height: 0;
  display: inline-block;
  cursor: default;
  color: #fff;
}

.sort_a {
  background-color: #45b1be;
}
.sort_b {
  background-color: #6e6868;
}
.sort_c {
  background-color: #fa8c53;
}
.sort_d {
  background-color: #97d0dd;
}
.sort {
  padding: 0 0 10px 0;
}
.button_a {
  background-color: #45b1be;
}
.button_b {
  background-color: #2d5ffd;
}
.button_c {
  background-color: #b83131;
}

.sort .sort_a,
.sort .sort_b,
.sort .sort_c,
.sort .sort_d {
  background-color: transparent;
  border: 1px solid #333;
  color: #333;
  transition: all 0.2s ease;
  cursor: pointer;
}

/* Hover: 換背景、白字、取消邊框 */
.sort .sort_a:hover {
  background-color: #45b1be;
  color: #fff;
  border: none;
}
.sort .sort_b:hover {
  background-color: #6e6868;
  color: #fff;
  border: none;
}
.sort .sort_c:hover {
  background-color: #fa8c53;
  color: #fff;
  border: none;
}
.sort .sort_d:hover {
  background-color: #97d0dd;
  color: #fff;
  border: none;
}

/* 頁尾樣式 */
.footer {
  background-image: url("../images/footer_bg.jpg");
  background-size: cover;
  background-position: center center;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  /* margin-top: 110px; */
}

.footer_content,
.center {
  text-align: center;
}

.footer_logo {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.footer_menu {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2.2rem;
  text-decoration: underline;
}

.footer_menu a {
  text-decoration: none;
}

.footer_button {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 3rem auto 2rem;
}
.footer_button button {
  position: relative;
}
.footer_button button::after {
  content: ">";
  margin-left: 5px;
  font-size: 0.8rem;
}

.logo img {
  /* width: 70%; */
}

.carousel-banner {
  object-fit: cover;
  object-position: top;
  aspect-ratio: 2.12/1;
  border-radius: 10px;
}
.sub_banner > div {
  position: relative;
}
.sub_banner img {
  width: 100%;
  height: auto;
  min-height: 200px;
  object-fit: cover;
  object-position: 60%;
  display: block;
}
.sub_banner_title {
  position: absolute;
  top: 50%;
  left: 80%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  filter: drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.36));
}
.sub_banner_title h1 {
  line-height: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 4.5rem;
  white-space: nowrap;
}
.sub_banner_title h2 {
  font-size: 3.2rem;
  font-weight: 400;
}

/* breadcrumb */
.breadcrumb {
  margin: 40px 0 20px 0;
  padding-top: 20px;
}
.breadcrumb ul {
  display: flex;
  padding: 0;
  margin: 0;
  list-style: none;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  padding: 0 0.5rem;
  position: relative;
}

.breadcrumb li::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  background-image: url("../images/arrow.svg");
  background-size: contain;
  background-repeat: no-repeat;
  margin-right: 0.5rem;
}

/* 第一個 li 不要圖示 */
.breadcrumb li:first-child {
  padding: 0;
}
.breadcrumb li:first-child::before {
  content: none;
}
/* news_detail */
.news_detail {
  padding: 0 15px;
}
.news_detail h2 {
  margin-bottom: 20px;
}
/* 新聞詳情頁面的段落樣式（發布時間和摘要） */
.news_detail p {
  border-left: 12px solid #97d0dd;
  margin: 0 0 0 1rem;
  padding: 0 0 0 1rem;
  line-height: 2;
}

/* 內容區塊內的段落不要藍色邊框 */
.news_detail .content p {
  border-left: 0 !important;
  margin: 1rem 0 !important;
  padding: 0 !important;
  line-height: 1.8;
}

/* 內容區塊內的列表樣式 */
.news_detail .content ul {
  margin: 1rem 0;
  padding-left: 2rem; /* 列表縮排 */
}

.news_detail .content ul li {
  margin: 0.5rem 0;
  line-height: 1.8;
  list-style-type: disc; /* 顯示項目符號 */
}

.news_detail .content ol {
  margin: 1rem 0;
  padding-left: 2rem; /* 編號列表縮排 */
}

.news_detail .content ol li {
  margin: 0.5rem 0;
  line-height: 1.8;
}
.news_detail .content {
  border: 0 !important;
  border-left: 0 !important;
  margin-top: 2rem;
  padding-left: calc(2rem + 12px) !important; /* 對齊藍色邊框後的文字位置 */
}

/* 確保新聞詳情內容不受其他樣式影響 */
.news_detail .h4.w4.content,
.news_detail .content.h4.w4,
div.news_detail div.h4.w4.content {
  border: 0 !important;
  border-left: 0 !important;
  padding-left: calc(2rem + 12px) !important;
  margin-left: 0 !important;
}

/* CKEditor 5 表格樣式 */
.news_detail .content table,
.content table {
  width: 100%;
  margin: 2rem 0;
  border-collapse: collapse;
  overflow-x: auto;
  display: table;
}

.news_detail .content table thead,
.content table thead {
  background-color: #f5f5f5;
}

.news_detail .content table th,
.content table th {
  padding: 12px 15px;
  text-align: left;
  font-weight: 600;
  border: 1px solid #ddd;
  background-color: #f8f9fa;
}

.news_detail .content table td,
.content table td {
  padding: 10px 15px;
  border: 1px solid #ddd;
  line-height: 1.6;
}

.news_detail .content table tr:nth-child(even),
.content table tr:nth-child(even) {
  background-color: #fafafa;
}

.news_detail .content table tr:hover,
.content table tr:hover {
  background-color: #f0f0f0;
}

/* 響應式表格 - 手機版橫向滾動 */
@media (max-width: 768px) {
  .news_detail .content table,
  .content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
}

/* 相關圖片樣式 */
.photo-gallery .col-12 {
  text-align: center;
  margin-bottom: 2rem;
}

.photo-item {
  margin-bottom: 1.5rem;
}

/* 強制照片區塊响應式設定 - 覆蓋CSS Grid */
.photo-gallery {
    display: flex !important;
    flex-wrap: wrap !important;
}

.photo-gallery .photo-item {
    width: 50% !important; /* 手機版 2個一排 */
    flex: 0 0 50% !important;
    max-width: 50% !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
}

@media (min-width: 992px) {
    .photo-gallery .photo-item {
        width: 33.33% !important; /* 大螢幕 3個一排 */
        flex: 0 0 33.33% !important;
        max-width: 33.33% !important;
    }
}

@media (min-width: 1200px) {
    .photo-gallery .photo-item {
        width: 25% !important; /* 超大螢幕 4個一排 */
        flex: 0 0 25% !important;
        max-width: 25% !important;
    }
}

.photo-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1; /* 正方形 */
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid #e0e0e0; /* 淡灰色外框 */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* 輕微陰影 */
  background-color: #fff;
}

.photo-container:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15); /* 懸停時加深陰影 */
  border-color: #ccc;
}

.photo-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: opacity 0.3s ease;
}

/* Lazy loading 樣式 */
.photo-thumbnail.lazy-load {
  opacity: 0.7;
  filter: blur(1px);
}

.photo-thumbnail.lazy-loaded {
  opacity: 1;
  filter: none;
}

.photo-caption {
  text-align: center;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #666;
}

/* Lightbox 樣式 */
.lightbox-overlay {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.lightbox-content {
  position: relative;
  margin: 5% auto;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  font-size: 2rem;
  font-weight: bold;
  color: white;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  line-height: 1;
  z-index: 10000;
}

.lightbox-close:hover {
  color: #ccc;
}

#lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-caption {
  margin-top: 1rem;
  text-align: center;
}

.lightbox-caption p {
  color: white;
  font-size: 1.1rem;
  margin: 0;
  padding: 0;
}

/* 響應式設計 - lightbox */
@media (max-width: 768px) {
  .photo-container:hover {
    transform: scale(1.01); /* 手機版減少縮放效果 */
  }
  
  .lightbox-content {
    margin: 10% auto;
  }
  
  .lightbox-close {
    top: -30px;
    font-size: 1.5rem;
  }
}

/* lectures */
.lectures_card {
  border: 1px solid #e1dada;
  border-radius: 10px;
  padding: 20px;
  background-color: #f5f2f2;
}

.lectures_title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-direction: row;
  border-bottom: 1px dotted #333;
  padding-bottom: 0.5rem;
}
.lectures_title img,
.lectures_content img {
  width: auto;
  height: 50px;
}
.lectures_content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: nowrap;
  border-bottom: 1px dotted #333;
  margin: 1.5rem 0 1rem 0;
  padding: 1rem;
  border-left: 8px solid #fa8c53;
}
.lectures_content .lecture-info {
  flex: 1;
}
.lectures_content .lecture-info h5 {
  margin-bottom: 0;
}
.lectures_content:hover {
  background: #ffffff;
}
.lectures_content img {
  width: auto;
  height: 30px;
}
.lectures_content .lecture-meta {
  font-size: 0.9rem;
  color: #666;
  margin: 0.5rem 0 0 0;
}
.rent h1 {
  line-height: 5.1rem;
}
.rent_title {
  border-bottom: 1px dotted #333;
  margin: 1.5rem 0 1rem 0;
  padding: 1rem;
  border-left: 8px solid #45b1be;
  font-size: 2rem;
  margin: 50px 0 15px;
}
/* 動態內容的文字和列表樣式 */
.rent div.h4 ul,
.rent div.h4 ol,
.rent div.h4 li,
.rent div.h4 p {
  font-size: 1.5rem;
  line-height: 2;
}

.rent div.h4 ul {
  margin-left: 50px;
}

.rent div.h4 li {
  margin-bottom: 0.5rem;
}

.rent ul {
  margin-left: 50px;
}
.rent_photo {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 10px;
  flex-direction: row;
  width: 100%;
  overflow-x: scroll;
}
   .rent_photo div {
      flex: 0 0 auto; /* 每個圖片容器根據內容大小 */
      max-width: 350px; /* 限制每個圖片容器的最大寬度，根據需要調整 */
    }
.masonry-grid {
  position: relative;
  margin: 0 auto; /* 確保居中 */
}
/* mansory */
.masonry-grid .grid-item {
  float: left;
  margin-bottom: 10px;
}

.masonry-grid .col-6,
.masonry-grid .col-lg-12 {
  grid-column: auto !important; /* 禁用 CSS Grid 的欄數約束 */
}

.masonry-grid .col-6 {
  width: calc(50% - 10px); /* 50% 寬度，減去 gutter */
  min-width: 300px; /* 設置最小寬度 */
}

/* 當只有一個 .col-6 時，讓它填滿整個容器 */
.masonry-grid .col-6:only-child {
  width: 100%; /* 填滿整個容器 */
}

.masonry-grid .col-6:only-child .lectures_card {
  width: 100%; /* 卡片填滿 col-6 */
}

.about {
  margin-bottom: 60px;
}
.about_img img {
  border: 10px solid #fff;
}
.about_content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5rem;
  background: #f3f3f3;
}
.about_content p {
  margin: 2rem auto;
  font-size: 1.5rem;
  line-height: 2.8rem;
}
/* about 區塊 */
.about.grid {
  align-items: center;
  display: grid; /* 確保每個 .about.grid 是獨立 Grid */
}

/* 奇數列：A B（預設順序） */
.about.grid .about_img {
  order: 1; /* 左邊 */
}

.about.grid .about_content {
  order: 2; /* 右邊 */
  margin: 0 0 0 -30px;
}

/* 偶數列：B A（反轉順序） */
.about.grid:nth-child(even) .about_img {
  order: 2; /* 右邊 */
}

.about.grid:nth-child(even) .about_content {
  order: 1; /* 左邊 */
  margin: 0 -30px 0 0;
}
/* timeline  */
/* 時間軸特定樣式 */
:root {
  --timeline-line-bg: #f8f7fa;
  --timeline-dot-bg: #333;
}
.time_title {
  text-align: center;
  background: #e9e8e8;
  padding: 8px;
  margin: 10px auto 20px;
  border-left: 19px solid #fa8c53;
  width: 100%;
  /* box-shadow: 3px 2px 5px #626262ad; */
}

.timeline {
  display: grid;
  grid-template-columns: 0.25rem 1fr;
  /* column-gap: 2rem; */
  list-style: none;
  padding: 0;
}

.timeline::before {
  content: "";
  grid-column: 1;
  grid-row: 1 / span 20;
  background: #dcdcdc;
  border: 2px dotted #fff;
}

.timeline li {
  grid-column: 2;
  grid-row: span 2;
  margin-bottom: 2rem;
  margin-inline: 1.5rem;
}

.timeline li .date {
  height: 3rem;
  margin-inline: -1.5rem;
  text-align: center;
  color: #fff;
  display: grid;
  place-content: center;
  position: relative;
  border-radius: 1.5rem 0 0 1.5rem;
  background: var(--primary-color);
}

.timeline li .date::before {
  /* content: ""; */
  width: 1.8rem;
  aspect-ratio: 1;
  background: var(--timeline-line-bg);
  position: absolute;
  top: 100%;
  clip-path: polygon(0 0, 100% 0, 0 100%);
  right: 0;
}

.timeline li .date::after {
  content: "";
  display: block;
  position: absolute;
  width: 14px;
  height: 14px;
  background: #45b1be;
  border-radius: 15px;
  z-index: 1;
  top: 50%;
  transform: translate(50%, -50%);
  right: calc(100% + 2rem + 0.125rem);
}

.timeline .timeline-date {
  width: 54px;
  height: 54px;
  display: inline-block;
  padding: 8px;
  /* clip-path: polygon(0 0, 100% 0, 100% 80%, 50% 100%, 0 80%); */
  z-index: 1;
  background: var(--primary-color);
  color: #fff;
  aspect-ratio: 1/1;
  display: none;
}

.event-card {
  border: 1px solid #e1dada;
  border-radius: 10px;
  padding: 20px;
  background-color: #f5f2f2;
  width: 100%;
}
li:nth-of-type(even) .event-card {
  margin: -10px 0 0 -15px;
}
li:nth-of-type(odd) .event-card {
  margin: -10px 0 0 15px;
}
.event-content {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.timeline-text {
  flex: 1;
}


  .timeline {
    grid-template-columns: 1fr 0.25rem 1fr;
    column-gap: 2rem;
  }

  .timeline::before {
    grid-column: 2;
  }

  .timeline li:nth-child(odd) {
    grid-column: 1;
    margin-left: 0;
    margin-right: 1.5rem;
  }

  .timeline li:nth-child(odd) .date {
    margin-right: -1.5rem;
    margin-left: 0;
  }

  .timeline li:nth-child(odd) .date::before {
    /* clip-path: polygon(0 0, 100% 0, 100% 100%); */
    /* left: 0; */
  }

  .timeline li:nth-child(odd) .date::after {
    transform: translate(-50%, -50%);
    left: calc(100% + 2rem + 0.125rem);
    right: auto;
  }

  .timeline li:nth-child(even) {
    grid-column: 3;
    margin-right: 0;
    margin-left: 1.5rem;
  }

  .timeline li:nth-child(even) .date {
    margin-left: -1.5rem;
    margin-right: 0;
    border-radius: 0 1.5rem 1.5rem 0;
  }

  .timeline li:nth-child(even) .date::after {
    right: calc(100% + 2rem + 0.125rem);
    left: auto;
  }

  .timeline li:nth-child(2) {
    grid-row: 2 / 4;
  }

/* 響應式斷點 - 小型設備 */
@media (max-width: 576px) {
  .col-sm-1 {
    grid-column: span 1;
  }
  .col-sm-2 {
    grid-column: span 2;
  }
  .col-sm-3 {
    grid-column: span 3;
  }
  .col-sm-4 {
    grid-column: span 4;
  }
  .col-sm-5 {
    grid-column: span 5;
  }
  .col-sm-6 {
    grid-column: span 6;
  }
  .col-sm-7 {
    grid-column: span 7;
  }
  .col-sm-8 {
    grid-column: span 8;
  }
  .col-sm-9 {
    grid-column: span 9;
  }
  .col-sm-10 {
    grid-column: span 10;
  }
  .col-sm-11 {
    grid-column: span 11;
  }
  .col-sm-12 {
    grid-column: span 12;
  }

  h1,
  .h1 {
    font-size: 3.6rem;
    line-height: 2;
  }
  h2,
  .h2 {
    font-size: 2.4rem;
    line-height: 1.3;
  }
  h3,
  .h3 {
    font-size: 1.6rem;
    line-height: 1.4;
  }
  h4,
  .h4 {
    font-size: 1.3rem;
    line-height: 2;
  }
  h5,
  .h5 {
    font-size: 1.25rem;
    line-height: 1.5;
  }
  h6,
  .h6 {
    font-size: 1rem;
    line-height: 1.5;
  }
}

/* 響應式斷點 - 中型設備 */
@media (max-width: 768px) {
  .col-md-1 {
    grid-column: span 1;
  }
  .col-md-2 {
    grid-column: span 2;
  }
  .col-md-3 {
    grid-column: span 3;
  }
  .col-md-4 {
    grid-column: span 4;
  }
  .col-md-5 {
    grid-column: span 5;
  }
  .col-md-6 {
    grid-column: span 6;
  }
  .col-md-7 {
    grid-column: span 7;
  }
  .col-md-8 {
    grid-column: span 8;
  }
  .col-md-9 {
    grid-column: span 9;
  }
  .col-md-10 {
    grid-column: span 10;
  }
  .col-md-11 {
    grid-column: span 11;
  }
  .col-md-12 {
    grid-column: span 12;
  }
}

/* 響應式斷點 - 大型設備 */
@media (max-width: 992px) {
  .col-lg-1 {
    grid-column: span 1;
  }
  .col-lg-2 {
    grid-column: span 2;
  }
  .col-lg-3 {
    grid-column: span 3;
  }
  .col-lg-4 {
    grid-column: span 4;
  }
  .col-lg-5 {
    grid-column: span 5;
  }
  .col-lg-6 {
    grid-column: span 6;
  }
  .col-lg-7 {
    grid-column: span 7;
  }
  .col-lg-8 {
    grid-column: span 8;
  }
  .col-lg-9 {
    grid-column: span 9;
  }
  .col-lg-10 {
    grid-column: span 10;
  }
  .col-lg-11 {
    grid-column: span 11;
  }
  .col-lg-12 {
    grid-column: span 12;
  }

  .carousel-control-prev,
  .carousel-control-next {
    display: none;
  }

  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 16px;
    height: 16px;
  }

  .carousel-indicators li {
    width: 20%;
    height: 5px;
  }

  .carousel-caption {
    display: none;
  }

  .banner-down {
    transform: translate(0%, 50%);
  }

  .navbar {
    display: none;
  }

  .logo img {
    place-self: center;
    text-align: center;
    width: 75%;
    margin: 0 auto -13px;
  }

  .banner_news_box {
    display: none !important;
  }

  header {
    margin: 0;
  }

  #nav {
    opacity: 1 !important;
  }

  .index_visual {
    margin-top: 30px;
    padding: 30px 0;
  }

  button {
    padding: 0.5rem 1.5rem;
    margin: 0 0.3rem 0.5rem;
    font-weight: 400;
  }

  .visual_info > div:first-child {
    display: none !important;
  }

  .visual_info > div:nth-child(2) {
    display: block !important;
  }

  .visual_info {
    padding: 20px 0;
    background-color: unset;
  }

  .visual_intro {
    margin: -80px 0 0 0;
    clip-path: polygon(0 0, 90% 0%, 100% 10%, 100% 100%, 0 100%);
    justify-content: start;
    padding: 80px 40px;
    flex-wrap: wrap;
    z-index: 2;
    position: relative;
  }

  .index_news {
    margin-top: 15px;
  }

  .index_visual > .container {
    justify-content: center;
  }

  .visual img {
    aspect-ratio: 2/2.6;
    z-index: 99;
    object-fit: cover;
    object-position: bottom;
  }

  .hover-div {
    top: 30px;
    right: 15px;
  }

  .carousel-banner {
    aspect-ratio: 1.7/1;
    object-fit: cover;
    object-position: left;
    border-radius: 0;
  }

  .index_news_title {
    font-size: 1.2rem;
    line-height: 1.2 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    height: auto;
  }

  .index_news_content {
    font-size: 1.2rem;
    line-height: 1.3;
  }

  .index_news_title,
  .index_news_content {
    border-left: 6px solid #45b1be;
    padding-left: 0.5rem;
  }
  
  .index_news_content {
    min-height: 30px;
  }
.footer {
  background-image: url("../images/footer_bg.jpg");
  background-size: 109%;
  background-position: bottom  center;
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  margin-top: 110px;
  background-repeat: no-repeat;
}
.footer {
    margin-top: 10px;
    min-height: 31vh;
  }

  .footer_logo img {
    width: 66%;
  }

  .footer_menu,
  .footer_button {
    display: none;
  }

  .footer_info p {
    line-height: 1.5;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
  }
  .sub_banner_title {
    position: absolute;
    top: unset;
    bottom: 0;
    right: 0;
    left: unset;
    transform: translate(0%, -50%);
    color: #fff;
    padding-right: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    filter: drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.36));
  }
  .sub_banner_title h1 {
    line-height: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 1.65rem;
  }
  .sub_banner_title h2 {
    font-size: 1.4em;
    font-weight: 400;
  }

  .sub_banner img {
    width: 100%;
    height: auto;
    min-height: 150px;
    aspect-ratio: 2/1;
    object-fit: cover;
    object-position: center;
  }

  .news,
  .award {
    margin-bottom: 5px;
  }
  .about {
    margin-bottom: 10px;
  }
  .about.grid .about_content {
    padding: 2rem 1.7rem;
  }
  .about.grid .about_img {
    order: 1 !important;
  }

  .about.grid .about_content {
    order: 2 !important ;
    margin: 0 0 0 0;
  }
  .masonry-grid .col-6 {
    width: 100%; /* 設置為全寬 */
    float: none; /* 禁用 float */
    grid-column: span 12 !important; /* 確保 CSS Grid 也設置為全寬 */
  }

  /* 確保 col-sm-12 生效 */
  .masonry-grid .col-sm-12 {
    width: 100%;
    float: none;
    grid-column: span 12;
  }
  /* 確保 masonry-grid 中的 col-6 在小型螢幕下變為全寬 */
  .masonry-grid .col-6 {
    width: 100%; /* 設置為全寬 */
    float: none; /* 禁用 float */
    grid-column: span 12 !important; /* 確保 CSS Grid 也設置為全寬 */
  }

  /* 確保 col-sm-12 生效 */
  .masonry-grid .col-lg-12 {
    width: 100%;
    float: none;
    grid-column: span 12;
  }
  /**/

  /* 禁用 masonry-grid 的浮動和固定寬度 */
  .masonry-grid {
    display: block; /* 禁用 Grid 或 Float，改用標準流式佈局 */
  }

  .masonry-grid .grid-item {
    float: none; /* 禁用 float */
    width: 100% !important; /* 確保全寬 */
    margin-bottom: var(--gutter); /* 保持間距 */
  }

  /* 確保 col-6 和 col-lg-12 在小型螢幕下全寬 */
  .masonry-grid .col-6,
  .masonry-grid .col-lg-12 {
    width: 100% !important;
    float: none;
    grid-column: span 12 !important; /* 保持 CSS Grid 全寬 */
  }

  /* 確保 col-sm-12 生效 */
  .masonry-grid .col-sm-12 {
    width: 100% !important;
    float: none;
    grid-column: span 12;
  }
  .nav-toggle:checked ~ .show-div {
    /* height: 550px; */
  }
  .time_title {
    text-align: left;
    background: #e9e8e8;
    padding: 14px;
    margin: 10px auto 20px;
    border-left: 19px solid #fa8c53;
    width: 100%;
    box-shadow: 3px 2px 5px #626262ad;
    font-size: 1.8rem;
}
.event-card {
  border: 1px solid #e1dada;
  border-radius: 10px;
  padding: 20px;
  background-color: #f5f2f2;
  width: 110%;
  margin: 0!important;
}
 li:nth-of-type(even) .event-card 
  {
    margin-left: -15px!important;
}
.timeline li{
      grid-column: 1;
      margin-left: 0;
      /* margin-right: 0rem!important; */
}
.rent ul {
  margin-left: 30px;
}
.about.grid:nth-child(even) .about_content {
  order: 1; /* 左邊 */
  margin: 0 ;
}

}
/* 響應式斷點 - 中型以上設備 */
@media (min-width: var(--breakpoint-md)) {
}



@media (max-width: var(--breakpoint-sm)) {
  .timeline li .date {
    font-size: 14px;
    height: 2.5rem;
  }

  .timeline .timeline-date {
    width: 48px;
    height: 75px;
  }
}

/* News Page Styles */
.search-form {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.search-container {
    display: flex;
    width: 100%;
    justify-content: flex-end;
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 400px;
    background: transparent;
    border: 1px solid #cccccc;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
    height: 40px;
}

.search-input-group:focus-within {
    border-color: #999999;
    box-shadow: 0 0 0 1px rgba(153, 153, 153, 0.2);
}

.search-input {
    flex: 1;
    padding: 0 16px;
    border: none;
    outline: none;
    font-size: 14px;
    color: #333333;
    background: transparent;
    line-height: 40px;
    height: 40px;
}

.search-input::placeholder {
    color: #999999;
    font-weight: 400;
}

.search-submit {
    padding: 0 !important;
    background: #ff0000 !important; /* 紅色背景測試 */
    color: #ffffff !important;
    border: 2px solid #00ff00 !important; /* 綠色邊框測試 */
    cursor: pointer;
    transition: all 0.2s ease;
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 0 12px 12px 0 !important;
    margin: 0 !important;
    flex-shrink: 0;
    position: relative;
    z-index: 1000 !important;
    font-size: 14px !important;
    font-weight: normal !important;
    white-space: normal !important;
    line-height: normal !important;
}

.search-submit:hover {
    background: #cc0000 !important;
}

.search-submit:active {
    background: #990000 !important;
}

.sort a.active {
    background: #333;
    color: white;
}

.no-results {
    padding: 40px 0;
    color: #666;
}

@media (max-width: 992px) {
    .search-form {
        margin-top: 20px;
        justify-content: center;
    }
    
    .search-input-group {
        max-width: 100%;
    }
}

/* =============================================================================
   COMPILED INLINE CSS FROM RAZOR PAGES
   ============================================================================= */

/* NEWS DETAIL PAGE STYLES */
.news_detail a[download]:hover {
    background: #3a9aab !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(69, 177, 190, 0.3);
}

.photo-gallery {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.photo-caption {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-top: 8px;
}

.related-news {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    margin: 20px;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.btn-primary {
    background: #333;
    color: white;
}

.btn-secondary {
    background: #666;
    color: white;
}

.btn:hover {
    opacity: 0.8;
}

/* RECRUIT PAGE STYLES */
.volunteer-info {
    margin-bottom: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.volunteer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.service-item {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #fa8c53;
}

.service-item h3 {
    color: #333;
    margin-bottom: 10px;
}

.service-item p {
    color: #666;
    margin: 0;
}

.requirements {
    margin-top: 30px;
    padding: 20px;
    background: #e3f2fd;
    border-radius: 8px;
}

.requirements h3 {
    color: #1976d2;
    margin-bottom: 15px;
}

.requirements ul {
    margin: 0;
    padding-left: 20px;
}

.requirements li {
    color: #333;
    margin-bottom: 8px;
    line-height: 1.6;
}

.form-section {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.download-links {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 25px;
    border-left: 4px solid #fa8c53;
}

.download-links p {
    margin-bottom: 10px;
    color: #333;
}

.download-links .btn {
    margin-right: 10px;
    margin-bottom: 5px;
}

.volunteer-form {
    max-width: 800px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-control {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #fa8c53;
    box-shadow: 0 0 0 2px rgba(250, 140, 83, 0.2);
}

.form-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.alert {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.field-validation-error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
}

/* RENT PAGE STYLES */
.rental-info {
    margin-bottom: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.rental-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.gallery-item {
    text-align: center;
}

.gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.rental-form {
    max-width: 800px;
}

/* INFO PAGE STYLES */
.info-section {
    margin-bottom: 30px;
}

.info-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.info-title {
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 3px solid #fa8c53;
    position: relative;
}

.info-title:before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 50px;
    height: 3px;
    background: #333;
}

.info-item {
    margin-bottom: 20px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item h3 {
    color: #555;
    margin-bottom: 10px;
    font-size: 18px;
}

.info-content {
    color: #666;
    line-height: 1.8;
}

.info-content p {
    margin-bottom: 8px;
}

.map-section {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.map-container {
    text-align: center;
    margin-top: 20px;
}

.map-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* RESIDENCE PAGE STYLES */
.residence-section {
    margin-bottom: 40px;
}

.residence-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.residence-content:nth-child(even) .residence-image {
    order: 2;
}

.residence-content:nth-child(even) .residence-text {
    order: 1;
}

.residence-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

.residence-text h2 {
    color: #333;
    margin-bottom: 20px;
    border-left: 4px solid #fa8c53;
    padding-left: 15px;
}

.residence-text .content {
    color: #666;
    line-height: 1.8;
}

.no-content {
    text-align: center;
    padding: 60px 0;
    color: #999;
}

/* AWARDS PAGE STYLES */
.award-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 25px;
}

.award-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.index_award_img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: top;
}

.award-content {
    padding: 20px;
}

.award .index_news_title,
.award .index_news_content,
.award .artwork-title {
    border-left: 8px solid #fa8c53;
    padding-left: 15px;
    margin: 10px 0;
}

.artwork-title {
    color: #666;
    font-style: italic;
}

.award-level {
    background: #fa8c53;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    font-size: 14px;
    margin: 8px 0;
}

.award-info {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.award-description {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 15px;
}

/* LECTURES PAGE STYLES */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

/* 當只有一個grid-item時，改為單欄佈局 */
.masonry-grid:has(.col-6:only-child) {
    grid-template-columns: 1fr;
}


/* RESPONSIVE STYLES FOR ALL PAGES */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .volunteer-content {
        grid-template-columns: 1fr;
    }
    
    .form-section {
        padding: 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .info-card {
        padding: 20px;
    }
    
    .residence-content {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .residence-content:nth-child(even) .residence-image,
    .residence-content:nth-child(even) .residence-text {
        order: unset;
    }
    
    .residence-image img {
        height: 200px;
    }
    
    .award-content {
        padding: 15px;
    }
    
    .index_award_img img {
        height: 150px;
    }
}

@media (max-width: 992px) {
    .masonry-grid {
        grid-template-columns: 1fr;
    }
}

/* AWARD DETAIL PAGE STYLES */
.award-detail-content {
    padding: 20px 0;
}

.award-edition {
    color: #666;
    margin-bottom: 10px;
    font-size: 14px;
}

.award-winner-name {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.3;
}

.artwork-title {
    font-size: 20px;
    color: #555;
    margin-bottom: 15px;
    font-style: italic;
}

.award-level {
    background: #f8f9fa;
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
}

.artwork-description {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-top: 20px;
}

.award-edition-info {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.award-edition-info h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #333;
}

.edition-description {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.related-winners {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.related-winners h3 {
    font-size: 22px;
    margin-bottom: 25px;
    color: #333;
}

@media (max-width: 768px) {
    .award-winner-name {
        font-size: 24px;
    }
    
    .artwork-title {
        font-size: 18px;
    }
    
    .award-edition-info,
    .related-winners {
        margin-top: 30px;
        padding-top: 20px;
    }
}