.title{
  color: #ff6100;
}

html{
  scroll-behavior: smooth;
}

.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: 0;
  margin-inline-end: 0;
  unicode-bidi: isolate;
  color: #202020;
  font-weight: bold;
}

.name02{
  font-size: 11pt;
  line-height: 20pt;
  font-weight: bolder;
  color: #333;
  margin: 0 0 1% 0;
  padding: 0;
}

ul.ulpoint{
  display: block;
  list-style-type: disc;
  list-style-position: outside;
  margin: 1em 0;
  padding-left: 60px;
  unicode-bidi: isolate;
}

.lipoint{
  display: list-item;
  unicode-bidi: isolate;
}

.full-line{
  display: block;
  width: 100%;
  border-bottom: 1px solid #000;
  padding-bottom: 6px;
  margin-bottom: 6px;
}


/* ===== Header ===== */
.header_logo{
  width: 225px;
}

.header_logo > img{
  width: 225px;
}

.header .header_logo{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .25s ease, visibility .25s ease;
}

.header.is-top .header_logo{
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none;
}


/* ===== Footer ===== */
.footer{
  border-top: 4px solid #ff6100;
}

.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;
}



/* ===== Agenda Table ===== */
.agenda-wrap{
  width: 100%;
  max-width: none;
  margin: 20px 0;
}

.agenda-table{
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 18px;
  color: #202020;
  font-weight: bold;
}

.agenda-table th,
.agenda-table td{
  border: 1px solid #222;
  padding: 10px 8px;
  vertical-align: middle;
}

.agenda-top th{
  background: #000;
  color: #fff;
  padding: 12px 14px;
  border-color: #000;
}

.agenda-top-inner{
  position: relative;
  text-align: center;
}

.agenda-date-place{
  display: inline-block;
  font-size: 18px;
  font-weight: 700;
}

.agenda-room{
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  font-weight: 700;
}

.agenda-head th{
  background: #FF6100;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}

.col-time{
  width: 140px;
}

.col-topic{
  width: auto;
}




.agenda-day-block{
  scroll-margin-top: 130px;
}

.agenda-room-badge{
  display: inline-block;
  width: 82px;
  height: auto;
  vertical-align: middle;
}


.col-topic-p ul{
  list-style: disc;
  padding-left: 22px;
  margin: 0;
}

.col-topic-p li{
  margin: 4px 0;
}


/* ===== Agenda Date Nav ===== */
.agenda-date-nav{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 18px 0 28px;
}

.agenda-date-link{
  display: block;
  text-decoration: none;
  line-height: 0;
}

.agenda-date-link img{
  display: block;
  width: 190px;
  height: auto;
}


/* ===== Speaker Cards ===== */
.agenda-speakers-cell{
  padding: 22px 18px !important;
}

.speaker-block{
  display: flex;
  align-items: flex-start;
  gap: 22px;
}

.speaker-block-label{
  flex: 0 0 90px;
  font-size: 18px;
  font-weight: 500;
  color: #111;
  padding-top: 250px;
}

.speaker-grid{
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.speaker-grid .post-card{
  width: 100%;
  background: #fff;
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 610px;
}

.speaker-grid .post-card_pic{
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 28px 28px 0 0;
}

.speaker-grid .post-card_pic img,
.speaker-grid .pic-cover_img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 0;
}

.speaker-grid .post-card_content{
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 26px 28px 26px;
}

.speaker-grid .post-card_title{
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1.2;
}

.speaker-grid .post-card_intro{
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 700;
  color: #222;
  height: calc(1.45em * 2);
  min-height: calc(1.45em * 2);
  max-height: calc(1.45em * 2);
  overflow: hidden !important;
  text-overflow: ellipsis;
  white-space: normal !important;
  word-break: break-word;
  overflow-wrap: anywhere;
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}

.speaker-grid .post-card_tag{
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.6;
  color: #444;
  height: calc(1.6em * 4);
  min-height: calc(1.6em * 4);
  max-height: calc(1.6em * 4);
  overflow: hidden !important;
  text-overflow: ellipsis;
  white-space: normal !important;
  word-break: break-word;
  overflow-wrap: anywhere;
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 4 !important;
}

.speaker-grid .btn-cta{
  margin-top: auto;
  display: inline-flex;
  align-self: flex-start;
  background: transparent !important;
  padding: 0;
}

.speaker-grid .btn-cta img{
  display: block;
  width: 170px;
  height: auto;
}

.speaker-grid.two-speakers{
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 980px;
  margin: 0 auto;
}


/* ===== Speaker Modal ===== */
.spk-modal{
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.spk-modal.is-open{
  display: block;
}

.spk-modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
}

.spk-modal__dialog{
  position: relative;
  width: min(920px, calc(100% - 32px));
  margin: 60px auto;
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 20px 50px rgba(0,0,0,.18);
}

.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;
  gap: 24px;
  align-items: flex-start;
}

.spk-modal__photo{
  flex: 0 0 280px;
}

.spk-modal__photo img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  object-fit: cover;
  border: 2px solid #ff6100;
}

.spk-modal__text{
  flex: 1 1 auto;
  min-width: 0;
}

