/* Chanya Blog Grid — v1.0 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

.chanya-blog-wrap {
    font-family: 'Inter', sans-serif;
    width: 100%;
}

/* Grid */

.chanya-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
}

/* Card */

.chanya-blog-card {
    background: #fff;
    display: flex;
    flex-direction: column;
    border: 0.5px solid #e8e6e0;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.chanya-blog-card:hover {
    border-color: #c0b99a;
}

/* Image */

.chanya-blog-img-wrap {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #ede9e2;
    flex-shrink: 0;
}

.chanya-blog-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.chanya-blog-card:hover .chanya-blog-img-wrap img {
    transform: scale(1.04);
}

.chanya-blog-img-placeholder {
    width: 100%;
    height: 100%;
    background: #e8e3da;
}

/* Content */

.chanya-blog-content {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
}

/* Meta — category + date */

.chanya-blog-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chanya-blog-cat {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    background: #7a7455;
    padding: 3px 8px;
    line-height: 1.6;
}

.chanya-blog-date {
    font-size: 11px;
    color: #aaa;
    font-weight: 400;
}

/* Title */

.chanya-blog-content h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    color: #1a1a1a;
    letter-spacing: -0.01em;
}

.chanya-blog-content h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.chanya-blog-content h3 a:hover {
    color: #7a7455;
}

/* Excerpt */

.chanya-blog-excerpt {
    font-size: 12px;
    color: #888;
    line-height: 1.65;
    margin: 0;
    flex: 1;
}

/* Read More */

.chanya-blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: #7a7455;
    text-decoration: none;
    margin-top: auto;
    transition: color 0.2s ease;
}

.chanya-blog-read-more::after {
    content: '→';
    font-size: 12px;
    transition: transform 0.2s ease;
}

.chanya-blog-read-more:hover {
    color: #4a4530;
}

.chanya-blog-read-more:hover::after {
    transform: translateX(4px);
}

/* No posts */

.chanya-blog-none {
    font-size: 14px;
    color: #aaa;
    padding: 40px 0;
    text-align: center;
    grid-column: 1 / -1;
}

/* Pagination */

.chanya-blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.chanya-page-btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    text-decoration: none;
    border: 0.5px solid #ddd;
    background: #fff;
    transition: all 0.15s ease;
    letter-spacing: 0;
}

.chanya-page-btn:hover {
    border-color: #7a7455;
    color: #7a7455;
}

.chanya-page-btn.active {
    background: #7a7455;
    border-color: #7a7455;
    color: #fff;
}

/* Tablet */

@media (max-width: 900px) {
    .chanya-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

/* Mobile */

@media (max-width: 480px) {
    .chanya-blog-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .chanya-blog-content {
        padding: 14px 14px 16px;
        gap: 8px;
    }

    .chanya-blog-content h3 {
        font-size: 14px;
    }

    .chanya-page-btn {
        width: 34px;
        height: 34px;
        font-size: 12px;
    }
}