﻿/* ✅ Hero 區塊 (保留背景 + 遮罩) */
.caseshopping-hero {
    position: relative;
    height: 300px;
    background: url('/images/contact.jpg') center center / cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

    .caseshopping-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background-color: rgba(0, 0, 0, 0.35);
    }

    .caseshopping-hero .hero-content {
        position: relative;
        z-index: 1;
    }

    .caseshopping-hero h1 {
        font-size: 2rem;
        font-weight: 800;
        margin-bottom: 0.5rem;
        text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
    }

    .caseshopping-hero p {
        font-size: 1.1rem;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    }

/* ✅ 篩選標籤按鈕 */
.btn-outline-success {
    border-color: #28a745;
    color: #28a745;
    transition: all 0.3s ease;
}

    .btn-outline-success:hover {
        background-color: #28a745;
        color: #fff;
    }

.btn-outline-secondary {
    border-color: #28a745;
    color: #28a745;
    background-color: #fff;
    transition: all 0.3s ease;
}

    .btn-outline-secondary:hover {
        background-color: #28a745;
        color: #fff;
    }

/* ✅ 搜尋框 */
.search-box {
    border-radius: 30px;
    padding: .6rem 1rem;
    box-shadow: 0 0 6px rgba(0,0,0,0.1);
    border: 1px solid #ccc;
    width: 250px;
    margin-top: 10px;
}

    .search-box:focus {
        border-color: #28a745;
        box-shadow: 0 0 5px rgba(40,167,69,0.5);
    }

/* ✅ 卡片容器 */
.row.justify-content-center {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-right: -12px; /* 修正 bootstrap gutter */
    margin-left: -12px;
}

    .row.justify-content-center > [class*="col-"] {
        padding-right: 12px;
        padding-left: 12px;
    }

/* ✅ 卡片樣式 */
.card {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

    .card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    }

.card-img-top {
    width: 100%;
    height: 220px; /* 和活動頁一致 */
    object-fit: cover;
}

.card-body {
    display: flex;
    flex-direction: column;
    padding: 16px;
}

    .card-body h5 {
        color: #28a745;
        font-weight: 700;
        font-size: 1.1rem;
        margin-bottom: 8px;
    }

    .card-body p {
        font-size: 0.9rem;
        margin: 2px 0;
        color: #555;
    }

    .card-body .btn-success {
        margin-top: auto;
        display: inline-block;
        background: linear-gradient(45deg, #4caf50, #28a745);
        border: none;
        border-radius: 20px;
        font-size: 0.9rem;
        font-weight: 600;
        padding: 0.4rem 1rem; /* 🔹左右縮小，原本是 0.4rem 0.8rem */
        color: #fff;
        transition: background 0.3s ease;
    }

        .card-body .btn-success:hover {
            background: linear-gradient(45deg, #28a745, #1e7e34);
        }

.btn-filter {
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s;
    margin-top: 10px;
}

    .btn-filter:focus,
    .btn-filter:active {
        outline: none !important; /* 移除藍色外框 */
        box-shadow: none !important; /* 移除藍色陰影 */
        border-color: #28a745 !important; /* 邊框維持原本綠色或你想要的顏色 */
    }

    .btn-filter.active,
    .btn-filter:active {
        background-color: #28a745 !important; /* 綠底 */
        color: #fff !important; /* 白字 */
        border-color: #28a745 !important; /* 邊框也變綠 */
    }
