@import url("https://fonts.googleapis.com/css2?family=Rowdies:wght@300;400;700&display=swap");

.d-flex {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: flex-start;
  padding-left: 1.5%;
}
@media screen and (max-width: 1380px) {
  .d-flex {
    justify-content: center;
    padding-left: 0;
  }
}

.mt-1 {
  margin-top: 6%;
}
.mt-2 {
  margin-top: 3%;
}

/* 創作者們 */
.card {
  max-width: 425px;
  background: #fff;
  border-radius: 35px;
  padding: 40px 50px;
  text-align: center;
  /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); */
}

.card-title {
    font-family: "RooneySans", "Noto Sans TC", sans-serif;
    color: #e04848;
    font-size: 30px;
    font-weight: 800;
    margin-top: 10px;
}

.card-desc {
    color: #333;
    font-size: 12px;
    margin-top: 8px;
    font-weight: 800;
    line-height: 1.5;
    height: 50px;
    text-align: left;
}
.card-img {
  border-radius: 35px;
  max-height:325px;
  width:325px;
}

/* 消息報報 */
.card-title-new {
    font-family: "RooneySans", "Noto Sans TC", sans-serif;
    color: #595757;
    font-size: 30px;
    font-weight: 800;
    margin-top: 10px;
    text-align: center;
}
.card-desc-new {
  color: #333;
  font-size: 12px;
  margin-top: 8px;
  font-weight: 800;
  line-height: 1.5;
  height: 50px;
  text-align: left;
}
.card-date-new {
  color: #ffaca0;
  font-size: 12px;
  text-align: left;
}

/* 下拉式選單 */
.button_center {
  text-align: center;
}
.button {
  background-color: #f9b946;
  color: white;
  border: none;
  padding: 15px 42px;
  cursor: pointer;
  border-radius: 5px;
  font-size: 20px;
  font-family: "ar-fangxinshuh7b5std", sans-serif;
  margin: 0 20px;
}
.dropdown {
  position: relative;
  display: inline-block;
}
.dropdown-button {
  background-color: #f9b946;
  color: white;
  border: none;
  padding: 15px 20px;
  cursor: pointer;
  border-radius: 5px;
  font-size: 20px;
  font-family: "ar-fangxinshuh7b5std", sans-serif;
}
.dropdown-menu {
  display: none;
  position: absolute;
  background-color: #f9b946;
  color: white;
  min-width: 120px;
  border-radius: 5px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  padding: 5px 0;
  max-height: 200px; /* 設定最大高度 */
  overflow-y: auto; /* 當選項過多時啟用滾動條 */
  z-index: 2;
}
.dropdown-menu a {
  display: block;
  padding: 10px;
  text-decoration: none;
  color: white;
}
.dropdown-menu a:hover {
  background-color: #fca22d;
}
.dropdown:hover .dropdown-menu {
  display: block;
}

/* 自訂滾動條樣式 */
.dropdown-menu::-webkit-scrollbar {
  width: 8px; /* 控制滾動條的寬度 */
}
.dropdown-menu::-webkit-scrollbar-track {
  background: #f9b946; /* 滾動條背景 */
  border-radius: 5px;
}
.dropdown-menu::-webkit-scrollbar-thumb {
  background: #fca22d; /* 滑塊顏色 */
  border-radius: 10px;
}
.dropdown-menu::-webkit-scrollbar-thumb:hover {
  background: #fc802d; /* 滑鼠懸停時的顏色 */
}

/* 最後一張靠左 */
.card_last {
  margin-right: 66%;
}

@media screen and (max-width: 1380px) {
  .card_last {
    margin-right: 0;
  }
}

.a_hover {
  display: inline-block; /* 確保可以進行 transform */
  transition: transform 0.3s ease-in-out;
}

.a_hover:hover {
  transform: translateY(-15px);
}

/* 手機輪播圖 */
.swiper {
  max-width: 450px;
  height: auto;
}

.swiper-slide {
  text-align: center;
  font-size: 18px;

  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pb-1_m {
  padding-bottom: 15%;
}

/* 消息頁籤 */
/* 頁籤外框 */
.tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 2.5%;
}

/* 單個頁籤 */
.tab {
  padding: 10px 14px;
  cursor: pointer;
  border: 2px solid #f58b96;
  font-family: "ar-fangxinshuh7b5std", sans-serif;
  border-radius: 20px;
  margin-right: 5px;
  background-color: white;
  font-size: 18px;
  transition: 0.3s;
  color: #f58b96;
}

/* 當前頁籤高亮 */
.tab.active {
  background-color: #f58b96;
  color: white;
}

/* 目前顯示的內容 */
.tab-content.active {
  display: block;
}
