﻿:root {
    --shadow-opacity: 0.2; /* 可調整的陰影不透明度 */
    --shadow-blur: 20px; /* 可調整的陰影模糊半徑 */
}

@media ( min-width: 768px ) {
    .fs-md-1_125rem
    {
        font-size: 1.125rem !important;
    }
}

@media ( max-width: 768px ) {
    .offers_item {
        margin: 5px 0;
    }

    .content-preview {
        height: 2rem;
        max-height: 3.5rem;
    }

    .single_offers {
        padding: 5px;
    }

    .single_offers .about_thumb.cover {
        margin-bottom: 5px;
    }
}

.cover {
    max-width: 100%; /* 確保在小螢幕上不會溢出 */
    overflow: hidden;
    border-radius: 5px;
}

/* 確保圖片正確填充容器 */
.cover img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 確保圖片填充整個容器且不變形 */
    border-radius: 15px;
}

/* 調整標題的上邊距 */
.single_offers h3 {
    margin-top: 0; /* 移除標題的上邊距 */
    margin-bottom: 10px; /* 確保標題與內容之間有適當間距 */
}

.books_image_div {
    width: 100%;
    height: 25vh;
    text-align: center;
}

.books_img {
    width: 65% !important;
    object-fit: fill;
}

.col-5 {
    flex: 0 0 auto;
    width: 20%;
}

.books_name:hover {
    color: #009DFF;
}

.slider_image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.room_thumb_4_slider {
    width: 50vw !important;
    height: 50vh !important;
}
/* Banner區塊樣式 */
.banner-section {
    width: 100%;

    /* 確保與導航欄之間的間距和層疊順序 */
    @media ( max-width: 767.98px ) {
        margin-top: 0;
    }
}

.room_thumb_2_slider {
    width: 100vw !important;
    height: 50vh !important;
}

.room_thumb_1_slider {
    width: 100vw !important;
    height: 100vh !important;
}

.themeBooks_slider {
    height: 100vh !important;
    width: 100vw !important;
}

.overflow-x-auto {
    overflow-x: auto;
}

.slick-prev:before,
.slick-next:before {
    color: black;
    font-size: 2rem;
}

.slick-prev {
    left: -30px;
    z-index: 1;
}

.slick-next {
    right: -30px;
    z-index: 1;
}

.slick-dots {
    bottom: -40px;
}

.slick-dots li button:before {
    font-size: 12px;
}

.booksRoom_card_h {
    height: 45vh !important;
}

.d-flex.align-items-end.flex-grow-1 {
    display: flex;
    align-items: flex-end;
    flex-grow: 1;
}

.show_more {
    text-decoration: none;
    font-weight: 600;
    color: #333;
    transition: all 0.3s ease;
}

.show_more:hover {
    color: #009DFF;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: #009DFF;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.donate-section-title {
    font-size: 1.45em;
    color: #474443;
}

.donate-section-subtitle {
    font-size: 20px;
    color: #474443;
}

.features_list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.features_list li {
    margin-bottom: 8px;
    color: #555;
}

.features_list li i {
    color: #009DFF;
    margin-right: 8px;
}

.book_now, .book_now_small {
    display: inline-block;
    background-color: #E0E0E0;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.book_now:hover, .book_now_small:hover {
    background-color: #009DFF;
    color: white;
    border-color: #009DFF;
}

/* 標準按鈕特定樣式 */
.book_now {
    padding: 2px 12px;
    @media (min-width: 768px) and (max-width: 1023px) {
        padding: 2px 4px;
    }
}

/* 小型按鈕特定樣式 */
.book_now_small {
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
}

.offers_slider .slick-slide {
    padding: 10px;
}

.offers_item .single_offers {
    box-shadow: 0 8px var(--shadow-blur) rgba(0, 0, 0, var(--shadow-opacity));
    border-radius: 20px;
    background-color: #fff;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 10px;
}


.offers_item .single_offers:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, calc(var(--shadow-opacity) + 0.1));
    transform: translateY(-5px);
}

.content-preview {
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.5;
    overflow: hidden;
    /* text-overflow: ellipsis; */
    /* display: -webkit-box; */
    /* -webkit-line-clamp: 3; */
    /* -webkit-box-orient: vertical; */
    /* height: 2.5rem; */
    /* max-height: 4.5rem; */
    margin: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.single_offers {
    /* display: flex; */
    /* flex-direction: column; */
    height: 100%;
    padding-top: 10px;
    /*border: 1px solid #eee;*/
    border-radius: 15px;
    transition: all 0.3s ease;
    background-color: #fff;
    justify-content: space-between;
}

.single_offers:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.translate-middle-y-custom
{
    transform: translateY(-32%) !important;;
}