/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 1.0.1
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/
.otgs-development-site-front-end {
    display: none !important;
}

* {
    font-family: "Montserrat", "Noto Sans TC", "Roboto", "Microsoft JhengHei";
}

a {
    color: #727171;
    font-family: "Montserrat", "Noto Sans TC", "Roboto", "Microsoft JhengHei";
}

body {
    font-family: "Montserrat", "Noto Sans TC", "Roboto", "Microsoft JhengHei";
}


div[data-elementor-type="header"]>section:nth-of-type(1) .elementor-column-gap-no {
    height: 0;
    min-height: 0;
}

hr {
    border: none;
    border-top: 1px solid #eee !important;
    margin: 1.5rem 0 !important;
}

b,
strong {
    font-weight: 500;
}

/* ============================================ 首頁 Slider */
.v123-home-slier .elementor-slide-description {
    margin-bottom: 10%;
}

.v123-home-slier hr {
    width: 1em;
    border-top: 2px solid #fff;
}

.elementor-slides .swiper-slide-inner .elementor-slide-heading {
    margin-bottom: 1rem !important;
}

.v123-home-slier .elementor-slide-description h2 {
    line-height: 1.5em;
    font-size: 3.5rem;
    font-weight: 400;
    margin: 0;
}

body[data-elementor-device-mode="mobile"] .v123-home-slier .elementor-slide-description h2 {
    font-size: 1.2rem;
}

/* 增加平板版本的字體大小 */
body[data-elementor-device-mode="tablet"] .v123-home-slier .elementor-slide-description h2 {
    font-size: 1.8rem;
}

.v123-home-slier .elementor-slide-description h3 {
    line-height: 1.5em;
    font-size: 3.5rem;
    font-weight: 400;
    margin: 0;
}

body[data-elementor-device-mode="mobile"] .v123-home-slier .elementor-slide-description h3 {
    font-size: 1.2rem;
    font-weight: 400;
}

/* 增加平板版本的字體大小 */
body[data-elementor-device-mode="tablet"] .v123-home-slier .elementor-slide-description h3 {
    font-size: 2.3rem;
}

.v123-home-slier .elementor-slide-description h5 {
    font-weight: medium;
    font-size: 1.2rem;
    font-family: 'montserrat', sans-serif;
}

/* 增加平板版本的字體大小 */
body[data-elementor-device-mode="tablet"] .v123-home-slier .elementor-slide-description h5 {
    font-size: 0.95rem;
}


.v123-inline-menu-column a {
    transition: color 0.3s ease;
}

.v123-inline-menu-column h4 a:hover {
    color: var(--e-global-color-primary);
}

.v123-inline-menu-column ul li a:hover {
    color: var(--e-global-color-primary);
}

/* ============================================ 倒數計時器 */
.v123-counters .elementor-counter-number-wrapper {
    display: inline-flex !important;
    align-items: flex-end !important;
    gap: 0.25em;
    line-height: 1;
}

.v123-counters .elementor-counter-number-prefix,
.v123-counters .elementor-counter-number-suffix {
    display: inline-flex;
    align-items: flex-end;
    line-height: 1;
    font-size: 1rem;
    font-weight: 300;
}

.v123-counters .elementor-counter-number {
    line-height: 1;
    margin-bottom: -0.2em;
}


/* ============================================ header 黏 */
.v123-hide-sticky .elementor-sticky:not(.elementor-sticky--active) {
    height: 0;
    opacity: 0;
    overflow: hidden;
}

.v123-hide-sticky .elementor-sticky.elementor-sticky--active {
    height: inherit;
    opacity: 1;
    overflow: inherit;
}







.apache-toggle .elementor-toggle-icon {
    position: absolute !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 3rem !important;
    height: 3rem !important;
}

.apache-toggle .elementor-toggle-icon svg {
    width: 100% !important;
    height: 100% !important;
}






/**
* 這個樣式是為了讓 Call to Action 的背景和內容在 hover 時有淡入淡出的效果
*/

/* ============================================ Call to Action 效果 */
.apache_call_action .elementor-cta__bg-overlay,
.apache_call_action .elementor-cta__content {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.apache_call_action .elementor-cta__bg-overlay {
    background-color: transparent !important;
    transition: all 0.5s ease !important;
    -webkit-transition: all 0.5s ease !important;
    -moz-transition: all 0.5s ease !important;
    -ms-transition: all 0.5s ease !important;
    -o-transition: all 0.5s ease !important;
}

.apache_call_action .elementor-cta__content {
    transition: all 0.5s ease;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -ms-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
}

/* 初始狀態和 hover 狀態的樣式 */
.apache_call_action.active .elementor-cta__bg-overlay,
.apache_call_action.active .elementor-cta__content,
.apache_call_action:hover .elementor-cta__bg-overlay,
.apache_call_action:hover .elementor-cta__content {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.apache_call_action.active .elementor-cta__bg-overlay,
.apache_call_action:hover .elementor-cta__bg-overlay {
    background-color: var(--e-global-color-primary) !important;
}




.apache-gallery.elementor-widget-image-carousel .elementor-swiper-button-prev {
    display: none;
}

.apache-gallery.elementor-widget-image-carousel .elementor-swiper-button-next {
    right: 0;
    top: 1.5rem;
    transform: translate3d(50%, 0, 0);
}



/* ============================================ 文章列表連結 */
.apache-posts-list .elementor-post__card {
    position: relative;
}

.apache-posts-list .apache-posts-list__link-wrapper {
    position: absolute;
    inset: 0;
    z-index: 9999;
    /* 保證能點 */
    cursor: pointer;
    display: block;
    pointer-events: auto;
}

/* 圖片 hover 放大效果 */
/* 修正圖片放大時偏移問題 */
.apache-posts-list .elementor-post__thumbnail {
    overflow: hidden;
    /* 避免圖片放大時溢出 */
    position: relative;
    /* 讓內層絕對定位圖片基準 */
}

.apache-posts-list .elementor-post__thumbnail img {
    position: absolute;
    /* 明確讓圖片絕對定位 */
    top: 50%;
    left: 50%;
    width: 100%;
    /* 填滿容器 */
    height: 100%;
    object-fit: cover;
    /* 確保圖片等比例填滿方框 */
    transform: translate(-50%, -50%);
    /* 圖片置中 */
    transition: transform 0.3s ease;
    /* 放大過渡效果 */
    will-change: transform;
}

/* 放大效果 */
.apache-posts-list .elementor-post__card:hover .elementor-post__thumbnail img {
    transform: translate(-50%, -50%) scale(1.1);
}


.apache-posts-list .elementor-post__title a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    /* 限定2行 */
    overflow: hidden;
    text-overflow: ellipsis;
    /* 超過顯示... */
}

.apache-posts-list .elementor-post__excerpt p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    /* 限定5行 */
    overflow: hidden;
    text-overflow: ellipsis;
    /* 超過顯示... */
}


/* ============================================ fix */
.elementor-element-528129d{
    display: none;
}