@import url("../../../icon_new_6.6/css/all.min.css");
/* CivilLawCase — 劉明生115民訴（Layout 黑白稿，色彩由設計後續套用） */

body * { font-family: 'Noto Sans TC', sans-serif; }
#event_master * {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

:root {
  --bgcolor0: #f7f7f7;
  --bgcolor1: #ededed;
  --border: #222;
  --border-light: #999;
  --text: #111;
  --text-muted: #444;
  --zebra: #e8e8e8;
  /* 設計套色用（目前維持黑白） */
  --color-accent: #222;
  --color-mark: #222;
  --color-link: #111;
}

.bgcolor0 { background: var(--bgcolor0); }
.bgcolor1 { background: var(--bgcolor1); }

.bg_padding { padding: 1%; }

/* —— 區塊垂直節奏（整體緊湊） —— */
article > section {
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

/* —— 主標題 —— */
#Master_title {
  width: 100%;
  margin-bottom: -16rem;z-index: 2;
    position: relative;
  text-align: center;
}
#Master_title img {width: fit-content;height: auto;max-width: 100%;}
#Master_title .master_brand {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  color: var(--text);
}
#Master_title .master_brand_tag {
  display: inline-block;
  padding: 0.1em 0.55em;
  border: 2px solid var(--border);
  font-weight: 700;
}
#Master_title h1 {
  margin: 0;
  font-family: 'Noto Serif TC', serif;
  font-size: clamp(1.5rem, 3.8vw, 2.4rem);
  font-weight: 900;
  line-height: 1.35;
  color: var(--text);
}

/* —— 內容共通 —— */
#event_info{display: inline-block;width: 1200px;padding: 0px 0px;margin: 0 auto;position: relative;background: url(../images/1506023_top_bg.png) no-repeat right top;z-index: 1;}

#event_master {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.5;
  text-align: left;
}
#event_master > * {
  max-width: 100%;
}
#event_master > * + * {
  margin-top: 0.5rem;
}
#event_master a {
  color: var(--color-link);
  text-decoration: underline;
}
#event_master a:hover { text-decoration: none; }

.section_label {
  margin: 0 0 0.45rem;
  font-size: 2.15rem;
  font-weight:900;
  text-align: center;
  letter-spacing: 0.5em;
    background-color: #46302d;
    padding: 0.8rem;color: white;
    font-family: 'Noto Serif TC', serif;
}
.section_label small {  font-size: 0.7rem;}


