/************ search # + class name ************/



/* =======================================
# sec_theme 紅色區塊共用設定
========================================= */
.sec_theme {
  position: relative;
  background-color: var(--themeColor2);
  padding: 12rem 1rem 8rem;
}

.sec_theme::before,
.sec_theme::after {
  content: "";
  position: absolute;
  display: block;
  left: 0px;
  background-color: var(--bgDark);
  width: 100%;
}

.sec_theme::before {
  top: -10px;
  height: 90%;
  clip-path: polygon(0% 0%, 100% 0%, 100% 16%, 25% 8.8%, 21% 2%, 0% 1%);
}

.sec_theme::after {
  bottom: -2px;
  height: 80%;
  clip-path: polygon(83% 95%, 100% 92%, 100% 100%, 0% 100%, 0% 98%, 80% 88%);
}

@media (max-width:768px) {

  .sec_theme::before,
  .sec_theme::after {
    height: 25%;
  }
}


/* =======================================
# sp-box 講者框
========================================= */
.sp-box {
  position: relative;
  background-image: var(--bgLightGradient);
  padding: 2rem 1.2rem 2rem;
  margin-bottom: 4rem;
  box-shadow: rgba(242, 68, 114, 0.4) 0px 5px, rgba(242, 68, 114, 0.3) 0px 10px, rgba(242, 68, 114, 0.2) 0px 15px, rgba(242, 68, 114, 0.1) 0px 20px, rgba(242, 68, 114, 0.05) 0px 25px;
  border-radius: 4px;
  transition: 0.4s;
}

.sp-box a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.sp-box:hover {
  filter: brightness(125%);
  box-shadow: none;
  transform: translateY(3px);
}

.sp-box::before {
  content: "";
  position: absolute;
  display: block;
  width: 100%;
  height: 100px;
  background-color: var(--bgDark);
  top: 0;
  left: 0;
  clip-path: polygon(20% 0, 80% 0, calc(80% - 20px) 15%, calc(20% + 20px) 15%);
  -webkit-clip-path: polygon(20% 0, 80% 0, calc(80% - 20px) 15%, calc(20% + 20px) 15%);
}

.sp-box::after {
  content: "";
  position: relative;
  display: block;
  width: 100%;
  height: 25px;
  background: url(../img/star.svg)no-repeat center;
  bottom: -1rem;
}

.sptag {
  position: absolute;
  font-weight: 700;
  text-shadow: 0px 2px 3px #333;
  top: 2.5rem;
  left: -10px;
  font-size: 15px;
  padding: 0 20px 0 10px;
  background: var(--bgmedalGradient);
  clip-path: polygon(80% 0%, 100% 50%, 80% 100%, 0% 100%, 0 50%, 0% 0%);
  -webkit-clip-path: polygon(80% 0%, 100% 50%, 80% 100%, 0% 100%, 0 50%, 0% 0%);
}

.sp-box h4,
.sp-box p {
  text-align: center;
}

.sp-box h4 {
  font-size: 22px;
  min-height: 53px;
}

