* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    padding: 60px 60px 60px 0px;
    background-image: url('/img/temple.gif');
    background-size: cover; /* 確保背景圖片覆蓋整個區域 */
    background-position: center; /* 將背景圖片置中 */
    background-repeat: no-repeat; /* 防止背景圖片重複 */
    border-radius: 8px;
    margin-bottom: 20px;
}

h1 {
    font-size: 36px;
    margin-top: 120px;
    padding-top: 20px;
    padding-left: 30px;
    color: black;
    background-color: #fff;
    text-align: left;
}

h2{
    font-size: 24px;
    margin-bottom: 10px;
    color: black;
    background-color: #fff;
    text-align: left;
}


#liner{
    font-size: 18px;
    font-weight: normal;
    padding-left: 30px;
    padding-bottom: 20px;
    padding-right: 20px;
    margin: 0px 0 0px;
    color: black;
    background-color: #fff;
    text-align: left;
}

.btn-back{
    padding-left: 30px;
    padding-bottom: 0px;
    padding-right: 20px;
    margin: 0px 0, 0 20px;
    color: black;
    background-color: #fff;
    text-align: left;
}

h3 {
    font-size: 1.5em;
    margin: 25px 0 15px;
    color: #3e2a28;
}

.see-more {
    text-align: center;
    margin-bottom: 40px;
    margin-top: 10px;
    font-size: 1.2em;
    font-weight: bold;
    display: inline-block;
    padding: 10px 20px;
    background-color: brown;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
}

.see-more:hover {
    background-color: rgb(116, 29, 29);
}

.see-more:hover {
    text-decoration: none;
}

.section {
    margin: 40px 0;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.contact {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin-top: 40px;
}

.contact a {
    color: #3498db;
    text-decoration: none;
}

.contact a:hover {
    text-decoration: underline;
}

#contact-us{
    color: black;
    background-color: transparent;
}

hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 30px 0;
}

.cta{
    display: flex;
    flex-direction: column;
}

.cta-callout{
    text-align: center;
    margin: 40px 0;
    font-size: 1.2em;
    font-weight: medium;
    display: inline-block;
    padding: 10px 0px;

}

.cta-btn {
    text-align: center;
    margin: 5px 0; /* 調整這裡的值來減小間距 */
    font-size: 1.2em;
    font-weight: bold;
    display: inline-block;
    padding: 10px 20px;
    background-color: brown;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
}

.cta-btn:hover {
    background-color: rgb(116, 29, 29);
}   

.cta > * {
    margin-bottom: 10px; /* 調整這裡的值來設置間距 */
}

.cta > *:last-child {
    margin-bottom: 0; /* 移除最後一個子元素的底部間距 */
}

.copy{
    text-align:center;
    margin-top: 10px;
}

.card-container {
    display: flex;
    gap: 20px; /* 卡片之間的間距 */
    flex-wrap: wrap; /* 如果卡片過多，則換行 */
}

.card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
    text-align: center;
}

.card-content h4 {
    margin: 0 0 10px;
    font-size: 1.2em;
}

.card-content p {
    margin: 0 0 10px;
    color: #555;
}

.card-link {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
}

.card-link:hover {
    text-decoration: underline;
}

.powered-by{
    background-image: url(/img/poweredby-long.svg);
    margin-top: 40px;
    height: 25px;
    width: 100%;
    background-repeat: no-repeat;
    background-position: center; /* 將背景圖片置中 */
    background-size: contain; /* 確保背景圖片按比例縮放 */
    display: flex; /* 使用 flexbox 來居中對齊內容 */
    align-items: center; /* 垂直居中 */
    justify-content: center; /* 水平居中 */
    text-align: center;
}

/* 媒體查詢：在螢幕寬度小於768px時，將卡片佈局改為直排 */
@media (max-width: 768px) {
    .card-container {
        flex-direction: column;
    }
}

/* Applies styles when Reduced Motion is enabled */
@media screen and (prefers-reduced-motion: reduce) {
    .cta-btn {
        transition: none; /* 禁用按鈕的過渡效果 */
    }

    .card {
        animation: none; /* 禁用卡片的動畫效果 */
    }

    .header {
        background-image: url('/img/temple-static.png'); /* 使用靜態圖片替換 GIF */
    }

    /* 其他需要禁用或簡化動畫的元素 */
}

/* Applies styles when Reduced Motion is enabled (alternative syntax) */
@media screen and (prefers-reduced-motion) {
    /* 禁用或簡化動畫和過渡效��� */
    .cta-btn {
        transition: none; /* 禁用按鈕的過渡效果 */
    }

    .card {
        animation: none; /* 禁用卡片的動畫效果 */
    }

    /* 其他需要禁用或簡化動畫的元素 */
}