/* CSS Document */

/* 隐藏活动日期表格 */

/* 隐藏报名和细节链接 */
a[href*="報名"],
a[href*="細節"] {
    display: none !important;
}
/* 隐藏eb-taskbar */
.eb-taskbar,.pop-print {
    display: none !important;
}
.eb-description{
	    border: 1px solid #dbdee1;
}
.eb-box-heading {
    background: transparent;
	border: none;
}
.ebm-upcoming-events {
    width: 100%;
    display: block;
    float: left;
}
.eb-heading{    font-size: 14px;
    line-height: 16px;
    width: 100%;
    display: block;
    text-align: left;
    float: left;
    border-bottom: 1px solid #dbdbdb;
    padding-bottom: 14px;}
.eb-short-description-container {
    width: 50%;
    float: left;
    display: block;
    padding: 3% 0%;
}
.eb-full-description-container{
    width: 100%;
    float: left;
    display: block;
	border-top: 1px solid #666666;
}
/* 调整eb-description主图大小 */
.eb-description-details > a {
    width: 100%;
    display: flex;
    float: left;
    margin: 1%;
}
/* 调整eb-category-1为两列显示 */
.eb-category-1 {
    flex-wrap: wrap !important;
    gap: 20px !important;
}

.eb-category-1 > div {
    flex: 0 0 calc(50% - 10px) !important;
    box-sizing: border-box !important;
}

/* 调整eb-events下的eb-event元素 */
#eb-events div.eb-event:nth-first-child(1) {
    width: 50% !important;
    margin-bottom: 20px !important;
}

#eb-events div.eb-event:not(:first-child) {
    width: 50% !important;
    float: left !important;
    box-sizing: border-box !important;
    padding-right: 10px !important;
	text-align: centerl
}
#eb-events div.eb-event:not(:first-child) img {
    max-height: 250px;
}
#eb-individual-registration-page td{line-height:45px;}
#eb-login-form div:nth-last-child(1){width:100%!important}

#eb-login-form div:nth-last-child(1) {width:100%!important}
.form-actions {
    border-top: 0px;
}
#eb-individual-registration-page div.eb-form-control, .form-actions {
    margin: 0em !important;
    padding: 0px !important;
    width: 100%;
    display: block;
    float: left;
}
#eb-events div.eb-event:first-child img{
    width:100% !important;
    display: block !important;
    margin: 0 auto !important;
}
#eb-events div.eb-event:first-child a.eventcimg {
    width: 48% !important;
    float: left;
    display: block;
}
#eb-events div.eb-event:first-child div.ecase{
    float: left;
    width: 48%;
    display: block;
}
/* 清除浮动 */
.eb-events::after {
    content: "" !important;
    display: table !important;
    clear: both !important;
}

/* 限制.cmsContent文字内容最多4行 */
#eb-events div.eb-description-details{
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
	width: 100%;
}
#eb-events a.eb-event-title-link {
    display: -webkit-box !important;
    -webkit-line-clamp: 1 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width: 100%;
    font-size: 18px;
}
.ebm-upcoming-events div.up-event-item, .ebm-upcoming-events li:last-child, .ebm-upcoming-events > div:last-child {
    width: 31.333333%!important;
}

.pathway,.eb-event-properties-table,.breadcrumb{display:none!important}

