/* Merged CSS: indexcss primary + speaker additions */

.table01{background-color:#006446;border:0px;}
  .table04{border:0px;}
  .table04_open{color:#2085B1}
  
    #overlay {
  position: fixed;
  display: none;
  width: 100%;
  height: 100%;
  top:10%;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(245, 40, 145,0);
  z-index: 2;
  cursor: pointer;
  
}

  #overlay1 {
  position: fixed;
  display: none;
  width: 100%;
  height: 100%;
  top:10%;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(245, 40, 145,0);
  z-index: 2;
  cursor: pointer;
  overflow-y: auto; /* 显示垂直滚动条 */
}

  #overlay2 {
  position: fixed;
  display: none;
  width: 100%;
  height: 100%;
  top:10%;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(245, 40, 145,0);
  z-index: 2;
  cursor: pointer;
  overflow-y: auto; /* 显示垂直滚动条 */
}

  #overlay3 {
  position: fixed;
  display: none;
  width: 100%;
  height: 100%;
  top:10%;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(245, 40, 145,0);
  z-index: 2;
  cursor: pointer;
  overflow-y: auto; /* 显示垂直滚动条 */
}
  #overlay4 {
  position: fixed;
  display: none;
  width: 100%;
  height: 100%;
  top:10%;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(245, 40, 145,0);
  z-index: 2;
  cursor: pointer;
  overflow-y: auto; /* 显示垂直滚动条 */
}
  #overlay5 {
  position: fixed;
  display: none;
  width: 100%;
  height: 100%;
  top:10%;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(245, 40, 145,0);
  z-index: 2;
  cursor: pointer;
  overflow-y: auto; /* 显示垂直滚动条 */
}
  #overlay6 {
  position: fixed;
  display: none;
  width: 100%;
  height: 100%;
  top:10%;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(245, 40, 145,0);
  z-index: 2;
  cursor: pointer;
  overflow-y: auto; /* 显示垂直滚动条 */
}
  #overlay7 {
  position: fixed;
  display: none;
  width: 100%;
  height: 100%;
  top:10%;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(245, 40, 145,0);
  z-index: 2;
  cursor: pointer;
  overflow-y: auto; /* 显示垂直滚动条 */
}
  #overlay8 {
  position: fixed;
  display: none;
  width: 100%;
  height: 100%;
  top:10%;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(245, 40, 145,0);
  z-index: 2;
  cursor: pointer;
  overflow-y: auto; /* 显示垂直滚动条 */
}
  #overlay9 {
  position: fixed;
  display: none;
  width: 100%;
  height: 100%;
  top:10%;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(245, 40, 145,0);
  z-index: 2;
  cursor: pointer;
  overflow-y: auto; /* 显示垂直滚动条 */
}

#textoverlay{
  position: absolute;
   top: 50%;
  left: 50%;
  background-color:white;
  box-shadow:10px 10px 10px rgba(0,0,0,0.5);
width:90%;
height:auto;
max-height: auto;
  color: gray;
  transform: translate(-50%,-50%);
  -ms-transform: translate(-50%,-50%);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  padding: 20px;
}

/* 關閉按鈕 */
#textoverlay a {
  position: absolute;
  top: 10px;
  right: 10px;
}

#textoverlay img {
  width: 30px;
  height: 30px;
}

#textoverlay p {
  margin: 10px 0;
  font-size: 16px;
}



#textoverlay .s_txt p {
	font-size: 14px;
}

.event-block {
    background-color: #FFCC99;
    color: white;
    border-radius: 10px;
    text-align: left;
    font-size: 18px;
    padding: 20px 24px;
	height: 100%;
	font-weight: bold;
	
  }

  .session-block {
    background-color: #ff6100;
    color: white;
    border-radius: 15px;
    padding: 10px 20px;
    font-size: 16px;
    line-height: 1.6;
    transition: background-color 0.3s;
    cursor: pointer;
	text-align:left;
  }

  .session-block:hover,
  .session-block:active {
    background-color: #FFCC99;
  }

  .session-title {
    font-weight: bold;
    font-size: 18px;
	padding: 10px 20px;
  }

  .session-speakers-title {
    text-decoration: underline;
    font-weight: bold;
	padding: 10px 20px;
    
  }

  .session-speakers {
    padding: 10px 20px;
    margin: 0;
  }


    .session-title h3 {
      margin: 0 0 2px;
      font-size: 20px;
    }

    .session-title .en {
      font-weight: normal;
      opacity: 0.8;
      font-size: 16px;
    }

    .session-speakers p {
      margin: 0;
      font-size: 15px;
      line-height: 1.5;
    }
	
.popup-header {
  display: flex;
  justify-content: flex-end;
  padding: 10px;
}

.popup-header-icons a img {
  width: 30px;
  height: 30px;
  margin-left: 10px;
}

