.tab-content {
  position: relative;
}

.tab-content>* {
  transition: all 0.15s;
  display: none;
}

.tab-content>[data-te-tab-active] {
  display: block;
}

.card--cover {
  position: relative;
}

.card--cover .pic {
  cursor: pointer;
  aspect-ratio: 600/360;
  width: 100%;
  margin-bottom: 20px;
  display: block;
  position: relative;
  overflow: hidden;
}

.card--cover .pic img {
  z-index: 1;
  object-fit: cover;
  width: 100%;
  height: 100%;
  transition: all 0.7s;
  position: absolute;
}

.card--cover .pic:before {
  z-index: 2;
  content: "";
  width: 100%;
  height: 100%;
  transition: all 0.7s;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

.card--cover .caption h2:not(.title) {
  -webkit-line-clamp: 2;
  text-overflow: ellipsis;
  cursor: pointer;
  -webkit-box-orient: vertical;
  font-family: Noto Serif TC, serif;
  font-size: 133.333%;
  font-weight: 700;
  line-height: 1.6;
  transition: all 0.7s;
  display: -webkit-box;
  overflow: hidden;
}

.card--cover .caption h2:not(.title).light {
  font-weight: 600;
}

.card--cover .caption h3 {
  -webkit-line-clamp: 2;
  text-overflow: ellipsis;
  cursor: pointer;
  -webkit-box-orient: vertical;
  font-family: Noto Serif TC, serif;
  font-size: 100%;
  font-weight: 600;
  line-height: 1.6;
  transition: all 0.7s;
  display: -webkit-box;
  overflow: hidden;
}

.card--cover .caption h3.three-line {
  -webkit-line-clamp: 3;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  display: -webkit-box;
  overflow: hidden;
}

.card--cover .caption h3.border-none {
  border: none !important;
  padding-top: 0 !important;
}

.card--cover .caption p {
  font-family: Noto Sans TC, sans-serif;
}

.card--cover .info {
  color: #515050;
  font-size: 77.7778%;
}

.card--cover:hover .pic img {
  transform: scale(1.1);
}

.card--cover:hover .pic:before {
  border: 4px solid var(--theme-color);
}

@media (width<=1279px) {
  .card--cover .pic {
    margin-bottom: 20px;
  }
}

@media (width<=1023px) {
  .card--cover:hover .pic img {
    transform: unset;
  }

  .card--cover:hover .pic:before {
    display: none;
  }
}

@media (width<=767px) {
  .card--cover .pic {
    margin-bottom: 20px;
  }

  .card--cover:hover .pic img {
    transform: scale(1);
  }

  .card--cover:hover .pic:before {
    border: 4px solid var(--theme-color);
  }
}

.card--cover>.pic {
  margin-bottom: 10px;
}

@media (width<=1023px) {
  .card--cover {
    border-bottom: 1px solid #515050;
    grid-template-columns: 1fr 200px;
    align-items: center;
    gap: 20px;
    padding-bottom: 20px;
    display: grid;
  }

  .card--cover>.pic {
    order: 2;
    margin-bottom: 0;
  }

  .card--cover>.caption {
    order: 1;
  }
}

@media (width<=767px) {
  .card--cover {
    grid-template-columns: 1fr 120px;
  }

  .card--cover:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .card--cover .caption h3 {
    font-size: 100%;
  }
}

.card--cover--xl {
  display: block;
  position: relative;
}

.card--cover--xl .pic {
  cursor: pointer;
  aspect-ratio: 600/360;
  width: 100%;
  margin-bottom: 20px;
  display: block;
  position: relative;
  overflow: hidden;
}

.card--cover--xl .pic img {
  z-index: 1;
  object-fit: cover;
  width: 100%;
  height: 100%;
  transition: all 0.7s;
  position: absolute;
}

.card--cover--xl .pic:before {
  z-index: 2;
  content: "";
  width: 100%;
  height: 100%;
  transition: all 0.7s;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

.card--cover--xl .caption h2:not(.title) {
  -webkit-line-clamp: 2;
  text-overflow: ellipsis;
  cursor: pointer;
  -webkit-box-orient: vertical;
  font-family: Noto Serif TC, serif;
  font-size: 133.333%;
  font-weight: 700;
  line-height: 1.6;
  transition: all 0.7s;
  display: -webkit-box;
  overflow: hidden;
}

.card--cover--xl .caption h2:not(.title).light {
  font-weight: 600;
}

.card--cover--xl .caption h3 {
  -webkit-line-clamp: 2;
  text-overflow: ellipsis;
  cursor: pointer;
  -webkit-box-orient: vertical;
  font-family: Noto Serif TC, serif;
  font-size: 100%;
  font-weight: 600;
  line-height: 1.6;
  transition: all 0.7s;
  display: -webkit-box;
  overflow: hidden;
}

.card--cover--xl .caption h3.three-line {
  -webkit-line-clamp: 3;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  display: -webkit-box;
  overflow: hidden;
}

.card--cover--xl .caption h3.border-none {
  border: none !important;
  padding-top: 0 !important;
}

.card--cover--xl .caption p {
  font-family: Noto Sans TC, sans-serif;
}

.card--cover--xl .info {
  color: #515050;
  font-size: 77.7778%;
}

.card--cover--xl:hover .pic img {
  transform: scale(1.1);
}

.card--cover--xl:hover .pic:before {
  border: 4px solid var(--theme-color);
}

@media (width<=1279px) {
  .card--cover--xl .pic {
    margin-bottom: 20px;
  }
}

@media (width<=1023px) {
  .card--cover--xl:hover .pic img {
    transform: unset;
  }

  .card--cover--xl:hover .pic:before {
    display: none;
  }
}

@media (width<=767px) {
  .card--cover--xl .pic {
    margin-bottom: 20px;
  }

  .card--cover--xl:hover .pic img {
    transform: scale(1);
  }

  .card--cover--xl:hover .pic:before {
    border: 4px solid var(--theme-color);
  }
}

.card--cover--xl>.pic {
  margin-bottom: 0;
}

.card--cover--xl>.pic:before {
  display: none;
}

.card--cover--xl>.caption {
  z-index: 2;
  background: #ffffffb3;
  width: 100%;
  margin-bottom: 0;
  padding: 16px 20px 20px;
  position: absolute;
  bottom: 0;
}

.card--cover--xl>.caption h3 {
  font-size: 155.556%;
}

.card--cover--xl>.normal--text {
  padding: 5px 0;
  background: white;
}

.card--cover--xl>.normal--text h3 {
  font-family: Noto Serif TC, serif;
  font-size: 1.4rem;
  letter-spacing: 2px;
  line-height: 1.4em;
  font-weight: 600;
  --line-height: 1.5;
  position: relative;
  display: block;
  display: -webkit-box;
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  min-height: 3em;
  background: white;
}

@media (width<=767px) {
  .card--cover--xl>.normal--text {
    padding: 5px 0 25px 0;
  }

  .card--cover--xl>.normal--text h3 {
    padding: 0 0px;
    font-size: 1.2rem;
    text-align: center;
    position: relative;
    display: block;
    display: -webkit-box;
    overflow: hidden;
    max-width: 100%;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    min-height: 4.2em;
  }

  .card--cover--xl>.caption {
    top: unset;
    height: unset;
    background: #ffffffb3;
    padding: 10px 20px;
    position: absolute;
    bottom: 0;
  }

  .card--cover--xl>.caption h3 {
    font-size: 111.111%;
  }

  .swiperLatest .card--article .info,
  .card--review .info {
    /* padding-top: 0; */
  }
}

.card--event .pic {
  margin-bottom: 0;
}

.card--event .caption {
  color: #fff;
  background: #000;
  height: 85px;
  padding: 8px 16px;
}

.card--event .caption h3 {
  margin-bottom: 0;
}

@media (width<=1023px) {

  .swiper--mobile .swiper-navigation .swiper-button-prev,
  .swiper--mobile .swiper-navigation .swiper-button-next {
    top: 50%;
  }
}

.swiper--mobile {
  --swiper-theme-color: #ede73c;
}

.swiper--mobile .swiper {
  overflow: hidden;
}

.swiper--mobile .card--video .pic,
.swiper--mobile .card--event .pic {
  position: relative;
  overflow: hidden;
}

.swiper--mobile .card--video .pic img,
.swiper--mobile .card--event .pic img {
  width: 100%;
  transition: transform 0.3s;
}

.swiper--mobile .card--video .caption,
.swiper--mobile .card--event .caption {
  padding: 15px 0;
}

.swiper--mobile .card--video .caption h3,
.swiper--mobile .card--event .caption h3 {
  margin-bottom: 10px;
}

.swiper--mobile .card--video .caption h3.bigger,
.swiper--mobile .card--event .caption h3.bigger {
  font-size: 1.25em;
}

.swiper--mobile .card--event .caption {
  padding: 8px 16px;
}

.swiper--mobile .card--event .caption h3 {
  font-weight: 500;
}

.swiper--mobile {
  position: relative;
}

@media (width<=1023px) {

  .swiper--mobile .swiper-navigation .swiper-button-prev,
  .swiper--mobile .swiper-navigation .swiper-button-next {
    top: 50%;
  }
}

.swiper--weekly {
  --swiper-theme-color: #ede73c;
  --swiper-navigation-size: 32px;
}

.swiper--weekly .swiper {
  overflow: hidden;
}

.swiper--weekly .swiper-button-prev,
.swiper--weekly .swiper-button-next {
  stroke: #ede73c;
  stroke-width: 1px;
  background-color: #66666680;
  border-radius: 100%;
  width: 48px;
  height: 48px;
  top: 30%;
}

.swiper--weekly .swiper-button-prev:after,
.swiper--weekly .swiper-button-next:after {
  font-size: 20px;
}

.swiper--weekly .card--weekly {
  position: relative;
}

.swiper--weekly .card--weekly .label {
  margin-bottom: 5px;
  font-weight: 700;
  transition: 0.5s;
  font-size: 24px;
  position: absolute;
  z-index: 3;
  font-family: 'Noto Serif TC';
  color: #000000;
  top: 0;
  text-align: center;
  width: 100%;
  padding: 1rem 0;
  height: fit-content;
}

.swiper--weekly .card--weekly .label p {
  width: fit-content;
  border-bottom: solid 1px black;
  margin: 0 auto;
}

.swiper--weekly .swiper-slide:nth-of-type(1) .card--weekly .label {
  background: #a9d4cf;
}

.swiper--weekly .swiper-slide:nth-of-type(2) .card--weekly .label {
  background: #ebd8da;
}

.swiper--weekly .swiper-slide:nth-of-type(3) .card--weekly .label {
  background: #f2c6a5;
}

.swiper--weekly .card--weekly .pic {
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.2);
}

.swiper--weekly .card--weekly .pic img {
  width: 100%;
  transition: transform 0.3s;
}

.swiper--weekly .card--weekly .caption h3 {
  margin-bottom: 10px;
}

.swiper--weekly .card--weekly .info .date {
  color: #000000;
  font-size: 16px;
}

.grid--cover {
  grid-template-rows: repeat(1, 1fr);
  grid-template-columns: 64% 1fr;
  gap: 20px 40px;
  display: grid;
}

.grid--cover>.swiper--banner {
  grid-area: span 2 / span 1;
}

@media (width>=1024px) {
  .grid--cover {
    grid-template-columns: 64% 1fr;
    column-gap: 25px;
  }

  .grid--cover>.card--cover:nth-child(4) {
    display: none;
  }
}

@media (width>=1280px) {
  .grid--cover {
    grid-template-columns: 64% 1fr;
  }
}

@media (width>=1440px) {
  .grid--cover {
    grid-template-columns: 64% 1fr;
  }
}

@media (width>=1600px) {
  .grid--cover {
    grid-template-columns: 64% 1fr;
  }
}

@media (width<=1023px) {
  .grid--cover {
    flex-direction: column;
    display: flex;
  }

  .grid--cover .swiper--banner {
    position: relative;
  }

  .grid--cover .swiper--banner:after {
    content: "";
    background-color: #515050;
    width: 100%;
    height: 1px;
    display: block;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%);
  }

  .grid--cover>.swiper--banner {
    border-bottom: solid 1px #222;
  }

  .section--cover .tab_ul {
    justify-content: center;
  }
}