.spk-modal__name{
  margin: 0 0 6px;
  font-size: 24px;
  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;
}

body.modal-open{
  overflow: hidden;
}


/* ===== Traffic Guide ===== */
.traffic-guide{
  margin: 48px 0 36px;
  padding: 36px 28px 32px;
  background: #eef1ef;
  border-radius: 28px;
}

.traffic-guide_title{
  text-align: center;
  margin-bottom: 28px;
}

.traffic-guide_icon{
  font-size: 28px;
  line-height: 1;
  margin-bottom: 8px;
}

.traffic-guide_title h3{
  margin: 0;
  font-size: 36px;
  font-weight: 800;
  color: #1d2430;
}

.traffic-guide_line{
  width: 72px;
  height: 6px;
  border-radius: 99px;
  margin: 12px auto 0;
  background: linear-gradient(90deg, #2d6b4c 0 70%, #e8b84d 70% 100%);
}

.traffic-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.traffic-card{
  background: #fff;
  border-radius: 20px;
  padding: 22px 18px 20px;
  min-height: 290px;
  box-shadow: 0 6px 16px rgba(0,0,0,.05);
  border: 1px solid rgba(0,0,0,.05);
}

.traffic-card_icon{
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.traffic-card h4{
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 800;
  color: #27313d;
}

.traffic-card_sub{
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 700;
  color: #5b6470;
}

.traffic-card ul{
  margin: 0;
  padding-left: 18px;
}

.traffic-card li{
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.7;
  color: #4a4f57;
}

.traffic-card-orange{
  border-top: 4px solid #FF8033;
}

.traffic-card-orange .traffic-card_icon{
  background: #fde8de;
  color: #ea7b45;
}

.traffic-card-blue{
  border-top: 4px solid #FF8033;
}

.traffic-card-blue .traffic-card_icon{
  background: #e7efff;
  color: #6f98f6;
}

.traffic-card-yellow{
  border-top: 4px solid #FF8033;
}

.traffic-card-yellow .traffic-card_icon{
  background: #fbf3da;
  color: #d29a10;
}

.traffic-card-green{
  border-top: 4px solid #FF8033;
}

.traffic-card-green .traffic-card_icon{
  background: #e8f3eb;
  color: #5a8566;
}


/* ===== 首頁上方 6 張論壇卡片 ===== */
.traffic-guide-forum .traffic-grid{
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.traffic-guide-forum .traffic-grid > a{
  display: block;
  text-decoration: none;
  color: inherit;
}

.traffic-guide-forum .traffic-card{
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 16px;
}

.traffic-guide-forum .traffic-card_icon{
  display: none;
}

.traffic-guide-forum .traffic-card h4{
  margin: 0;
  font-size: 18px;
  line-height: 1.45;
}


/* ===== Submit Button ===== */
.submit-btn{
  display: inline-block;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  line-height: 0;
}

.submit-btn img{
  display: block;
  width: 180px;
  height: auto;
}


/* ===== Tablet ===== */
@media (max-width: 1200px){
  .speaker-block{
    display: block;
  }

  .speaker-block-label{
    padding-top: 0;
    margin-bottom: 16px;
  }

  .speaker-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .traffic-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .traffic-card{
    min-height: auto;
  }

  .traffic-guide-forum .traffic-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


/* ===== Mobile / Small Tablet ===== */
@media (max-width: 991px){

  .main_content{
    position: relative;
    z-index: 2;
  }

  .home-card{
    padding-left: 30px;
    padding-right: 30px;
  }

  .home-card .container{
    padding-left: 0;
    padding-right: 0;
  }
}


/* ===== Mobile ===== */
@media (max-width: 768px){
  .header .header_logo{
    width: 220px !important;
    max-width: calc(100% - 90px);
  }

  .header .header_logo > img{
    width: 100% !important;
    height: auto !important;
  }

  .footer_info{
    padding-bottom: calc(90px + env(safe-area-inset-bottom));
  }

  .footer_info_head img{
    width: 300px;
  }

 

  .agenda-table{
    font-size: 14px;
  }

  .agenda-date-place{
    font-size: 16px;
    padding-right: 70px;
  }

  .agenda-room{
    font-size: 12px;
  }

  .agenda-head th{
    font-size: 16px;
  }

  .col-time{
    width: 110px;
  }

  .agenda-table th,
  .agenda-table td{
    padding: 8px 6px;
  }

  .agenda-room-badge{
    width: 64px;
  }

  .agenda-table td.col-topic-p:last-child{
    text-align: center;
  }

  .agenda-day-block{
    scroll-margin-top: 100px;
  }

  .agenda-date-nav{
    gap: 12px;
    margin: 14px 0 22px;
  }

  .agenda-date-link{
    width: calc(50% - 6px);
  }

  .agenda-date-link img{
    width: 100%;
    max-width: 180px;
    margin: 0 auto;
  }

  .speaker-grid{
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .speaker-grid .post-card{
    min-height: auto;
  }

  .speaker-grid .post-card_content{
    padding: 20px 20px 22px;
  }

  .speaker-grid .post-card_title{
    font-size: 20px;
  }

  .speaker-grid .post-card_intro,
  .speaker-grid .post-card_tag{
    font-size: 14px;
  }

  .speaker-grid .btn-cta img{
    width: 150px;
  }

  .speaker-grid.two-speakers{
    grid-template-columns: 1fr;
    max-width: none;
  }

  .spk-modal__dialog{
    width: calc(100% - 20px);
    margin: 20px auto;
    padding: 20px;
  }

  .spk-modal__content{
    flex-direction: column;
  }

  .spk-modal__photo{
    width: 100%;
    flex-basis: auto;
  }

  .traffic-guide{
    margin: 30px 0 24px;
    padding: 22px 16px 18px;
    border-radius: 22px;
  }

  .traffic-guide_title{
    margin-bottom: 20px;
  }

  .traffic-guide_icon{
    font-size: 22px;
    margin-bottom: 6px;
  }

  .traffic-guide_title h3{
    font-size: 26px;
  }

  .traffic-guide_line{
    width: 58px;
    height: 5px;
    margin-top: 10px;
  }

  .traffic-grid{
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .traffic-card{
    border-radius: 18px;
    padding: 18px 16px;
  }

  .traffic-card_icon{
    width: 38px;
    height: 38px;
    font-size: 18px;
    margin-bottom: 12px;
  }

  .traffic-card h4{
    font-size: 22px;
    margin-bottom: 8px;
  }

  .traffic-card_sub{
    font-size: 16px;
    margin-bottom: 10px;
  }

  .traffic-card li{
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 6px;
  }

  .traffic-guide-forum .traffic-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .traffic-guide-forum .traffic-card{
    min-height: 160px;
    padding: 18px 12px;
  }

  .traffic-guide-forum .traffic-card h4{
    font-size: 16px;
  }

  .submit-btn img{
    width: 180px;
    max-width: 70vw;
    height: auto;
  }
}


/* ===== Desktop ===== */
@media (min-width: 992px){

  .footer_info > img{
    margin-top: -90px;
  }
}

.room-cell{
  text-align: center;
  white-space: nowrap;
}

.room-cell a{
  display: inline-block;
  vertical-align: middle;
  margin: 0 3px;
}

.room-cell .agenda-room-badge{
  display: inline-block;
}

/* 手機板 */
@media (max-width: 768px){
  .room-cell{
    white-space: normal;
  }

  .room-cell a{
    margin: 2px;
  }
}

.agenda-table{
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 18px;
  color: #202020;
  font-weight: bold;
}

.agenda-table th,
.agenda-table td{
  border: 1px solid #222;
  padding: 10px 8px;
  vertical-align: middle;
}

.col-time{
  width: 140px;
}

.agenda-table td.col-time-p{
  text-align: center;
  white-space: nowrap;
}

.agenda-table td.col-topic-p{
  text-align: left;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.agenda-table td.col-topic-p a{
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.agenda-table td.room-cell{
  text-align: cneter;
  white-space: nowrap;
}

.agenda-table td.room-cell a{
  display: inline-block;
  vertical-align: middle;
  margin: 0 3px;
}

.agenda-room-badge{
  display: inline-block;
  width: 82px;
  height: auto;
  vertical-align: middle;
}

@media (max-width: 768px){
  .agenda-table{
    font-size: 14px;
  }

  .col-time{
    width: 110px;
  }

  .agenda-table th,
  .agenda-table td{
    padding: 8px 6px;
  }

  .agenda-room-badge{
    width: 64px;
  }

  .agenda-table td.room-cell a{
    margin: 2px;
  }
}

/* 教室欄維持置中 */
.agenda-table td.col-topic-p.room-cell{
  text-align: center !important;
  white-space: nowrap;
  vertical-align: middle;
}

.agenda-table td.col-topic-p.room-cell a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  margin: 0 4px;
}

.agenda-table td.col-topic-p.room-cell .agenda-room-badge{
  display: block;
  width: 82px;
  height: auto;
  margin: 0;
}

/* 手機 */
@media (max-width: 768px){
  .agenda-table td.col-topic-p.room-cell a{
    margin: 2px;
  }

  .agenda-table td.col-topic-p.room-cell .agenda-room-badge{
    width: 64px;
  }
}

@media (max-width: 768px){
  .agenda-table td.col-topic-p.room-cell{
    text-align: center !important;
    white-space: normal !important;
  }

  .agenda-table td.col-topic-p.room-cell a{
    display: block !important;
    width: fit-content;
    margin: 4px auto !important;
  }

  .agenda-table td.col-topic-p.room-cell .agenda-room-badge{
    display: block;
    width: 64px;
    height: auto;
  }
}
.traffic-guide-forum .traffic-card{
  min-height: 130px;
  padding: 14px 12px;
}

.traffic-guide-forum .traffic-card h4{
  font-size: 16px;
  line-height: 1.35;
}
@media (max-width: 768px){
  .index-page .home-card .community-sec{
    padding-top: 30px;
  }
}

/* 平板以下 */
@media (max-width: 991px){
  .index-page .home-card .community-sec{
    padding-top: 30px;
  }
}