.popup-icons {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 10px;
  z-index: 1000;
  
}

.popup-icons img {
  width: 30px;
  height: 30px;
  cursor: pointer;
}
.popup-header-icons a:first-child {
  margin-right: 35px; /* 👉 調整 calendar 和 close icon 之間的距離 */
}
@media screen and (max-width: 768px) {


 /* ✅ 讓整個遮罩層可以往下滑（關鍵） */
  #overlay, #overlay1, #overlay2, #overlay3, #overlay4,
  #overlay5, #overlay6, #overlay7, #overlay8, #overlay9{
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    height: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 9999;                 /* ✅ 蓋過底部 btn-side */
    padding: 80px 12px 110px;      /* ✅ 上下留空，避免被 header / 底部黑條蓋住 */
    background-color: rgba(0,0,0,0); /* 需要遮罩可改 0.25~0.4 */
  }

  /* ✅ 彈窗本體：取消 50% 置中，改成正常排版 */
  #textoverlay{
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;

    width: 100% !important;
    max-height: calc(100vh - 200px);   /* ✅ 有高度限制才會滾 */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;

    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  }

  
    /* 讓標題和按鈕可以換到下一行，不要互相擠 */
  .community-sec_title{
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
  }

  /* 標題一律吃滿一行，避免「議/程」被擠成直排 */
  .community-sec_title .title{
    width: 100%;
    margin-right: 0; /* 取消桌機版推開用的 auto */
  }

  /* 按鈕群組吃滿一行 */
  .agenda-btns{
    width: 100%;
    justify-content: flex-start; /* 想靠右就改 flex-end */
    gap: 0; /* 要貼齊就 0；想留縫隙改 8px */
  }

  /* 兩顆按鈕平均分寬，避免右邊被切掉 */
  .agenda-btns .btn-cta{
    flex: 1 1 0;
    min-width: 0;
  }

  /* 文字太大也會撐爆，手機版縮小一點 */
  .agenda-btns .btn-cta span{
    font-size: 18px !important;
  }
  
  
  
}


.txt_sub {
    font-size: 20px;
    line-height: 20px;
    font-weight: bolder;
    padding-top: 10px;
    margin-top: 4%;
}

p {
    display: block;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    unicode-bidi: isolate;
}
.name02 {
    font-size: 11pt;
    line-height: 20pt;
    font-weight: bolder;
    color: #333;
    margin-right: 0px;
    margin-bottom: 1%;
    margin-left: 0px;
    padding: 0px;
    margin-top: 0px;
}



ul.ulpoint {
    display: block;
    list-style-type: disc;
	list-style-position: outside;
    margin-block-start: 1em;
    margin-block-end: 1em;
    <!-- padding-inline-start: 40px; -->
    unicode-bidi: isolate;
    margin: 1em 0;
    <!-- padding: 0 0 0 40px; -->
	padding-left:60px;
	<!-- margin-left:0; -->
}

.lipoint {
    display: list-item;
    unicode-bidi: isolate;
}

/* 兩顆按鈕貼齊 */
.agenda-btns{
  display: flex;
  gap: 8px;              /* ✅ 0 就是完全貼齊；要留縫改 8px */
}




.spk-mask{
  position: fixed;
  inset: 0;
  display: none;                 /* 預設關閉 */
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.45);
  z-index: 9999;
}

