/* =========================================
   Content Section
========================================= */
.content-section { 
    padding: 2rem 3rem; 
}

.section-heading {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    position: relative;
    text-align: center;
    color: var(--color-dark-teal);
}
.section-heading::after {
    content: ''; 
    display: block; 
    width: 60px; 
    height: 4px;
    background-color: var(--color-gold); 
    margin: 0.5rem auto 0; 
    border-radius: 2px;
}
.section-context {
    text-align: center;
    color: #a0522d;
    font-size: 1.5rem;
    margin-bottom: 3rem;
}

/* Grid 基礎設定 */
.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* 外層：處理 GSAP 動畫初始狀態 */
.bento-item {
    display: block;
    opacity: 0; 
    transform: translateY(30px);
}

/* 內層 Article：垂直排列，上圖下文 */
.bento-item article {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
    border: 1px solid rgba(64, 34, 15, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bento-item:hover article {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(64, 34, 15, 0.15);
}

/* --- 圖片區塊 --- */
.bento-img-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
}

.bento-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.bento-item:hover .bento-img-wrapper img {
    transform: scale(1.05);
}

/* --- 內容文字區塊 --- */
.bento-content { 
    padding: 2rem; 
    display: flex; 
    flex-direction: column; 
    flex-grow: 1; 
}

.bento-title {
    font-size: 1.4rem;
    color: var(--color-dark-teal);
    margin-bottom: 0.75rem;
}

.bento-desc {
    font-size: 1rem;
    color: var(--color-text-sub);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.bento-link {
    font-weight: 700;
    color: var(--color-brown-light);
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
}

.bento-item:hover .bento-link {
    color: var(--color-gold);
    transform: translateX(5px);
}

/* --- RWD --- */
@media (min-width: 48rem) {
    .bento-grid {
        /* 平板尺寸：一行 2 個 */
        grid-template-columns: repeat(2, 1fr);
        padding: 0 1.5rem;
    }
}

@media (min-width: 64rem) {
    .bento-grid {
        /* 電腦尺寸：一行 3 個 */
        grid-template-columns: repeat(3, 1fr);
        padding: 0 1.5rem;
    }
}
