/********** Template CSS **********/
:root {
    --primary: #FE5D37;
    --light: #FFF5F3;
    --dark: #103741;
}


/* 會將所有顏色完全轉換為灰階 */
/*
html {
    filter: grayscale(100%);
  }
*/

body {
    font-family: 'Arial', sans-serif; /* 通用字體 */
    margin: 0;
    padding: 0;
    line-height: 1.6;
    font-size: 16px; /* 設定基準字體大小 */
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

/*** 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;
}

/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary {
    color: #FFFFFF;
}

.btn-square, .btn-sm-square, .btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 50px;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

/*** Heading ***/
h1, h2, h3, h4, .h1, .h2, .h3, .h4, .display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: 'Lobster Two', cursive;
    font-weight: 700;
}

h5, h6, .h5, .h6 {
    font-weight: 600;
}

.font-secondary {
    font-family: 'Lobster Two', cursive;
}

button {
    /* Basic button styling */
    padding: 8px 16px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    background-color: #FFD700; /* Yellow background */
    color: #000000; /* Black text for better contrast */
    cursor: pointer;
    transition: background-color 0.3s ease;
    
    /* Font settings for Chinese text */
    font-family: "Microsoft JhengHei", "微軟正黑體", sans-serif;
  }
  
  /* Hover effect */
  button:hover {
    background-color: #FFC400; /* Slightly darker yellow on hover */
  }
  
  /* Active/Click effect */
  button:active {
    transform: translateY(1px);
  }

/*** Navbar ***/
.navbar .navbar-nav .nav-link {
    padding: 30px 15px;
    color: var(--dark);
    font-weight: 500;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 5px;
    transition: .5s;
}

.navbar .dropright-toggle::after {
    border: none;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 5px;
    transition: .5s;
}

.navbar .dropright-toggle[aria-expanded=true]::after {
    transform: rotate(180deg);
}

.navbar .dropdown-toggle[aria-expanded=true]::after {
    transform: rotate(-180deg);
}

.navbar-brand img {
    max-width: 100%;
    /* 確保 logo 不會超過容器 */
    height: auto;
    /* 自動調整高度以保持比例 */
}

.navbar {
    padding: 0.5rem 1rem;
    /* 調整 Navbar 的內邊距 */
}

.navbar-nav {
    margin-left: auto;
    /* 將導航選項推到右側 */
}
/* Responsive Navbar */

/*** Dropright Menu Styles ***/
.dropdown-menu.dropright {
    left: 100%; /* 使下拉菜單顯示在右側 */
    top: 0; /* 將下拉菜單與觸發元素對齊 */
    margin-left: 0.5rem; /* 增加左邊距以使菜單不與觸發元素緊貼 */
    display: none; /* 默認不顯示 */
    opacity: 0; /* 初始透明度為0 */
    transition: opacity 0.2s ease-in-out; /* 添加過渡效果 */
}

/* 當 dropright 菜單顯示時 */
.dropdown-menu.dropright.show {
    display: block; /* 顯示菜單 */
    opacity: 1; /* 透明度變為1 */
}

/* 鼠標懸停時的樣式 */
.nav-item.dropright:hover .dropdown-menu.dropright {
    display: block; /* 鼠標懸停時顯示菜單 */
}

/* 菜單項的樣式 */
.dropdown-menu.dropright .dropdown-item {
    padding: 8x 8px; /* 菜單項的內邊距 */
    color: var(--dark); /* 菜單項的顏色 */
}

/* 鼠標懸停菜單項的樣式 */
.dropdown-menu.dropright .dropdown-item:hover {
    background-color: var(--primary); /* 鼠標懸停顏色 */
    color: #fff; /* 鼠標懸停時的文字顏色 */
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        margin-top: 15px;
        border-top: 1px solid #EEEEEE;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        top: calc(100% - 15px);
        margin-top: 0;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
    
}

/*** Header ***/
.header-carousel {
    position: relative;
    overflow: hidden; /* 隱藏溢出的部分 */
}


.header-carousel .owl-carousel-item img {
    max-width: auto; /* 確保圖片不超出容器 */
    height: auto; /* 自動調整高度以保持比例 */
    object-fit: cover; /* 保持圖片比例 */
}

