/* =========================================================
   ObeGames V33 - Click toàn bộ khung bài viết
   ========================================================= */

.js-clickable-card {
    position: relative;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.js-clickable-card:focus {
    outline: none;
}

.js-clickable-card:focus-visible {
    outline: 2px solid #69b8ff;
    outline-offset: 4px;
    border-color: rgba(105, 184, 255, .72) !important;
    box-shadow:
        0 0 0 4px rgba(105, 184, 255, .12),
        0 22px 55px rgba(0, 0, 0, .28);
}

/*
 * Các liên kết con vẫn nằm trên card và hoạt động độc lập:
 * - ảnh
 * - tiêu đề
 * - chuyên mục
 * - nút Xem chi tiết
 */
.js-clickable-card a,
.js-clickable-card button,
.js-clickable-card input,
.js-clickable-card select,
.js-clickable-card textarea {
    position: relative;
    z-index: 2;
}

/* Khi rê chuột vào bất kỳ vị trí nào của card */
.blog-card.js-clickable-card:hover,
.news-card.js-clickable-card:hover {
    transform: translateY(-6px);
    border-color: rgba(124, 92, 255, .58);
    box-shadow: 0 22px 54px rgba(0, 0, 0, .3);
}

/*
 * Cho người dùng nhận biết toàn bộ card có thể bấm,
 * kể cả khi con trỏ nằm trên mô tả hoặc thông tin ngày đăng.
 */
.js-clickable-card .blog-card-body,
.js-clickable-card .news-card-body,
.js-clickable-card .blog-meta,
.js-clickable-card p {
    cursor: pointer;
}

@media (max-width: 767px) {
    .js-clickable-card {
        cursor: pointer;
    }

    .js-clickable-card:active {
        transform: scale(.985);
    }
}

@media (prefers-reduced-motion: reduce) {
    .js-clickable-card {
        transition: none !important;
    }
}
