/* 預設樣式 (適用於所有螢幕，但主要針對桌面/一般螢幕) 
    ---
    設定：
    1. 桌面輪播 (myCarousel) 預設為顯示 (display: block)。
    2. 手機輪播 (myCarousel-mobile) 預設為隱藏 (display: none)。
*/

#myCarousel {
    display: block;
    /* 桌面螢幕顯示 */
}

#myCarousel-mobile {
    display: none;
    /* 手機螢幕預設隱藏 */
}


/* 媒體查詢：適用於最大寬度 767px 的裝置
    ---
    通常 768px 以下被認為是手機/平板的範圍，這裡使用 767px 作為界線。
    ---
    設定：
    1. 桌面輪播 (myCarousel) 變為隱藏 (display: none)。
    2. 手機輪播 (myCarousel-mobile) 變為顯示 (display: block)。
*/
@media (max-width: 767px) {

    #myCarousel {
        display: none;
        /* 在手機上隱藏桌面輪播 */
    }

    #myCarousel-mobile {
        display: block;
        /* 在手機上顯示手機專用輪播 */
    }

    h1 {
        font-size: 3rem;
        line-height: 1;
        padding-left: 20px;
    }

}


h1 {
    font-size: 6.5rem;
    letter-spacing: -12px;
}

a {
    color: #6c757d;
}

a:hover {
    color: #000;
}

.bg-dark {
    background-color: #ffffff00 !important;
}

.btn-outline-primary {
    color: #055160;
    border-color: #b3cbc8;
}

.btn-outline-primary:hover {
    color: #000;
    background-color: #A4D4D7;
}

.navbar-brand {
    display: flex;
    height: 68px;
}

.me-auto {
    margin-left: auto !important;
}


/* Navbar fade-out effect */
.navbar-fade {
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.navbar-hidden {
    opacity: 0;
    transform: translateY(-100%);
}

/* Custom CSS for the Carousel */
.carousel {
    margin-bottom: 4rem;
}

.carousel-item {
    height: 100vh;
    /* Set height to 100% of the viewport height for full-screen effect */
    background-color: #fff;
    /* Default background color */
    position: relative;
    /* Position relative for absolute children */
}

.carousel-item img {
    position: absolute;
    top: 0;
    left: 0;
    min-width: 100%;
    height: 100%;
    object-fit: cover;
    /* This is the key for the cover effect */
    object-position: center;
    /* This centers the image */
    z-index: 1;
    /* Place the image behind the text */
}

.carousel-caption {
    top: 50%;
    left: 15%;
    /* 15% from the left edge */
    transform: translateY(-50%);
    /* Center vertically */
    text-align: left;
    /* Align text to the left */
    right: auto;
    /* Override default right alignment */
    width: 70%;
    /* Give it a defined width to not stretch across the whole screen */
    padding-bottom: 0;
    /* Remove default bottom padding */
    z-index: 101;
    /* Ensure text is above the image */
}

.carousel-caption {
    width: 27%;
}

.btn-primary {
    border-radius: 30px;
    background-color: #055160;
}

/* Responsive adjustments for the text on smaller screens */
@media (max-width: 767px) {
    .carousel-caption {
        left: 5%;
        /* Adjust left padding for smaller screens */
        width: 90%;
        top: 42%;
    }
}

.modal-dialog {
    max-width: 800px;

}

media (min-width: 640px) {
    .modal-dialog {
        max-width: 800px;
        margin: 1.75rem auto;
    }
}

.carousel-item img {
    position: inherit;
}


#testimonialCarousel {
    padding-top: 30px;
}

/* 移除固定高度，讓內容自動撐開 */
#testimonialCarousel .carousel-inner {
    height: auto;
}

/* 確保每個輪播項目都能自動適應內容 */
#testimonialCarousel .carousel-item {
    height: auto;
}

/* 針對圖片進行響應式調整 */
#testimonialCarousel img {
    /* 圖片寬度填滿其父容器 (col) */
    width: 100%;
    /* 保持圖片的寬高比，不變形 */
    height: auto;
    /* 在小螢幕上，圖片頂部和底部留一些空間 */
    margin-top: 10px;
    margin-bottom: 10px;
}

/* 在中等螢幕(md)及以上，讓圖片與文字垂直置中 */
@media (min-width: 768px) {
    #testimonialCarousel .row.g-4 {
        align-items: center;
    }
}

.bg-light {
    padding: 60px 0;
}

.display-6 {
    color: #d72575;
}

.mark,
mark {
    background-color: #F2BBDC;
}

ul {
    list-style-type: none;
}

footer {
    background: #055160;
    color: #b3cbc8;
}

.btntop,
.fa-user-secret {
    color: #b3cbc8;

}

.fab {
    font-weight: 400;
    color: #b3cbc8;
}