/* 確保所有設備上的文字樣式一致 */
.header-carousel .owl-carousel-item h1 {
    font-size: 30px; /* 統一字體大小 */
    font-weight: 600; /* 統一字體粗細 */
    color: #fff; /* 根據你的配色調整顏色 */
}

.header-carousel .owl-carousel-item p {
    font-size: 16px; /* 統一字體大小 */
    font-weight: 400; /* 統一字體粗細 */
    color: rgba(255, 255, 255, 0.8); /* 根據你的配色調整顏色 */
}

.header-carousel .owl-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between; /* 使按鈕在兩端 */
    width: 100%; /* 使導航按鈕佔滿整個寬度 */
    padding: 0 8%; /* 內邊距，調整按鈕距離邊緣的距離 */
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: transparent;
    border: 1px solid #FFFFFF;
    border-radius: 45px;
    font-size: 22px;
    transition: .5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.page-header-circualars {
    background: linear-gradient(rgba(0, 0, 0, .2), rgba(0, 0, 0, .2)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, .5);
}

/*** Facility ***/
.facility-item .facility-icon {
    position: relative;
    margin: 0 auto;
    width: 100px;
    height: 100px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.facility-item .facility-icon::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, .9);
    transition: .5s;
    z-index: 1;
}

.facility-item .facility-icon span {
    position: absolute;
    content: "";
    width: 15px;
    height: 30px;
    top: 0;
    left: 0;
    border-radius: 50%;
}

.facility-item .facility-icon span:last-child {
    left: auto;
    right: 0;
}

.facility-item .facility-icon i {
    position: relative;
    z-index: 2;
}

.facility-item .facility-text {
    position: relative;
    min-height: 250px;
    padding: 30px;
    border-radius: 100%;
    display: flex;
    text-align: center;
    justify-content: center;
    flex-direction: column;
}

.facility-item .facility-text::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, .9);
    transition: .5s;
    z-index: 1;
}

.facility-item .facility-text * {
    position: relative;
    z-index: 2;
}

.facility-item:hover .facility-icon::before,
.facility-item:hover .facility-text::before {
    background: transparent;
}

.facility-item * {
    transition: .5s;
}

.facility-item:hover * {
    color: #FFFFFF !important;
}

/*** About ***/
.about-img img {
    transition: .5s;
}

.about-img img:hover {
    background: var(--primary) !important;
}

/*** Classes ***/
.classes-item {
    transition: .5s;
}

.classes-item:hover {
    margin-top: -10px;
}

/*** Team ***/
.team-item .team-text {
    position: absolute;
    width: 250px;
    height: 250px;
    bottom: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: #FFFFFF;
    border: 17px solid var(--light);
    border-radius: 250px;
    transition: .5s;
}

.team-item:hover .team-text {
    border-color: var(--primary);
}

/*** Testimonial ***/
.testimonial-carousel {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 576px) {
    .testimonial-carousel {
        padding-left: 4rem;
        padding-right: 4rem;
    }
}

.testimonial-carousel .testimonial-item .border {
    border: 1px dashed rgba(0, 185, 142, .3) !important;
}

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 100%;
    height: 45px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    z-index: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--primary);
    border-radius: 45px;
    font-size: 20px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    background: var(--dark);
}

/*** Footer ***/
.footer .btn.btn-social {
    margin-right: 5px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 45px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    border-color: var(--primary);
    background: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    font-size: 16px;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary) !important;
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .form-control {
    border-color: rgba(255, 255, 255, 0.5);
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: #FFFFFF;
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .1);
}

.footer .copyright a:hover,
.footer .footer-menu a:hover {
    color: var(--primary) !important;
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}

