/* Instant Reviews CSS - Based on instant_posts.css with cyan/blue color scheme */

/* Container for the masonry grid */
#masonry-container-review {
    display: block;
    column-count: 5; /* 最多顯示5列 */
    column-gap: 1.5rem;
    padding-bottom: 20px;
}

@media (max-width: 1232px) {
    #masonry-container-review {
        column-count: 4;
    }
}

@media (max-width: 1020px) {
    #masonry-container-review {
        column-count: 3;
    }
}

@media (max-width: 640px) {
    #masonry-container-review {
        column-count: 2;
    }
}

@media (max-width: 400px) {
    #masonry-container-review {
        column-count: 1;
    }
}

/* Individual card styling */
#ir_section .masonry-item {
    background: #272626;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: inline-block;
    width: 100%;
    position: relative;
    text-decoration: none;
    color: whitesmoke;
}

/* Hover effect for card */
#ir_section .masonry-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Image styling within card */
#ir_section .masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
    border-radius: 8px 8px 0 0;
}

/* Slight zoom effect on image hover */
#ir_section .masonry-item:hover img {
    transform: scale(1.05);
    border-radius: 0;
}

/* Author photo and name styling with motion effect */
.client-info {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    align-items: center;
    padding: 1px;
    border-radius: 17px;
    background: #222A;
    color: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#ir_section .masonry-item:hover .client-info {
    transform: translate(-30px, -30px);
    opacity: 1;
}

#ir_section .masonry-item .client-name {
    color: white;
    margin: 0 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.carousel-author-info{
    display: flex;
    justify-content: right;;
    gap: 5px;
}
#ir_section .author-photo, #ir_section .client-photo {
    width: 32px;
    height: 32px;
    border-radius: 50%; /* 圓形效果 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* 添加陰影 */
    overflow: hidden;
    align-self: anchor-center;
}

#ir_section .author-photo img, #ir_section .client-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top; /* 圖像對齊北面 */
}

#ir_section .author-name {
    color: #dceae8;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Card content styling */
#ir_section .card-body {
    padding: 15px;
}

#ir_section .card-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

#ir_section .masonry-item:hover .card-title {
    color: #0073e6;
}

#ir_section .card-text {
    color: #535;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

#ir_section .text-muted {
    color: #A8A;
    font-size: 0.8rem;
    text-align: right;
}

/* Load more button styling */
#ir_section .load-more-container {
    text-align: center;
    margin-top: 20px;
}

#jssor_carousel_review #load-more-btn {
    background-color: #0073e6;
    color: #fff;
    padding: 10px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#jssor_carousel_review #load-more-btn:hover {
    background-color: #005bb5;
}


#ir_section .carousel-header{
    font-family: 'Arial', sans-serif; /* 簡潔字型 */
    font-size: 2em; /* 顯眼字體大小 */
    color: #00bcd4; /* 醒目的青藍色 */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3); /* 輕微陰影讓字更立體 */
    background: linear-gradient(135deg, #00bcd4, #0097a7); /* 斜向漸變背景 */
    background-clip: text; /* 文字填充漸變效果 */
    -webkit-background-clip: text; /* 文字填充漸變效果 */
    -webkit-text-fill-color: transparent; /* 清除字體顏色讓背景顯示 */
    padding: 10px 0; /* 上下內間距 */
    border-bottom: 3px solid #00bcd4; /* 底部邊框加強結構感 */
    text-align:center;
}
#ir_section .carousel-container {
    width: 100%;
    max-width: 1200px; /* Maximum width for the core carousel HTML */
    margin: 0 auto;
    overflow: hidden;
    padding: 10px 0;
}

#ir_section .carousel-slide img.post-image {
    width: 40%;
    height: 80%;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 1rem;
}

#ir_section .carousel-content {
    width: 59%;
    padding: 1rem 0;
    box-sizing: border-box;
    color: #fff;
}

#ir_section .carousel-author span{
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    overflow: hidden;
}

#ir_section .carousel-author {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    color: lightblue;
}

#ir_section .carousel-author img {
    border-radius: 50%;
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

#ir_section .carousel-title {
    display: -webkit-box;
    line-clamp: 1;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    font-weight: bold;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 5px;
    font-size: 1rem;
    color: lightcyan;
}

#ir_section .carousel-content-text {
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: antiquewhite;
}
#ir_section .masonry-item .carousel-content-text {
    line-clamp: none;
    -webkit-line-clamp: none;
}
 

#ir_section .carousel-datetime {
    font-size: 0.8rem;
    color: #a8d5ba;
}

#ir_section .carousel-bullet-navigator, .carousel-arrow-left, .carousel-arrow-right {
    z-index: 10; /* 確保導航按鈕顯示在最上層 */
    visibility: visible; /* 確保導航按鈕不被隱藏 */
    opacity: 1; /* 讓導航按鈕不會被隱藏 */
}
#ir_section .carousel-arrow-left, .carousel-arrow-right {
    width: 40px;
    height: 40px;
    display: flex !important;
    position: absolute;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border-radius: 50%;
    z-index: 20;
    cursor: pointer;
}

#ir_section .carousel-arrow-left {
    left: 8px;
} 
#ir_section .carousel-arrow-right {
    right: 8px;
}

#ir_section .carousel-bullet-navigator {
    width: 342px !important;
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    gap: 10px; /* 子彈間距 */
    display: flex !important; /* 將內部元素設為水平排列 */
    justify-content: center; /* 讓項目居中 */
}

#ir_section .carousel-bullet-navigator .i {
    width: 12px;
    height: 12px;
    background-color: #4c484d;
    border-radius: 50%;
    opacity: 0.7;
    transition: opacity 0.3s, transform 0.3s; /* Smooth transition for hover effect */
    cursor: pointer; /* Change cursor to pointer on hover */
}

/* Hover effect for bullets */
#ir_section .carousel-bullet-navigator .i:hover {
    opacity: 1; /* Fully opaque when hovering */
    transform: scale(1.2); /* Slightly enlarge bullet when hovering */
    background-color: #00bcd4; /* Change background color to highlight */
}

#ir_section .carousel-bullet-navigator .i.iav {
    background-color: #00bcd4; /* Change background color to highlight */
}

#ir_section .carousel-slide {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: url('frame.png') no-repeat center;
    background-size: cover;
    padding: 15px;
    box-sizing: border-box;
    height: 250px; 
    width: 100%;
}

#ir_section .carousel-slider {
    position: relative;
    width: 100%;
    height: 250px; 
    overflow: hidden;
    visibility: hidden;
}

@media (min-width: 1020px) {
    #ir_section .carousel-slider {
        width: calc(100% - 4px); /* Fit more slides on larger screens */
    }
}
@media (min-width: 1232px) {
    #ir_section .carousel-slider {
        width: 1200px; /* Fit more slides on larger screens */
    }
}

#ir_section .carousel-slide:hover {
    cursor: pointer;
}

#ir_section .play-icon-overlay {
    position: absolute;
    left: 20%;
    font-size: 3.8em;
    color: rgba(255, 255, 255, 0.5); /* 半透明白色 */
    z-index: 15; /* 顯示在圖片上方 */
    pointer-events: none; /* 防止點擊事件干擾 */
}

#ir_section .carousel-slide {
    position: relative; /* 確保播放標記絕對定位有效 */
}
#jssor_carousel_review img::part(edge-visual-search-button), /* Edge 新版使用的 shadow DOM */
#ir_section .edge-visual-search-button {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}
