/* base */

/* 左上logo */
.logo {
    transition: filter 0.3s ease; /* 添加平滑過渡效果 */
}

.logo:hover {
    filter: brightness(1.1); /* 增加亮度，值可調整 */
}

/* navbar */

/* Navbar Styles */
.navbar {
    z-index: 1050; /* 確保在選單之上 */
    --bs-navbar-padding-y: 0.2rem !important;
  }


  
  .navbar-toggler {
    border: none !important;
    width: 50px;
    height: 50px;
    /* background-color: #002d62 !important; 深藍色 */
    border-radius: 50% !important;
    position: relative;
    --bs-navbar-toggler-icon-bg: 
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='gray' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
    /* url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='white' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E"); */
    

  }

  .navbar-toggler-icon {
    width: 30px;
    height: 3px;
    /* background-color: white; */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    z-index: 2000;
  }
  .navbar-toggler.active .navbar-toggler-icon{
    margin-top: 10px;
  }


  .navbar-toggler-icon::before,
  .navbar-toggler-icon::after {
    content: '';
    width: 30px;
    height: 3px;
    /* background-color: white; */
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
  }

  .navbar-toggler.active .navbar-toggler-icon::before,
  .navbar-toggler.active .navbar-toggler-icon::after {

    background-color: white;

  }

  .navbar-toggler-icon::before {
    top: -10px;
  }

  .navbar-toggler-icon::after {
    top: 10px;
  }

  .navbar-toggler.active .navbar-toggler-icon {
    background-color: transparent;
    background-image: none;
  }

  .navbar-toggler.active .navbar-toggler-icon::before {
    transform: rotate(45deg);
    top: 0;
  }

  .navbar-toggler.active .navbar-toggler-icon::after {
    transform: rotate(-45deg);
    top: 0;
  }

  .navbar-toggler:focus{
    box-shadow: none !important;
  }

  /* Overlay Styles */
  .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(63, 63, 63, 0.9); /* 深藍色透明 */
    z-index: 1040;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .menu-overlay.show {
    display: block;
    opacity: 1;
  }

  .nav-link {
    color: rgb(0, 0, 0) !important;
    font-size: 1.2rem;
    text-align: center;
    padding-top: 20px !important;
    border-bottom: solid white 0.5px !important;
  }


  .nav-item {
    min-width: 110px !important;
  }
  /* 選單展開文字白色 */
  .collapse.navbar-collapse.show .nav-link {
    color: rgb(255, 255, 255) !important;
  }

  .collapse.navbar-collapse.show .nav-link:hover {
    color: rgba(255, 255, 255, 0.795) !important;
  }

  .nav-link:hover {
    color: rgba(88, 88, 88, 0.795) !important;
  }

  .nav-link + .nav-link {
    border-top: 1px solid white;
  }

  /* 選單固定不推移頁面 */
  #navbarNav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: right;
    align-items: center;
    background-color: rgba(0, 45, 98, 0.2); /* 深藍色透明 */
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 1045;
  }

  #navbarNav.show {
    transform: translateY(0);
    justify-content: center;
  }
  .footer-text {
    font-size: 12px;
  }
  .post-list-card {
    margin-right: 30px;
    margin-left: 30px;
    background-color: #f6f6f6 !important;
  }
  .article-card {
    margin-left: 0px;
  }
  /* 畫面寬時正常顯示選單 */
  @media (min-width: 992px) {
    #navbarNav {
      position: static;
      transform: none;
      background-color: transparent;
      height: auto;
      display: block;
    }

    .nav-link {
      text-align: left;
      border: none;
    }

    .navbar-nav .nav-item {
      position: relative;
      display: flex;
      align-items: center; /* 垂直居中 */
      justify-content: center; /* 水平居中 */
    }
    
    .navbar-nav .nav-item:not(:last-child)::after {
      content: '';
      position: absolute;
      right: 0;
      top: 25%; /* 控制邊界的起點 */
      height: 70%; /* 控制邊界的長度 */
      width: 1px; /* 邊界寬度 */
      background-color: #ccc; /* 邊界顏色 */
    }
    .footer-text {
      font-size: 16px;
    }
    .post-list-card {
      margin-right: 30px;
      margin-left: 30px;
      background-color: #f6f6f6 !important;
      width:800px
    }  
    .article-card {
      margin-left: 20px;
    }
  }


/* footer */
.footer-bg {
  background-color: #454545;
}


/* post_detail */
      .image-wrapper {
        text-align: center; /* 圖片和按鈕居中對齊 */
        margin-bottom: 16px; /* 圖片和下一個元素之間的間距 */
    }
    .image-wrapper img {
        display: block; /* 強制圖片獨占一行 */
        margin: 0 auto; /* 圖片居中 */
        max-width: 100%; /* 響應式縮放 */
        height: auto;
    }
    .image-wrapper button {
        display: block; /* 強制按鈕換行 */
        margin: 8px auto 0; /* 按鈕上方與圖片保持適當距離，並居中 */
    }
    
    /* #開頭關鍵字 */
    .hashtag {
      display: inline-block;
      background-color: #f2f2f2; /* 淺灰色背景 */
      border-radius: 8px;       /* 圓角 */
      padding: 2px 8px;         /* 內間距 */
      font-size: 16px;          /* 文字大小 */
      color: #333;              /* 字體顏色 */
      margin: 2px;              /* 與其他元素的間距 */
      text-decoration: none;    /* 去掉下劃線 */
  }


  /* post_list */

  .form-control {
    border:1px solid #bdbdbd !important
  }

  .post-list-menu {
    background-color: #eeeeeede; /* 灰色背景 */
    border-radius: 8px;
}

  .post-list-btn {
      display: block;
      width: 100%;
      text-align: left;
      /* color: #888; 預設淺灰色 */
      background: none;
      border: none;
      padding: 12px 16px;
      /* border-bottom: 1px solid #bebebe !important; 分隔線 */
      transition: all 0.3s ease;
      border-radius: 0;
  }





  .post-list-btn.active {
      color: rgb(32, 31, 31) !important; /* 選擇後變黑 */
      background-color: #cacaca !important;
      font-weight: bold;
  }



  .card-title {
    color: #653100 !important;
  }

  .card-text {
    color: #656565 !important;
    overflow-wrap: break-word; 
    word-break: break-word; 
    max-width: 100%;
    font-size: 14px;
  }

  .page-item > .page-link {
    color: #333;
   }

 .page-item.active > .page-link {
  background-color:#b5b5b5 !important;
  border-color: #656565;
 }

 .pagination {
  --bs-pagination-hover-color:#585858 !important;
  --bs-pagination-focus-color: #585858 !important;
 }