/* 針對最大寬度為 576px 的設備 */
@media (max-width: 576px) {
    body {
        font-size: 15px; /* 手機設備上的字體大小 */
    }
	
.header-carousel .owl-carousel-item {
    min-width: auto; /* 自動寬度，根據內容調整 */
    min-height: auto; /* 自動高度，根據內容調整 */
}
    
    .navbar .navbar-nav .nav-link {
        padding: 15px 2; /* 導航鏈接的間距 */
        font-size: 14px; /* 導航鏈接的字體大小 */
    }

    .header-carousel .owl-carousel-item {
        min-height: 150px; /* 調整手機圖片的最小高度 */
    }

    .header-carousel .owl-carousel-item h1 {
        font-size: 20px; /* 調整手機上的標題字體大小 */
    }

    .header-carousel .owl-carousel-item p {
        font-size: 12px; /* 調整手機上的段落字體大小 */
    }

    .footer .btn.btn-link {
        font-size: 12px; /* 手機上的鏈接字體大小 */
    }

    .footer .copyright {
        font-size: 10px; /* 調整版權文字大小 */
    }
}

@media (min-width: 315px) and (max-width: 1400px){
    body {
        font-size: 15px; /* 手機設備上的字體大小 */
    }

    .navbar .navbar-nav .nav-link {
        font-size: 15px; /* 調整導航鏈接的字體大小 */
        padding: 10px 10px; /* 調整導航鏈接的內邊距 */
    }

.header-carousel .owl-carousel-item {
    min-width: auto; /* 自動寬度，根據內容調整 */
    min-height: auto; /* 自動高度，根據內容調整 */
}

    .header-carousel .owl-carousel-item h1 {
        font-size: 24px; /* 調整手機上的標題字體大小 */
    }

    .header-carousel .owl-carousel-item p {
        font-size: 14px; /* 調整手機上的段落字體大小 */
    }

    .footer .copyright {
        font-size: 10px; /* 調整版權文字大小 */
    }

    .btn {
        font-size: 14px; /* 調整按鈕的字體大小 */
        padding: 8px 12px; /* 調整按鈕的內邊距 */
    }

    .facility-item .facility-text {
        min-height: 200px; /* 調整設施項目的最小高度 */
    }

    .facility-item .facility-icon {
        width: 80px; /* 調整設施圖標的寬度 */
        height: 80px; /* 調整設施圖標的高度 */
    }

    .team-item .team-text {
        width: 200px; /* 調整團隊成員文本的寬度 */
        height: 200px; /* 調整團隊成員文本的高度 */
    }

    .team-item:hover .team-text {
        border-color: var(--primary); /* 調整懸停邊框顏色 */
    }
}


.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 10px;
    min-width: 315px;
}

.image-container img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* For screens wider than 768px (typical tablet/desktop breakpoint) */
@media screen and (min-width: 768px) {
    .image-container {
        gap: 100px;
    }
}

.style-line {
    border: 0;
    height: 5px;
    background-color: rgb(235, 90, 7);
    margin: 20px 0; /* 上下間距 */
}

#passwordModal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}
.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 300px;
}
#passwordInput {
    width: 100%;
    padding: 5px;
    margin: 10px 0;
}
.button-group {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}
.button-group button {
    width: 45%;
    padding: 5px;
}
        /* 響應式設計，確保在小屏幕上也有良好顯示 */
        @media screen and (max-width: 600px) {
            .modal-content {
                width: 90%;
                margin: 20% auto;
            }
        }

        /* Table Start */
        .centered-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 100%;
            max-width: auto; /* Adjust this value as needed */
            margin: 0 auto;
        }
        table {
            width: 80%;
            border-collapse: collapse;
            background-color: #fff;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }

        th {
            background-color: #f2f2f2;
            font-weight: bold;
            text-align: center; /* Keep header text center-aligned */
        }
         
        th, td {
            padding: 10px;
            text-align: left;
            border-bottom: 1px solid #131313;
            border-top: 1px solid #131313;
            border-left: 1px solid #131313;
            border-right: 1px solid #131313;
        }
        
        tr:nth-child(even) {
            background-color: #f9f9f9;
        }
        
        tr:hover {
            background-color: #f5f5f5;
        }
        
          /* New styles for text colors */
    th {
        color: #333333; /* Dark gray for header text */
    }
    td {
        color: #444444; /* Slightly lighter gray for cell text */
    }
    td a {
        color: #0066cc; /* Blue for links */
        text-decoration: none; /* Remove underline from links */
    }
    td a:hover {
        text-decoration: underline; /* Add underline on hover */
    }

        @media (max-width: 600px) {
            main {
                width: 95%;
            }
        }

                /* Table End */
