﻿/* Main spacing */
.kb-main {
    padding-top: 10rem;
    padding-bottom: 40px;
}

/* Title zone */
.kb-hero {
    text-align: center;
    margin-bottom: 50px;
}

.kb-title {
    font-size: 29pt;
    font-weight: 700;
    margin-bottom: 8px;
    color: #f9af3b;
    letter-spacing: 1.5rem;
}

.kb-subtitle {
    font-size: 15pt;
    color: #a8a8a8;
    font-weight: bold;
}

/* List grid */
.kb-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* Cards */
.kb-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
    overflow: hidden; /* 讓圖片跟卡片圓角一致 */
    display: flex;
    flex-direction: column;
    height: 100%; /* 讓每張卡片一樣高 */
}

.kb-thumb {
    width: 100%;
    height: 220px;
    object-fit: cover;
    /*border-radius: 8px;*/
    display:block;
}

.kb-content {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1; /* 撐滿整張卡片高度 */
}

.kb-title-link {
    font-size: 17pt;
    font-weight: bold;
    color: #222;
    text-decoration: none;
    margin-bottom: 6px;
}

.kb-meta {
    font-size: 11pt;
    color: #999;
    margin-bottom: 10px;
}

.kb-desc {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.kb-readmore {
    margin-top: auto; /* 這行就是「貼到底」的關鍵 */
    font-size: 14px;
    color: #e67e22;
    font-weight: 600;
    text-decoration: none;
}

/* hover 一點點效果（可要可不要） */
.kb-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.18s ease-out;
}

/* RWD */
@media(max-width: 992px) {
    .kb-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width: 576px) {
    .kb-grid {
        grid-template-columns: 1fr;
    }
}
