.position-relative {
  position: relative;
}
.position-absolute {
  position: absolute;
}

.aspect-square {
  aspect-ratio: 1 / 1;
}

.m-l-0 {
  padding-left: 0px !important;
}

.text-ellipsis-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-img-top {
  border-radius: 10px;
  object-fit: cover;
  width: 100% !important;
  height: 100% !important;
}

.card-img-top:hover {
  opacity: 0.8;
  transition: all 0.3s ease-in-out;
}

.badge-overlay {
  top: 8px;
  left: 8px;
  background-color: #28a745;
  color: #fff;
  font-size: 1.2rem;
  padding: 2px 4px;
  border-radius: 4px;
}

/* 上方文章輪播區 */
.blog-container {
  display: flex;
  gap: 20px;
  margin: 2rem 0;
}

.blog-left {
  width: 66.66%;
}

.blog-right {
  width: 33.33%;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* 三個小卡片平均分配填滿高度 */
}

.blog-top-carousel .aspect-square {
  flex: 0 0 40%; /* 固定寬度佔 40% */
  max-width: 40%;
  margin-right: 1.5rem;
}

.intro-section {
  flex: 1;
  min-width: 0;
}

.intro-section .title {
  font-size: 2.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.intro-section a {
  text-decoration: none;
}

.intro-section .blog-introduction {
  font-size: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 8;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #666;
}

.small-blog-list {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.small-blog-item .aspect-square {
  width: 100px;
  flex-shrink: 0;
}
.small-intro-text {
  height: 100px;
  flex: 1;
}
.small-intro-text a {
  text-decoration: none;
}
.small-intro-text a:hover > h4 {
  color: #ff7a00;
}

.blog-card-item {
  margin-bottom: 2.5rem;
}

.blog-card-item .title {
  height: 4rem;
}

.blog-card-last {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  min-height: 280px;
}

.last-more-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}

.last-more-btn:hover {
  text-decoration: none;
}

.last-more-btn:hover .more-circle {
  opacity: 0.9;
}

.more-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #ffffff;
  transition: all 0.3s ease-in-out;
  background-color: #666;
  margin-bottom: 1rem;
}

@media screen and (max-width: 768px) {
  .blog-top-carousel .aspect-square {
    /* width: 50%; */
  }
  .blog-left {
    flex: 0 0 100%;
  }

  .blog-right {
    display: none;
  }

  .intro-section .title {
    margin-top: 10px;
    font-size: 1.8rem;
  }

  .intro-section .blog-introduction {
    font-size: 1.3rem;
    -webkit-line-clamp: 3;
  }
  .intro-section .text-right {
    display: none;
  }

  .owl-blog-block .owl-nav button.owl-prev,
  .owl-blog-block .owl-nav button.owl-next {
    transform: translate(0%, -50%);
  }
}

.bread-crumb {
  padding: 8px 0px;
  list-style: none;
  border-radius: 4px;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  margin-bottom: 0;
  margin-top: 1rem;
}

.bread-crumb > li {
  display: inline-block;
  font-size: 14px;
}

.bread-crumb > li > a {
  color: #666;
}

.bread-crumb > .active {
  color: #ff7a00;
}

.bread-crumb > li + li:before {
  content: "/\00a0";
  padding: 0 5px;
  color: #000000;
}
