﻿.btn-cta {
    background: #ffcc00;
    color: #000;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: bold;
    display: inline-block;
}

.post {
    display: flex;
    gap: 18px;
    padding: 22px 0;
    border-radius: 12px;
    -webkit-backdrop-filter: blur(6px);
    align-items: stretch;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
    /* hover card */
    .post:hover {
        background: rgba(255,255,255,0.03); /* ฟ้าเข้มใส */
        transform: translateY(-4px); /* ⭐ ยกขึ้น */
        box-shadow: 0 14px 40px rgba(2,6,23,.55);
    }
        /* hover zoom */
        .post:hover .post-thumb img {
            transform: scale(1.08); /* ⭐ ซูมพอดี ไม่เวอร์ */
        }

.post-thumb {
    flex-shrink: 0;
    width: 120px;
    display: flex;
    overflow: hidden;
    border-radius: 12px;
}
    /* รูป */
    .post-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 10px;
        background: #f1f5f9;
        transition: transform .45s ease;
    }
.post-content {
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
    flex: 1;
    height: 100%;
}

    .post-content img {
        max-width: 560px;
        width: auto;
        height: auto;
        display: block;
        margin: 16px auto;
        border-radius: 8px;
    }

    .post-content h2 {
        font-size: 1.4rem;
        margin-bottom: 8px;
    }

        .post-content h2 a {
            color:var(--text-main);
            font-weight: 700;
            line-height: 1.3;
            text-decoration: none;
        }

            .post-content h2 a:hover {
                color: var(--text-hover);
                text-decoration: underline;
            }

.post-desc {
    color: var(--text-main);
    font-weight: 400;
    font-size: 0.95rem;
    line-height: 1.75;
    margin-top: 6px;
    text-shadow: 0 1px 2px rgba(0,0,0,.6);
}

.read-more {
    color: #2563eb;
    font-weight: 500;
    text-decoration: none;
}

    .read-more:hover {
        text-decoration: underline;
    }

@media (max-width: 768px) {
    .post {
        flex-direction: column;
    }

        .post:hover {
            transform: none;
            box-shadow: none;
        }

            .post:hover .post-thumb img {
                transform: scale(1.04);
            }

    .post-thumb {
        width: 100%;
    }

        .post-thumb img {
            height: 200px;
        }
}
