@charset "utf-8";

/* 導覽列背景色 */
header {
  background-color: #dcd7cc;
}

/* 大標題 */
.blog_title {
  width: 100%;
  margin: 0 auto;
  text-align: center;
  padding: 80px 0;

  @media (max-width: 991px) {
    padding: 60px 0;
  }

  @media (max-width: 575px) {
    padding: 40px 0;
  }
}

/* 部落格區塊 */
.section_blog {
  width: 80%;
  margin: auto;
  margin-bottom: 120px;
  display: flex;
  justify-content: space-between;
  align-items: start;

  @media (max-width: 1199px) {
    width: 90%;
  }

  @media (max-width: 991px) {
    flex-direction: column;
  }
}

/* 左邊列表 */
.blog_list {
  width: 66%;

  @media (max-width: 991px) {
    width: 100%;
  }
}

/* 列表項目 */
.blog_item {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 40px;

  @media (max-width: 767px) {
    flex-direction: column;
  }
}

/* 項目圖片 */
.blog_item_img {
  width: 45%;
  display: block;

  @media (max-width: 767px) {
    width: 100%;
  }
}

.blog_item_img img {
  object-fit: cover;
  aspect-ratio: 3 / 2;
}

/* 項目內容 */
.blog_item_content {
  width: 55%;
  padding: 16px 40px;

  @media (max-width: 1199px) {
    padding: 0 16px;
  }

  @media (max-width: 767px) {
    width: 100%;
    padding: 16px 0;
  }
}

/* 項目標題 */
.blog_item_title {
  font-size: 18px;
  font-weight: bold;
}

/* 項目日期 */
.blog_item_date {
  color: #888;
  font-size: 14px;
}

/* 項目標籤 */
.blog_item_catalog,
.article_item_catalog {
  display: flex;
  margin: 4px 0;
}

/* 標籤連結 */
.blog_item_catalog a,
.article_item_catalog a {
  display: inline-block;
  background-color: #000;
  color: #fff;
  padding: 2px 8px;
  font-size: 0.8rem;
  line-height: 2;
  margin-right: 5px;
}

/* 項目摘要 */
.blog_item_text {
  margin: 8px 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 項目按鈕 */
.blog_item_btn {
  color: #888;

  &:hover {
    color: #000;
  }
}

/* 頁籤 */
._page_container {
  text-align: right;
}
.iconGroup-:before {
  content: "Next";
}
.iconzuo:before {
  content: "Previous";
}
._prev._disabled_c {
  background-color: transparent;
  border-color: 0 none;
}
._prev,
._next {
  border: 0 none;
  font-size: 1rem;
  padding: 1px 20px;
  color: #242424;
}
._active_2 {
  border-radius: 100%;
  font-weight: bold;
}
._pages_li_2 {
  min-width: inherit;
  border: 0 none;
  width: 30px;
  height: 30px;
  min-width: inherit;
  padding: inherit;
  line-height: 30px;
  font-weight: normal;
  color: #242424;
}

/* 右邊側欄 */
.blog_aside {
  width: 30%;
  display: flex;
  flex-direction: column;
  padding: 0 16px;

  @media (max-width: 992px) {
    width: 100%;
    padding: 0;
  }
}

/* 搜尋 */
.search-wrapper {
  display: flex;
  justify-content: start;
  background-color: #dcd7cc;
}

.search-form {
  display: flex;
  border: 1px solid #000;
  border-radius: 2px;
  overflow: hidden;
  width: 300px;
  background-color: #dcd7cc;
}

.search-form input[type="search"] {
  flex: 1;
  padding: 10px 12px;
  border: none;
  outline: none;
  font-size: 16px;
  color: #333;
  background-color: #dcd7cc;
}

.search-form input::placeholder {
  color: #888;
  font-size: 16px;
}

.search-button {
  background: none;
  border: none;
  padding: 0 12px;
  cursor: pointer;
  font-size: 20px;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 隱藏搜尋欄內的清除按鈕 */
.search-form input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}
.search-form input[type="search"]::-moz-search-clear {
  display: none;
}

/* 側欄區塊 */
.aside_block {
  margin-bottom: 24px;
}

/* 區塊標題 */
.aside_title {
  font-size: 18px;
  font-weight: bold;
  padding: 8px 0;
}

/* 文章項目 */
.article_item {
  display: block;
  margin-bottom: 24px;
}

/* 項目標題 */
.article_item_title {
  font-size: 16px;
  font-weight: bold;
}

/* 項目圖片 */
.article_item_img {
  width: 80%;
  aspect-ratio: 16 / 9;
  object-fit: cover;

  @media (max-width: 991px) {
    width: 100%;
    padding: 16px 0;
  }
}

/* 標籤列表 */
.tag_list {
  display: flex;
  flex-wrap: wrap;
}

/* 標籤項目 */
.tag_item {
  display: block;
  margin-right: 8px;
}

.material-symbols-outlined {
  font-size: 30px;
}

.pagebar .pagination li a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  
}


.pagebar .pagination li.disabled a,
.pagebar .pagination li._disabled_c a {
  pointer-events: none;
  opacity: 0.5;
  cursor: default;
}

/* 分頁 current 狀態樣式 */
.pagebar .pagination li.current a,
.pagebar .pagination li.current a:hover,
.pagebar .pagination li.current a:focus {
  background-color: #000 !important;
  color: #fff !important;
  font-weight: bold;
  z-index: 3;
  cursor: default;
  box-shadow: 0 2px 4px rgba(108, 117, 125, 0.3);
  
}

/* 一般狀態的樣式 */
.pagebar .pagination li:not(.current) a {
  background-color: transparent;
  /* border-color: #dee2e6; */
  color: #6c757d;
  font-weight: normal;
  transition: all 0.3s ease;
  border-radius: unset !important;
}

/* 分頁 hover 效果 (只對非 current 元素生效) */
.pagebar .pagination li:not(.current) a:hover {
  background-color: transparent;
  /* border-color: #6c757d; */
  color: #495057;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 左右箭頭 hover 效果 */
.pagebar .pagination li:not(.disabled):not(._disabled_c) a {
  border-radius: unset !important;
  cursor: pointer;
}

.pagebar .pagination li:not(.disabled):not(._disabled_c) a:hover {
  cursor: pointer;
}

