/**
 * 東華經濟 2026 新版網站
 * 課程系列頁面專屬樣式
 *
 * 適用：
 * - 學士班課程（中英文）
 * - 碩士班一般組／國際組課程（中英文）
 * - 博士班一般組／國際組課程（中英文）
 *
 * 共用按鈕 .mybtn 與章節標題 .mysectitle 保留在全站 style.css。
 */

/* The actual timeline (the vertical ruler) */
.timeline {
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 115%;
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

/* The actual timeline (the vertical ruler) */
.timeline::after {
  content: '';
  position: absolute;
  width: 6px;
  background-color: #A1A6B0;    /* 淺灰 #A1A6B0 */
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
}

/* Container around content */
.mycontainer {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

/* The circles on the timeline */
.mycontainer::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 25px;
  right: -17px;
  background-color: white;
  border: 4px solid #101566;    /* 橘色#FF9F55,深藍#101566 */
  top: 15px;
  border-radius: 0%;           /* 圓形:50% */
  z-index: 1;
}

/* Place the container to the left */
.conleft {
  left: 0;
}

/* Place the container to the right */
.conright {
  left: 50%;
}

/* Add arrows to the left container (pointing right) */
.conleft::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 1;
  right: 30px;
  border: medium solid white;
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent #C0C2E1; /* 中灰#9496AA,淺灰#BEBEBE,淺灰藍#C0C2E1*/
}
/* Fix the circle for containers on the left side */
.conleft::after {
  right: -12px;
}
/* Add arrows to the right container (pointing left) */
.conright::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 1;
  left: 30px;
  border: medium solid white;
  border-width: 10px 10px 10px 0;
  border-color: transparent #D9C6DA transparent transparent; /* 中灰#9496AA,淺灰#BEBEBE,淺紫#D9C6DA */
}

/* Fix the circle for containers on the right side */
.conright::after {
  left: -12px;
}

/* The actual content */
.semesterright {
  display: flex;
  flex-direction: column;
  padding: 10px 15px;
  background-color: #D9C6DA; /* 中淺灰#A1A6B0,淺灰#BEBEBE,淺紫#D9C6DA */
  position: relative;
  border-radius: 6px;
}
.semesterleft {
  display: flex;
  flex-direction: column;
  padding: 10px 15px;
  background-color: #C0C2E1; /* 中淺灰#A1A6B0,淺灰#BEBEBE,淺灰藍#C0C2E1 */
  position: relative;
  border-radius: 6px;
}
.semestertitle {
  padding: 5px 5px;
}
.courses {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  padding: 5px 5px;
  position: relative;
}
.courses button{
  margin: 3px;
}
.courseruleli {
  font-family: 'Noto Sans TC', sans-serif;
  color: #272727;
  font-size: 110%;
  line-height: 200%;
  list-style-type: cjk-ideographic;    /* 中文數字編號 cjk-ideographic*/
}
.courserulelii {
  font-family: 'Noto Sans TC', sans-serif;
  color: #272727;
  font-size: 100%;
  line-height: 150%;
}
.courseruleft {
  display:flex;
  align-items: center;
  font-family: 'Noto Sans TC', sans-serif;
  color: #272727;
  font-size: 110%;
  line-height: 200%;
  list-style-type: none;
}


/* Media queries - Responsive timeline on screens less than 600px wide */
@media screen and (max-width: 600px) {
  /* Place the timelime to the left */
  .timeline::after {
  left: 31px;
  }
  
  /* Full-width containers */
  .mycontainer {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  
  /* Make sure that all arrows are pointing leftwards */
  .mycontainer::before {
  left: 60px;
  border: medium solid white;
  border-width: 10px 10px 10px 0;
  border-color: transparent white transparent transparent;
  }

  /* Make sure all circles are at the same spot */
  .conleft::after, .conright::after {
  left: 15px;
  }
  
  /* Make all right containers behave like the left ones */
  .conright {
  left: 0%;
  }
}

/*-- 自訂固定圖例符號 --*/
.mycoursemap-layout {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.mycoursemap-content {
  flex: 1 1 auto;
  min-width: 0;
}
.myiconontop {
  position: fixed; /* Set the navbar to fixed position */
  top: 10px; /* Position the navbar at the top of the page */
  right: 10px;
  width: clamp(120px, 12vw, 180px);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0.3s;
}
.myiconontop.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
/*-- 自訂固定圖例符號 end--*/

/* =========================================================
   課程頁專屬輔助樣式
   ========================================================= */

.mycourse-query-row {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: flex-start;
}

.mycourse-query-btn {
    margin: 0 0.5rem;
    vertical-align: middle;
}

.courses .mybtn {
  margin: 0.3rem;
}

.myiconontop > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.myiconontop .mybtn {
  margin: 0.1rem;
}

/* =========================================================
   碩、博士班課程頁補充樣式
   ========================================================= */

/* 專業選修課程置中區塊 */
.concenter {
  position: relative;
  left: 15%;
  width: 70%;
  padding: 1rem 4rem;
  background-color: inherit;
}

/* 置中選修課程卡片 */
.semestercenter {
  position: relative;
  z-index: 3;
  display: flex;
  padding: 1rem 1.5rem;
  flex-direction: column;
  background-color: #BEBEBE;
  border-radius: 0.6rem;
}

/* 中文課程頁第一層條列用中文數字 */
.mycourse-page .courseruleli {
    list-style-type: cjk-ideographic;
}

/* 英文課程頁第一層條列用大寫羅馬數字 */
.mycourse-page-en .courseruleli {
    list-style-type: upper-roman;
}


/* 空白學分徽章不顯示 */
.mybadge:empty {
  display: none;
}

@media screen and (max-width: 600px) {
  .concenter {
    left: 0;
    width: 100%;
    padding-right: 2.5rem;
    padding-left: 7rem;
  }
}
