/* --- Brand Case Study Grid --- */
.bcs-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* 響應式網格 */
    gap: 25px;
    margin: 20px 0;
}

/* --- Single Card Style --- */
.bcs-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.bcs-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.bcs-card-image {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: top; /* 或只寫 top 也可以 */
}

.bcs-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.bcs-brand-name {
    font-size: 1.1em;
    color: #555;
    margin: 0 0 5px 0;
    font-weight: 600;
}

.bcs-project-name {
    font-size: 1.4em;
    color: #222;
    margin: 0 0 15px 0;
    font-weight: 700;
    flex-grow: 1; /* 讓標題佔據多餘空間，將連結推到底部 */
}

/* --- Links Icons --- */
.bcs-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px; /* 圖示間距 */
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

.bcs-links a {
    color: #888;
    font-size: 24px;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.2s ease;
}

.bcs-links a:hover {
    transform: scale(1.1);
}

/* --- Icon Colors --- */
.bcs-links a[title="YouTube"]:hover { color: #FF0000; }
.bcs-links a[title="Bilibili"]:hover { color: #00A1D6; }
.bcs-links a[title="Instagram Reels"]:hover { color: #E4405F; }
.bcs-links a[title="YouTube Shorts"]:hover { color: #FF0000; }
.bcs-links a[title="部落格文章"]:hover { color: #3498db; }
.bcs-links a[title="電商合作"]:hover { color: #2ecc71; }

/* 特製 YT Shorts 圖示 */
.yt-shorts-icon {
    position: relative;
    display: inline-block;
}
.yt-shorts-icon b {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 10px;
    font-weight: bold;
    font-family: sans-serif;
    text-shadow: 0 0 2px black;
}

/* 響應式調整 */
@media (max-width: 600px) {
    .bcs-grid-container {
        grid-template-columns: 1fr; /* 在小螢幕上變為單欄 */
    }
}