.sp-box p {
  line-height: 1.2;
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.sp-photo {
  display: block;
  width: 100%;
  margin: 0 auto 1rem;
}

@media (max-width:768px) {
  .sp-box h4 {
    font-size: 18px;
    min-height: 40px;
  }
  
}

/* =======================================
# news-box 場邊+徵才+最新消息
========================================= */
.news-box .news-box-info {
  min-height: 310px;
}

.news-box {
  position: relative;
  color: var(--themeTxt);
  overflow: hidden;
  /* background-color: #fff; */
  /* -webkit-clip-path: polygon(100% 0%, 100% 20px, 100% 100%, 25px 100%, 0% calc(100% - 25px), 0 0);
  clip-path: polygon(100% 0%, 100% 20px, 100% 100%, 25px 100%, 0% calc(100% - 25px), 0 0); */
  background: linear-gradient(45deg, transparent 20px, #ffffff 0);
  margin: 1rem 0.3rem 2.2rem;
  transition: 0.3s;
}

.news-box:hover {
  color: var(--themeHoverColor);
  transform: translateY(5px);
}

.news-box::before {
  content: "";
  position: absolute;
  display: block;
  width: calc(100% - 25px);
  height: 5px;
  bottom: 0;
  right: 0;
  background: linear-gradient(to right, #F24472, #636FDF, #00DDEB);
}

.news-box-info {
  padding: 1rem 1rem 2rem 1rem;
}

.news-box h5 {
  margin: 15px 0;
  font-weight: 700;
}

.event-photo {
  position: relative;
  overflow: hidden;
  border: 1px solid #dfdfdf;
}

.event-photo img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
}

.txt-line2 {
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.btn-box {
  display: inline-block;
  color: #fff;
  padding: 5px 1.5rem 5px 3rem;
  clip-path: polygon(25% 0%, 100% 0%, 100% 99%, 0% 100%);
  transition: 0.3s;
}

.btn-box:hover,
.btn-box:focus {
  color: #F9BF3D;
  font-weight: 500;
  letter-spacing: 0.08rem;
}

.color-main {
  background-image: linear-gradient(to right, #636FDF 50%, #00DDEB);
}

.color-a {
  background-color: var(--themeColor);
}

.color-b {
  background-color: var(--themeColor4);
}


.color-c {
  background-color: var(--themeColor5);
}

/* event 頁按鈕額外設定 */
.events .btn-box:hover {
  letter-spacing: 0;
  color: #fff;
  cursor: default;
  font-weight: 400;
}

.eventLink {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;

}


/* =======================================
# inner--box 最新消息、場邊活動內頁
========================================= */
.inner-header {
  position: relative;
  background: var(--bgheadGradient);
  border: 3px solid #ffffff;
  border-bottom: none;
  padding: 0 1rem;
  font-size: 20px;
  font-weight: 700;
  min-height: 25px;
}

.inner-header a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.inner-box {
  border: 3px solid #ffffff;
  padding: 3rem;
  background-color: var(--bgDark);
}

.inner-box-img {
  display: block;
  margin: 0 auto;
  width: 85%;
}

.inner-box h2 {
  text-align: center;
  margin: 2rem 0;
}

.inner-box p {
  margin-top: 1rem;
}

.inner-box-footer {
  margin-top: 2rem;
  border-top: 1px dashed #ffffff;
  padding-top: 1rem;
  text-align: center;
}

.inner-box-logo {
  display: inline-block;
  max-width: 150px;
  background-color: #ffffff;
  margin: 10px;
}



/* =======================================
# class-nav 場邊活動
========================================= */
.class-nav .nav-item a {
  color: #fff;
  padding: 0.5rem 2.2rem;
  transition: all 0.2s;
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 25px;
  border: 3px solid #fff;
  margin: 10px;
  letter-spacing: 0.1rem;
  box-shadow: #fff 0 0 10px;
}

.class-nav .nav-item .active,
.class-nav .nav-item a:hover {
  font-weight: 600;
  color: #212121;
  background-color: #fff;
}


/* =======================================
# 議程表
========================================= */
/*********** 地圖按鈕 ***********/
.map-link{
  position: fixed;
  right: 15px;
  cursor: pointer;
  transition: 0.3s;
  z-index: 10;
}

.map-link:hover{
  filter: drop-shadow(0 0 10px #53BBC6);
}


/*********** 時間軸 ***********/
.timeline-item {
  position: relative;
  padding: 2rem;
  border-left: 5px solid rgba(255, 255, 255, 0.8);
}

.timeline-item::before {
  content: attr(date-is);
  position: absolute;
  display: block;
  left: 3rem;
  top: -12px;
  font-size: 1.5rem;
}

.timeline-item::after {
  content: "";
  display: block;
  position: absolute;
  width: 20px;
  height: 20px;
  top: 0;
  left: -13px;
  border-radius: 15px;
  border: 3px solid #ffffff;
  background: var(--themeColor);
  box-shadow: 0 0 10px var(--themeColor);
}

.timeline-item:last-child {
  -o-border-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.8) 60%, rgba(255, 255, 255, 0)) 1 100%;
  border-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.8) 60%, rgba(255, 255, 255, 0)) 1 100%;
}

/*********** 時間框 ***********/

.item-card {
  position: relative;
  border: 2px solid #fff;
  margin: 1.5rem 0;
  transition: 0.3s;
  box-shadow: 0 0 5px #fff;
}

.class-a:hover,
.class-b:hover,
.class-f:hover,
.class-g:hover,
.class-m:hover {
  transform: translateY(5px);
  box-shadow: none;
}

.item-card .sptag{
  top: 12px;
}

.item-card a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.item-card h5 {
  font-size: 18px;
}

.item-card p {
  font-size: 15px;
  line-height: 1.4;
  color: #dfdfdf;
}

.item-head {
  text-align: center;
  letter-spacing: 0.05rem;
  font-weight: 500;
}

.item-head,
.item-content {
  padding: 10px 1rem;
}

.item-content {
  border-top: 2px solid #fff;
}

/*********** A ***********/
.class-a,
.class-a .item-content {
  border-color: var(--classA);
  box-shadow: 0 0 8px var(--classA);
}

.class-a .item-head {
  text-shadow: 1px 1px 8px var(--classA);
}

/*********** B ***********/
.class-b,
.class-b .item-content {
  border-color: var(--classB);
  box-shadow: 0 0 8px var(--classB);
}

.class-b .item-head {
  text-shadow: 1px 1px 8px var(--classB);
}

/*********** F ***********/
.class-f,
.class-f .item-content {
  border-color: var(--classF);
  box-shadow: 0 0 8px var(--classF);
}

.class-f .item-head {
  text-shadow: 1px 1px 8px var(--classF);
}

/*********** G ***********/
.class-g,
.class-g .item-content {
  border-color: var(--classG);
  box-shadow: 0 0 8px var(--classG);
}

.class-g .item-head{
  text-shadow: 1px 1px 8px var(--classG);
}

/*********** M ***********/
.class-m,
.class-m .item-content {
  border-color: var(--classM);
  box-shadow: 0 0 8px var(--classM);
}

.class-m .item-head {
  text-shadow: 1px 1px 8px var(--classM);
}