/* —— 師資（左圖右框） —— */
.teacher_profile {
  align-items: flex-start;
  justify-content: center;
  gap: 0.65rem 0.85rem;
  margin-bottom: 0;
  width: 48%;
}
.teacher_photo {
  width: 100%;
  margin: 0;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
}
.teacher_photo .photo_crop {
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  margin: 0;
  padding: 0.2rem;
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.teacher_photo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
}
.teacher_bio {
  width: 100%;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
}
.teacher_cv_box {
  flex: 0 0 auto;
  width: 100%;
  min-height: 0;
  padding: 1.5rem 0.0rem;
  border: 0px dashed var(--border);

}
.teacher_cv { margin: 0;text-align: left; }
.teacher_cv dt {
  margin: 1.35rem 0 0.3rem;
  font-weight: 900;
    font-size: 1.5rem;
    background-color: #46302d;
    color: white;padding-left: 1rem;
    font-family: 'Noto Serif TC', serif;filter: drop-shadow(0 2px 5px #0000004a);
}
.teacher_cv dt:first-child { margin-top: 0; background-color: #d83509;}
.teacher_cv dd {
  margin: 0 0 0.08rem 1rem;font-size: 1.2rem;color: #46302d;
}
.teacher_intro {
  background: linear-gradient(to bottom, #aa2805 6%, #d83509 45%);
  text-align: justify;align-items: self-end;
  font-size: 1.6rem;color: white;padding: 9rem 3.5rem 2rem;line-height: 2.6rem;
}
.teacher_intro mark {line-height: 1.7rem;
    color: #d83509;
    background-color: #ffead1;
    padding: 0.0rem 0.5rem;

}
.course_intro {
  margin: 0;
  text-align: justify;
  
}

/* —— 課程主題表（每列獨立儲存格） —— */
.schedule_wrap {
  overflow-x: auto;
  width: 100%;
  margin: 0 auto;
}
.schedule_table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  background: #fff;
  font-size: 0.98rem;
  border: 0px solid var(--border);
}
.schedule_table td {
  padding: 0.8rem 1.45rem;
  border: 0px solid #9c8784;
  vertical-align: middle;
  line-height: 1.4;border-bottom: 5px solid #c4b2b099;
}
.schedule_table tbody tr:nth-child(even) { background: linear-gradient(to right, #fffaf4 55%, #ffffff 100%); }
.schedule_table tbody tr:nth-child(odd) { background: linear-gradient(to right, #FFF 55%, #ffffff 100%); }

.cell_datetime {
  width: 22%;
  text-align: center;
  white-space: nowrap;
}
.cell_datetime .date_text,
.cell_datetime .time_text {
  display: block;
  line-height: 1.45;
}
.cell_topic {
  width: 78%;
  text-align: left;
  vertical-align: middle;
  word-break: break-word;
}
.cell_topic .topic_main,
.cell_topic .topic_sub {
  margin: 0 0 0.12rem;
}
.topic_main {
  font-weight: 700;color: #46302d;
    font-size: 1.3rem;
    font-family: 'Noto Serif TC', serif;
}
.topic_sub {    font-size: 1.6rem;color: #d83509;font-weight: 700;font-family: 'Noto Serif TC', serif;
}
.topic_sub:last-child {
  margin-bottom: 0;
}

/* —— 三圓圈並排 —— */
.stat_circles {
  justify-content: center;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin: 0;padding: 2rem;
}
.stat_circle {
  width: 100%;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;
  max-width: 190px;
  margin: 0 auto;
  padding: 0.5rem;
  text-align: center;
  border: 0px solid var(--border);
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  color: white;
  filter: drop-shadow(0 2px 5px #0000003a);
}
.stat_circle.bg1 {background-color: #d83509;}
.stat_circle.bg2 {background-color: #46302d;}
.stat_circle.bg3 {background-color: #a58a86;}
.stat_circle a{color: white!important;}

.stat_num {
  margin: 0;
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
}
.stat_unit {
  font-size: 1.35rem;
  font-weight: 700;
}
.stat_label {
  margin: 0.35rem 0 0;
  font-size: 1.7rem;
  font-weight: 700;
  white-space: nowrap;
}
.stat_price_type {
  margin: 0;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.15;
}
.stat_price {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
  line-height: 1.4;
  white-space: nowrap;
}
.stat_price strong {
  font-size: 1.35rem;
  font-weight: 900;
}

/* —— 星星優惠（整塊置中、文字靠左） —— */
.promo_center {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}
.promo_star_list {
  margin: 0;
  padding: 0 2rem;
  list-style: none;
}
.promo_star_item {
  display: flex;
  align-items: flex-start;
  gap: 0.25rem;
  margin-bottom: 0.45rem;
  text-align: left;
}
.promo_star_item:last-child {
  margin-bottom: 0;
}
.star_mark {
  flex: 0 0 1.1em;
  width: 1.1em;
  font-size: 1.1rem;
  line-height: 3rem;
  text-align: center;
}
.promo_text {
  flex: 1 1 auto;font-size: 1.5rem;color: #46302d;
  min-width: 0;
}
.promo_text p {
  margin: 0 0 0.12rem;
  padding: 0;
  line-height: 1.5;
  text-align: left;
}
.promo_text p:last-child {
  margin-bottom: 0;
}
.mark_num { font-weight: 900;color: #d83509;font-size: 2.0rem; }
.mark_badge {background: linear-gradient(to left, #aa2805 10%, #d83509 85%);margin-top: 0.5rem;
    color: #fff7ed;
    letter-spacing: 0.5em;
    filter: drop-shadow(0 2px 5px #0000003a);
  display: inline-block;
  padding: 0.2em 0.85em;
  border: 0px solid var(--border);
  font-weight: 700;
}

.note_list {
  margin: 0;
  padding: 2rem;
  list-style: none;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.note_list li { margin-bottom: 0.15rem; }
.note_list li:last-child { margin-bottom: 0; }

/* —— 規範雙欄（flex 兩塊，非表格） —— */
.rules_row {
  align-items: stretch;
  justify-content: center;
  gap: 0.65rem;
  margin: 0;
}
.rules_block {
  width: 100%;
  flex: 0 0 auto;
  background: #fff;
  border: 0px solid var(--border);background: linear-gradient(to right, #fffaf4 55%, #ffffff 100%);
}
.rules_title {
  margin: 0;
  padding: 0.45rem 0.6rem;
  font-size: 1.3rem;
  font-weight: 700;
  text-align: center;
  border-bottom: 4px solid #46302d;
    background: #d83509;
    color: white;
}
.rules_block .rule_list {
  margin: 0;color: #46302d;
  padding: 1.2rem 2.65rem;
  list-style-type: decimal;
  list-style-position: outside;
}
.rule_list li {
  margin-bottom: 0.4rem;
  padding-left: 0.15em;
  text-align: left;
}
.rule_list li:last-child {
  margin-bottom: 0;
}

.more_note {
  margin: 0.45rem 0 0.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;padding: 1rem;
}

/* —— 底部連結並排 —— */
.footer_links {
  justify-content: center;
  align-items: center;
  gap: 0.5rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer_link_item {
  width: 100%;
  flex: 0 0 auto;
  text-align: center;
}
.footer_link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 1.8rem;
  font-weight: 700;
  text-decoration: none !important;
    border-bottom: solid 6px #d83509;
    margin-bottom: 2rem;
}
.footer_icon { font-size: 1.8rem;color: #d83509; }
.footer_link_note {
  font-size: 0.9rem;
  font-weight: 400;
}

/* —— 桌機並排（lg） —— */
@media (min-width: 1024px) {
	#event_info {background-size: cover;}
  #Master_title h1 { white-space: nowrap; }
  .cell_datetime,
  .cell_topic .topic_main,
  .stat_num,
  .stat_label,
  .stat_price { white-space: nowrap; }

  /* 師資：左圖右學經歷（電腦版縮減內距） */
  article > section {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
  }
  article > section.bgcolor1:first-of-type #event_master {
    padding: 0 4px 2px;
  }
  #event_master > * + * {
    margin-top: 0.35rem;
  }
  #BodyContainer_event #Master_title {
    padding: 0.85rem 0rem 0rem;
  }
  .teacher_profile {
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 0.35rem 1.5rem;
    margin-bottom: 0;padding-top: 5rem;
  }
  .teacher_photo {
    width: 39%;
    max-width: 39%;
    flex: 0 0 39%;
  }
  .teacher_photo .photo_crop {
    min-height: 0;
    height: auto;
    padding: 0.1rem;
  }
  .teacher_bio {
    width: 59%;
    max-width: 59%;
    flex: 0 0 46%;
  }
  .teacher_cv_box {
    min-height: 0;
  }
  .teacher_cv dt {
  }
  .teacher_cv dd {
    margin: 0 0 0.08rem 1rem;
  }
  article > section.bgcolor1:first-of-type .course_intro {
    margin-top: 0.25rem;
  }

  /* 三圓圈橫排 */
  .stat_circles { margin: 0; }
  .stat_circles { flex-wrap: nowrap; }
  .stat_circle {
    width: 32%;
    max-width: 200px;
    flex: 0 0 32%;
  }

  /* 規範兩塊並排（非表格） */
  .rules_row { flex-wrap: nowrap; }
  .rules_block {
    width: 49%;
    flex: 0 0 49%;
  }

  /* LINE／課程明細並排 */
  .footer_links { flex-wrap: nowrap; }
  .footer_link_item {
    width: auto;
    flex: 0 0 auto;
    min-width: 42%;
  }
}

/* —— 手機 —— */
@media (max-width: 768px) {
	#Master_title {
    margin-bottom: -9rem;}
	#event_info {
    width: 100%;
    background: none!important;
}
	.teacher_profile {
    width: 100%;padding-top: 3rem;
}
	.teacher_intro {
    width: 100%;
    font-size: 1.0rem;
    padding: 4.5rem 2.0rem 1rem;
    line-height: 1.3rem;
}
	.teacher_cv dt {
    font-size: 1.2rem;}
	.teacher_cv dd {
    font-size: 1.0rem;
}
	.section_label,.promo_text {
    font-size: 1.3rem;}
	.topic_main,.rules_title {
    font-size: 1.1rem;}
	.topic_sub {
    font-size: 1.2rem;}
	.mark_num {
    font-size: 1.5rem;}
	.note_list {
    padding: 1rem;}
}
@media (max-width: 1400px){
  .teacher_intro {
    margin: 0rem 0 0;
  }

}
/* —— ipad mini —— */
@media all and (min-width: 768px) and (max-width: 1024px) {
	 .teacher_profile {padding-top: 0rem; margin-top: -2rem;}
	.teacher_intro {padding: 8rem 3.5rem 2rem;}
}
/* —— ipad air —— */
@media all and (min-width: 820px) and (max-width: 1180px) {
	 .teacher_profile {padding-top: 6rem; }
	.teacher_intro {padding: 9rem 3.5rem 2rem;}
}	
/* —— ipad pro —— */
@media all and (min-width: 1024px) and (max-width: 1366px) {
	#event_info {width: 100%;}
}

@media (max-width: 1023px) {
  .teacher_profile {
    flex-direction: column;
    flex-wrap: wrap;width: 100%;
  }
	#event_info {background: url(../images/1506023_top_bg.png) no-repeat center 215%;width: 100%;		 }
  .teacher_photo .photo_crop {
    max-width: 280px;
    min-height: 0;
    margin: 0 auto;
  }
  .stat_circle {
    max-width: 180px;
    min-height: 0;
  }
  .schedule_table { font-size: 0.9rem; }
  .schedule_table td { padding: 0.28rem 0.35rem; }
  .cell_datetime { white-space: normal; }

  .rules_row { flex-direction: column; }
  .rules_block { width: 100%; }

  .footer_links { flex-direction: column; gap: 0.65rem; }
  .footer_link_item { width: 100%; }
}

/* ask */
#askarea SELECT { color: black; background-color: white; }
#askarea_out { background-color: #eb543f; }
#askarea {
  width: 1200px;
  margin: 0 auto;
  padding: 1rem 5rem;
  text-align: left;
}
#askarea .asktitle {
  color: white;
  text-align: center;
  font-size: 2rem;
  margin: 17px;
}
#formlist SELECT,
#formlist input {
  border-radius: 0.3rem;
  background-color: #fff;
  border: #fff;
  padding: 0.25rem;
}
#askarea SELECT {
  background-color: #fff;
  border: #fff;
  padding: 0.5%;
  margin: auto 1% 1% auto;
}
#formlist label {
  display: block;
  margin: 1rem 0;
  color: white;
  font-size: 1.2rem;
}
#formlist img { display: inline-block; }
#formlist input { color: #585858; }
#askarea input[type="submit"],
#askarea input[type="reset"] {
  padding: 0.5em;
  width: 88px;
  margin-top: 2%;
  border: 2px #fff solid;
  color: #ffffff !important;
}
#askarea input[type="submit"] { background-color: #094d6d; }
#askarea input[type="reset"] { background-color: #8d9297; }
label > select { margin: 0 1rem; }
#formlist { justify-content: space-around; }
#askarea textarea[name="sContent"] {
  width: 98%;
  height: 300px;
  font-size: 1.15em;
  border: 7px #ffcac3 solid;
  padding: 10px;
}
#askarea input[type="text"] { width: 32%; }
#askcontent { color: white; line-height: 2.5rem; }

#back-top {
  position: fixed;
  bottom: 30px;
  margin-left: -150px;
  right: 1%;
  z-index: 99;
}
#back-top a {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: block;
  text-align: center;
  font: 11px/100% Arial, Helvetica, sans-serif;
  text-decoration: none;
  color: #bbb;
}
#back-top span {
  width: 50px;
  height: 50px;
  display: block;
  margin-bottom: 7px;
  background: rgba(99, 99, 99, 0.74) url(../images/up-arrow.png) no-repeat center center;
  border-radius: 50%;
}

@media all and (min-width: 1px) and (max-width: 1200px) {
  #askarea { width: 100%; padding: 0.8rem; }
  #askarea .asktitle { font-size: 1.1rem; }
  #askarea input[type="text"],
  #askarea select { width: 100%; }
  #formlist label { font-size: 1rem; }
  #formlist input[type="submit"],
  #formlist input[type="reset"] { width: calc(100% / 4.5); }
}

/* 與 PC.css 1180 外框對齊 */
@media all and (min-width: 1201px) {
  #event_master {
    display: block;
    margin-left: auto;
    margin-right: auto;
    padding: 0 6px 4px;
  }
}

@media print { }
