
section[data-id] {
    position: relative;
    z-index: 1;
    overflow: hidden; /* 確保遮罩與背景不會溢出圓角或邊界 */
}

/* 遮罩層：同樣針對 section[data-id] 的偽元素 */
section[data-id]::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1; /* 確保在背景圖之上，但在內容文字之下 */
    pointer-events: none;
    
    /* 接收來自 JSON 設定的 CSS 變數 */
    background-color: var(--ol-color, transparent);
    opacity: var(--ol-opacity, 0);
    transition: opacity 0.3s, background-color 0.3s;
}

/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}
/*** Spinner End ***/

.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 50px;
    transition: 0.5s;
    z-index: 99;
}

.x-small{ font-size:13px!important;}

p,h1,h2,h3,h4,h5,h6,div{word-wrap:break-word!important;}


.VimeoIframe,.YTiframe {
	padding-top:56.25%;
	position:relative;
	overflow:hidden;
}
.VimeoIframe iframe,.YTiframe iframe {
	position:absolute;
	height:100%;
	width:100%;
	left:0px;
	top:0px;
	border: 0;
	z-index: 9;
}

.VideoBackground {
	position:absolute;
	width:100%;
	height:100%;
	top:0;
	left:0;
	cursor:auto;
	background-color:transparent;
	z-index: 10;
}

/*** Testimonial ***/
.testimonial-carousel .owl-item {
    position: relative;
}

.testimonial-carousel .owl-item::before {
    position: absolute;
    content: "\f10d";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: .1;
}

.testimonial-carousel .owl-item img {
    position: relative;
    width: 100px;
    height: 100px;
    z-index: 1;
}

.testimonial-carousel .owl-item,
.testimonial-carousel .owl-item * {
    transition: .5s;
}

.testimonial-carousel .owl-item span {
    letter-spacing: 2px;
}

.testimonial-carousel .owl-item.center .bg-light {
    background: var(--bs-primary) !important;
}

.testimonial-carousel .owl-item.center .bg-light * {
    color: var(--bs-dark) !important;
}

.testimonial-carousel .owl-nav {
    margin-top: 25px;
    display: flex;
    justify-content: center;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin: 0 5px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--bs-dark);
    background: var(--bs-primary);
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--bs-white);
    background: var(--bs-dark);
}



.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--bs-primary)!important;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link:hover {
    color: var(--bs-primary)!important;
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: rgba(255, 255, 255, .5);
    margin-right: 10px;
}
