/* hide site title */
.ast-site-title-wrap .site-title{
	display:none;
}

/* mobile br */
@media screen and (min-width: 768px){
	.mobile-break {
		display: none;
	}
}


/* Mobile only: horizontal scroll for tables */
@media (max-width: 767px) {
  /* TablePress */
  .tablepress {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }
  /* wpDataTables */
  .wpDataTablesWrapper {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .wpDataTable {
    white-space: nowrap;
  }
  /* General HTML table */
  table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }
}


/* General ul / li overflow fix (frontend only, exclude Elementor editor) */
body:not(.elementor-editor-active) .site-content ul {
  max-width: 100%;
  box-sizing: border-box;
}
body:not(.elementor-editor-active) .site-content ul li {
  max-width: 100%;
  white-space: normal;
}
/* Mobile: force vertical list */
@media (max-width: 767px) {
  body:not(.elementor-editor-active) .site-content ul {
    display: block !important;
    list-style-type: disc !important;
    list-style-position: outside !important;
    padding-left: 1.2em !important;
  }
  body:not(.elementor-editor-active) .site-content ul li {
    display: list-item !important;
    float: none !important;
    width: 100% !important;
    margin-bottom: 0.6em;
    /* 禁止拆字 */
    word-break: normal !important;
    overflow-wrap: normal !important;
  }
  body:not(.elementor-editor-active) .site-content ul li::marker {
    color: #FD0306;
  }
}


/* Elementor Nav Menu + WPML dropdown: remove extra blank space in language items */

/* 子選單每一個語系項目連結，縮成只包住旗子 */
.elementor-nav-menu--dropdown .elementor-sub-item.menu-link {
  width: auto !important;
  min-width: 0 !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}
/* 旗子不要被加右邊距 */
.elementor-nav-menu--dropdown .elementor-sub-item.menu-link .wpml-ls-flag {
  margin: 0 !important;
}
/* 下拉容器寬度也跟著縮（避免整塊下拉框太寬） */
.elementor-nav-menu--dropdown.sub-menu {
  width: auto !important;
  min-width: 0 !important;
}