.spk-card{
  position: relative;
  width: min(980px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  overflow: auto;
  padding: 18px;
}

.spk-close{
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #ff6100;
  color: #fff;
  font-size: 22px;
  line-height: 36px;
  cursor: pointer;
}

.spk-body{
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.spk-photo{
  flex: 0 0 240px;
}

.spk-photo img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  border: 2px solid #ff6100;
}

.spk-text{
  flex: 1;
  min-width: 0;
}

.spk-title{
  margin: 6px 0 12px;
  font-weight: 700;
}

.spk-bio{
  line-height: 1.6;
}

/* 人名看起來像可點 */
.speaker-link{
  color: #fff;
  text-decoration: underline;
  cursor: pointer;
}


/* 手機：改成上下排，避免擠爆 */
@media (max-width: 768px){
  .spk-body{ flex-direction: column; }
  .spk-photo{ flex-basis: auto; width: 100%; max-width: 320px; } 
}

.footer{
  border-top: 4px solid #ff6100;  /* 橘線高度可改 2px/3px/4px */
}

.footer_info{
  padding: 24px 0 0;
  overflow: hidden;
}

.footer_info_head{
  margin-bottom: 12px;
}

.footer_info_address{
  margin: 0 0 6px;
}

.footer_info > img{
  display: block;
  width: 100%;
  height: auto;
  margin-top: 8px;
}


.footer_info_head img {
    width: 400px;
}

@media (min-width: 992px){
  .footer_info > img{
    margin-top: -90px;
  }
}
/* ===== Hero / KV ===== */
.kv.banner{
  position: relative;
  overflow: hidden;
  padding-top: 200px;                  /* 避開 header */
  padding-bottom: 80px;               /* 增加底部空間 */
  min-height: 720px;  /* 桌機高度 */
  background-color:black;
}

.kv.banner .kv_container{
  position: relative;
  z-index: 1;
  width: 100%;
}

.kv_text,
.kv_pic{
  position: static !important;
  transform: none !important;
}

.kv_text_full{
  width: 100%;
  max-width: none;                     /* 不限制最大寬度 */
  margin: 0;
}

.kv_text_full img{
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
}

.kv_text img{
  position: static !important;
  margin: 0 !important;
  transform: none !important;
}

/* 手機板 */
@media (max-width: 768px){
  .kv.banner{
    padding-top: 90px;
    padding-bottom: 30px;
    min-height: auto;
  }

  .kv_text_full img{
    width: 100%;
    height: auto;
  }
  
  .footer_info{
  padding-bottom: calc(90px + env(safe-area-inset-bottom));
}

   .header .header_logo{
    width: 220px !important;
    max-width: calc(100% - 90px);
  }

  .header .header_logo > img{
    width: 100% !important;
    height: auto !important;
  }

}
.header_logo > img {
    width: 225px;
}
.header_logo {
    width: 225px;
}

/*修主頁標題圖*/
.kv_text_full picture,
.kv_text_full img{
  display: block;
  width: 100%;
}

.kv_text_full img{
  width: 100%;
  height: auto;
}

@media (max-width: 991px){
  .kv.banner{
    padding-top: 120px;
    padding-bottom: 30px;
    min-height: auto;
    overflow: hidden;
    position: relative;
    z-index: 1;
  }

  .main_content{
    position: relative;
    z-index: 2;
  }
  
     .header .header_logo{
    width: 220px !important;
    max-width: calc(100% - 90px);
  }

  .header .header_logo > img{
    width: 100% !important;
    height: auto !important;
  }

}

@media (min-width: 992px){
  .kv.banner{
    padding-top: 300px;
  }
}

.event-intro-block{
  display: block;
  margin: 0;
}

.event-intro-block p{
  margin: 0 0 12px;
}

.event-section-title{
  font-size: 40px;
  font-weight: 700;
  color: #FF6100;
  line-height: 1.3;
  margin-top: 0;
  margin-bottom: 18px;
}

.event-line{
  font-size: 20px;
  font-weight: 700;
  color: #222;
  line-height: 1.8;
  margin-bottom: 8px;
}

.event-desc{
  font-size: 20px;
  font-weight: 700;
  color: #222;
  line-height: 1.8;
  margin-bottom: 0;
}

/* 手機板文字小 2px */
@media (max-width: 768px){
  .event-section-title{
    font-size: 30px;
  }

  .event-line{
    font-size: 16px;
  }

  .event-desc{
    font-size: 16px;
  }
}
@media (max-width: 768px){
   .footer_info_head img {
    width: 300px;
	}
}


/* 按鈕群組：桌機左右排 */
.reg-pill-group{
  display: flex;
  justify-content: left;
  align-items: left;
  gap: 24px;
  flex-wrap: nowrap;
}

.reg-pill{
  flex: 1 1 0;
  max-width: 520px;
  min-height: 51px;
  background: #000;
  color: #fff;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 0 34px;
  text-decoration: none;
  font-size: 26px;
  font-weight: 700;
  box-sizing: border-box;
}

.reg-pill span:first-child{
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  padding-right: 16px;
  line-height: 1.3;
}

.reg-pill-arrow{
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: #ff6a00;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 74px;
  font-size: 42px;
  line-height: 1;
}

/* 手機板改回上下排列 */
@media (max-width: 768px){
  .reg-box{
    padding: 20px 14px 24px;
    border-radius: 28px;
	left: 0px;
  }

  .reg-title{
    font-size: 18px;
    margin-bottom: 20px;
  }

  .reg-pill-group{
    flex-direction: column;
    gap: 16px;
  }

  .reg-pill{
    width: 100%;
    max-width: none;
    min-height: 51px;
    padding-left: 18px;
    font-size: 18px;
  }

  .reg-pill-arrow{
    width: 56px;
    height: 56px;
    flex-basis: 56px;
    font-size: 30px;
  }
}


.reg-pill-group{
  display: flex;
  justify-content: left;
  align-items: flex-start;   /* 原本是 center，改成 flex-start 較適合 */
  gap: 24px;
  flex-wrap: nowrap;
}

.reg-pill-item{
  flex: 1 1 0;
  max-width: 520px;
}

.reg-pill{
  width: 100%;
}

.reg-pill-note{
  margin-top: 10px;
  font-size: 14px;     /* 小字 */
  line-height: 1.5;
  color: #666;
  text-align: center;  /* 想靠左可改 left */
}

@media (max-width: 768px){
  .reg-pill-item{
    width: 100%;
    max-width: none;
  }

  .reg-pill-note{
    font-size: 12px;
    margin-top: 8px;
  }
}

/* =========================================================
   Speaker page additions merged from speakercss.txt
   Base style remains indexcss.txt
   Notes:
   1) indexcss rules win for duplicated selectors
   2) speaker card button rules are scoped to .post-card
   3) for equal-height speaker cards, add class="speaker-grid" to the row
      that wraps the speaker columns
   ========================================================= */

/* ===== Speaker modal ===== */

.spk-modal{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
}

.spk-modal.is-open{
  display: flex;
}

.spk-modal__dialog{
  position: relative;
  width: min(980px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  margin: 0;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  overflow: auto;
  padding: 18px;
}



.spk-modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
}

.spk-modal__close{
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: #ff6100;
  color: #fff;
  font-size: 22px;
  line-height: 34px;
  cursor: pointer;
}

.spk-modal__content{
  display: flex;
  align-items: flex-start;
  gap: 22px;
}

.spk-modal__text{
  flex: 1 1 auto;
  min-width: 0;
}

.spk-modal__name{
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
}

.spk-modal__role{
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: #333;
}

.spk-modal__bio{
  font-size: 14px;
  line-height: 1.7;
  color: #555;
}

.spk-modal__photo{
  flex: 0 0 220px;
  width: 220px;
}

.spk-modal__photo img{
  width: 100%;
  height: auto;
  border-radius: 14px;
  display: block;
  object-fit: cover;
  border: 2px solid #ff6100;
}

body.modal-open{
  overflow: hidden;
}

/* ===== Speaker cards ===== */
.speaker-grid > [class*="col-"]{
  display: flex;
}

.post-card{
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.post-card_content{
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card_pic{
  display: block;
}

.post-card_pic img,
.pic-cover_img{
  display: block;
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 28px;
}

.post-card_title{
  margin-bottom: 12px;
}

.post-card_intro{
  margin-bottom: 12px;
  line-height: 1.35;
  min-height: calc(1.35em * 2);
}

.post-card_tag{
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: calc(1.5em * 4);
  max-height: calc(1.5em * 4);
  margin-bottom: 20px;
}

.post-card .btn-cta{
  margin-top: auto;
  display: inline-flex;
  align-self: flex-start;
  background-color: transparent !important;
}

.post-card .btn-cta img{
  display: block;
  width: 230px;
  height: auto;
}

/* ===== Speaker page responsive ===== */
@media (max-width: 768px){
  .spk-modal__content{
    flex-direction: column;
  }

  .spk-modal__photo{
    width: 100%;
    flex-basis: auto;
  }

  .post-card_pic img,
  .pic-cover_img{
    height: 240px;
  }

  .post-card_intro{
    min-height: auto;
  }

  .post-card .btn-cta img{
    width: 180px;
  }
}
@media (min-width: 992px){
  .speaker-grid{
    display: flex;
    flex-wrap: wrap;
  }

  .speaker-grid > [class*="col-"]{
    float: none;
    display: flex;
    margin-bottom: 58px;
  }
}

@media (max-width: 991px){
  .speaker-grid > [class*="col-"]{
    margin-bottom: 24px;
  }
}
@media (min-width: 992px){
  .speaker-grid{
    display: flex !important;
    flex-wrap: wrap !important;
  }

  .speaker-grid > [class*="col-"]{
    float: none !important;
    display: flex !important;
    margin-bottom: 58px !important;
  }
}

/* ===== speaker00 popup：外觀接近 agenda，圖片不再強制正方形 ===== */
.spk-modal__dialog{
  width: min(980px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  margin: 20px auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  overflow: auto;
  padding: 18px;
}

.spk-modal__content{
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.spk-modal__close{
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 36px;
}

/* 左側圖片：不裁成正方形，改回 agenda 類似比例 */
.spk-modal__photo{
  flex: 0 0 240px;
  width: 240px;
}

.spk-modal__photo img{
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border: 2px solid #ff6100;
  border-radius: 14px;
}

/* 文字區 */
.spk-modal__text{
  flex: 1;
  min-width: 0;
}

.spk-modal__name{
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
}

.spk-modal__role{
  margin: 6px 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: #333;
}

.spk-modal__bio{
  font-size: 14px;
  line-height: 1.6;
  color: #555;
}

/* 手機板 */
@media (max-width: 768px){
  .spk-modal__content{
    flex-direction: column;
  }

  .spk-modal__photo{
    width: 100%;
    max-width: 320px;
    flex-basis: auto;
  }

  .spk-modal__photo img{
    width: 100%;
    height: auto;
  }
}