/* 设置eb-thumb-left图片4:3比例 */
img.eb-thumb-left {
    width: 100% !important;
    height: calc(100% * 3/4) !important; /* 4:3比例 */
    object-fit: cover !important;
    border-radius: 8px !important; /* 添加圆角效果 */
}
.eb-event-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
	font-family: Libre Baskerville, Noto Serif TC, serif !important;
	text-align: center;
    width: 100%;
}
.eb-description-details p,.eb-description-details li {
	font-family: Libre Baskerville, Noto Serif TC, serif !important;
    font-size: 16px;
    line-height: 150%;
    font-weight: 400;
}
.table-bordered td,.table-bordered{
	border: 0px!important;
}
#eb-individual-registration-page table {
    border: 1px solid #bc2979 !important;
    padding: 1%;
}
#eb-individual-registration-page th {
    background-color: #be2f7d;
    color: #ffffff;
    font-size: 14px;
    padding: 1%;
}
h3.eb-heading {
    display: inline-block;
    margin-right: 20px;
    width: 100%;
    text-align: center;
    color: #be2f7d;
    border-bottom: 1px solid #c9c9c9;
    padding-bottom: 1%;
}
.form-horizontal .control-group {
    margin-bottom: 20px;
    width: 50%;
    display: block;
    float: left;
}
.eb-event-property:nth-child(1) td.eb-event-property-label::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url('/img/event/icon1.png');
  background-size: contain;
  background-repeat: no-repeat;
  margin-right: 5px;
  vertical-align: middle;
}
.eb-button-button-link{display: none!important;}
.eb-event-property:nth-child(6) td.eb-event-property-label::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url('/img/event/icon2.png');
  background-size: contain;
  background-repeat: no-repeat;
  margin-right: 5px;
  vertical-align: middle;
}
.eb-taskbar li {
    float: none;
    margin: 10px auto;
    width: 50%;
}
.btn-primary {
    display: block;
    width: fit-content;
    padding: 7px 30px;
    background: #fff;
    color: #bc2979 !important;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
    font-size: 14px;
    border: 1px solid #bc2979;
    text-transform: capitalize;
    line-height: 18px;
    width: 100%;
    float: none !important;
	font-weight: 600;
}
.btn-primary:hover {
    background: #bc2979;
    color: #fff !important;
    border: 1px solid #bc2979;
}
.eb-event-property:nth-child(7) td.eb-event-property-label::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url('/img/event/icon3.png');
  background-size: contain;
  background-repeat: no-repeat;
  margin-right: 5px;
  vertical-align: middle;
}

.eb-full-description tr:nth-child(even) {
    background-color: #ffedf5;
}
.eb-full-description tr:nth-child(odd){
	background-color: #FFFFFF;
}
#eb-event-info-left tr:nth-last-child(2),#eb-event-info-left tr:nth-last-child(3),.eb-taskbar{display: none;}
.eb-description-details h2,.eb-page-heading {
    font-family: 'Noto Sans TC', verdana, "Microsoft JhengHei";
    font-size: 26px;
    line-height: 34px;
}
#eb-event-info-left tr:nth-child(1),#eb-event-info-left tr:nth-child(2),#eb-event-info-left tr:nth-child(3),#eb-event-info-left tr:nth-child(4),#eb-event-info-left tr:nth-child(6){display:none!important;}
.eb-category-1 div.eb-description-details a{width: 100%}
.eb-description-details table{border: 1px solid #666666;width: 100%; margin: 0 auto;}
.eb-description-details td {
    border: 1px solid #666666;
    padding: 1%;
    vertical-align: top;
    font-size: 16px;
}
.eb-description-details td p {
    margin: 0px;
}
.eb-description-details table{border: 1px solid #666666;}
#eb-event-page div.eb-description{height: auto; overflow: auto;}
.eb-event:nth-child(1) div.eb-description{height: auto; overflow: auto;}
.eb-event:nth-child(1) .eb-box-heading h2, .eb-box-heading h3 {
    height: auto;
}
.eb-event:nth-child(1){width: 100%;display: block;float: left;}
.eb-event:nth-child(1) table{width: 100%;display: block;float: left;}
.eb-event-title{
    font-size: 18px;
}
div.eb-category-1 div.eb-event-properties-table{display: none;}
#eb-event-page{width: 100%;}
#eb-event-details div.eb-description-details a{width: 48%;}
#eb-event-page table{display: table!important;}
#eb-event-page div.eb-taskbar {
    display: block!important;
}
#eb-event-page .table-striped tr{
    display:table-row;
}
    .row-fluid [class*="span"] {
        min-height: 0px;
    }
#eb-individual-registration-page  tr{
    display:table-row;
}
#eb-event-info-left{width: 50%;}
@media (max-width: 500px) {
	.eb-event {
    width: 100%;
}
	#eb-event-details div.eb-description-details a {
    width: 100%;
}
.eb-event:nth-child(1) div.eb-description-details a {
    width: 99%;
}
	.eb-description {
    height: fit-content;
    overflow: auto;
}
.eb-box-heading h2, .eb-box-heading h3 {
    height: fit-content;
}
	.eb-short-description-container {
    width: 100%;
}
	.eb-full-description table{
    width: max-content!important;
    overflow: scroll!important;
    max-width: max-content!important;
}
	#eb-events div.eb-event:first-child a.eventcimg,#eb-events div.eb-event:first-child div.ecase,#eb-events div.eb-event:not(:first-child)  {
    width: 100% !important;
}
	.ebm-upcoming-events div.up-event-item, .ebm-upcoming-events li:last-child, .ebm-upcoming-events > div:last-child {
    width: 47% !important;
}
}