.grid--event {
  grid-template-rows: repeat(2, 1fr);
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  max-width: 1500px;
  margin: 0 auto 32px;
  display: grid;
}

.grid--event> :first-child {
  grid-area: span 2 / span 3;
}

.grid--event> :nth-child(3),
.grid--event> :nth-child(4),
.grid--event> :nth-child(6),
.grid--event> :nth-child(7) {
  position: relative;
}

.grid--event> :nth-child(3):before,
.grid--event> :nth-child(4):before,
.grid--event> :nth-child(6):before,
.grid--event> :nth-child(7):before {
  content: "";
  background: #515050;
  width: 1px;
  height: 100%;
  display: block;
  position: absolute;
  top: 0;
  left: -24px;
}

@media (width<=1023px) {
  .grid--event {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: unset;
    gap: 16px;
  }

  .grid--event> :first-child {
    grid-column: span 3;
    grid-row: unset;
    display: block;
  }

  .grid--event> :nth-child(3),
  .grid--event> :nth-child(4) {
    position: unset;
  }

  .grid--event> :nth-child(3):before,
  .grid--event> :nth-child(4):before {
    display: none;
  }
}

@media (width<=767px) {
  .grid--event>* {
    display: none;
  }

  .section__title {
    padding: 10px 0;
  }

  .section__title .title {
    font-size: 24px;
    letter-spacing: 5px;
    text-align: center;
  }

  .section__title::after {
    height: 5px;
    width: 30px;
  }

  .swiperLatest .swiper-slide {
    width: 100% !important;
  }

  .swiper--weekly .swiper-button-prev,
  .swiper--weekly .swiper-button-next {
    top: 33%;
  }

  .card--weekly .info .date {
    width: 100%;
    text-align: left;
  }
}

@media (max-width: 1024px) {
  .card--cover--xl>.normal--text h3 {
    font-size: 24px;
    font-weight: 600;
  }

  .section--cover .tab_inner_li a .tab_inner_title {
    font-size: 18px;
    font-weight: 600;
  }
}

@media (max-width: 767px) {
  .card--article .caption h3,
  .swiper--mobile .card--video .caption h3.bigger,
  .card--course .caption h3,
  .swiper--mobile .card--event .caption h3,
  .swiperLatest .card--article .caption h3,
  .card--podcast .card-title,
  .card--weekly .caption h3 {
    font-size: 20px;
    font-weight: 600;
  }

  .card--snippet--preview .caption h3 {
    font-size: 17px;
    font-weight: 600;
  }
}