/* =========================================================
   VIETTEAM JOURNEY SECTION - FULL RESPONSIVE FIX
   ========================================================= */

/* ---------------------------------------------------------
   1. CHỈNH FONT CHỮ & KHOẢNG CÁCH CHỮ (LETTER SPACING)
   --------------------------------------------------------- */
.vt-journey-title h2 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    color: #111111 !important;
    font-weight: 700 !important;
    letter-spacing: -0.6px !important;
    line-height: 1.25 !important;
    margin: 0 !important;
}

.vt-journey-title h2 span {
    font-family: inherit !important;
    letter-spacing: -0.6px !important;
}

/* ---------------------------------------------------------
   2. ĐỒNG BỘ NÚT BẤM VIỀN ĐEN (BUTTON STYLE)
   --------------------------------------------------------- */
.vt-journey-btn,
a.vt-journey-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #ffffff !important;
    border: 1.5px solid #111111 !important;
    color: #111111 !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    padding: 7px 22px !important;
    border-radius: 99px !important;
    text-decoration: none !important;
    transition: all 0.25s ease-in-out !important;
    line-height: 1 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

.vt-journey-btn:hover,
a.vt-journey-btn:hover {
    background-color: #111111 !important;
    color: #ffffff !important;
    border-color: #111111 !important;
    transform: translateY(-1px) !important;
}

/* ---------------------------------------------------------
   3. SỬA LỖI BÀI VIẾT (PC, TABLET & MOBILE)
   --------------------------------------------------------- */

/* Khung bọc tổng bài viết */
.vt-journey-posts {
    width: 100% !important;
    margin-top: 15px !important;
    margin-bottom: 20px !important;
}

/* Kiểu dáng Card bài viết chung */
.vt-journey-posts .box {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
    height: 100% !important;
}

.vt-journey-posts .box-image {
    border-radius: 12px 12px 0 0 !important;
    overflow: hidden !important;
}

.vt-journey-posts .box-image img {
    transition: transform 0.4s ease !important;
    object-fit: cover !important;
}

.vt-journey-posts .box-text {
    padding: 16px 18px 18px 18px !important;
}

.vt-journey-posts .post-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    color: #111111 !important;
    letter-spacing: -0.3px !important;
    margin-bottom: 8px !important;
}

.vt-journey-posts .from_the_blog_excerpt {
    font-size: 13.5px !important;
    color: #555555 !important;
    line-height: 1.5 !important;
}

/* PC (> 1024px): CHUYỂN SANG GRID 4 CỘT CHUẨN ĐỂ KHÓA LỀ TRÁI & PHẢI BẰNG NHAU */
@media (min-width: 1025px) {
    .vt-journey-posts .row,
    .vt-journey-posts.row {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 20px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    .vt-journey-posts .col,
    .vt-journey-posts .post-item {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin: 0 !important;
    }

    .vt-journey-posts .box:hover {
        transform: translateY(-5px) !important;
        border-color: #111111 !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
    }

    .vt-journey-posts .box:hover .box-image img {
        transform: scale(1.05) !important;
    }
}

/* Tablet (768px - 1024px): Chia 2 cột x 2 hàng */
@media (min-width: 768px) and (max-width: 1024px) {
    .vt-journey-posts .row,
    .vt-journey-posts.row {
        display: flex !important;
        flex-wrap: wrap !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        gap: 16px !important;
    }

    .vt-journey-posts .col {
        max-width: calc(50% - 8px) !important;
        flex: 0 0 calc(50% - 8px) !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-bottom: 0 !important;
    }
}

/* Mobile (<= 767px): CHUẨN TỶ LỆ 90% FACEBOOK & KHỦ LỖI THANH CUỘN CHIẾM DIỆN TÍCH TRÊN PC */
@media (max-width: 767px) {
    .vt-journey-posts .row,
    .vt-journey-posts.row,
    .vt-journey-posts .row-large,
    .vt-journey-posts .row-collapse {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        
        scroll-snap-type: x mandatory !important;
        scroll-padding-left: 0 !important;
        -webkit-overflow-scrolling: touch !important;
        
        gap: 12px !important;
        padding-top: 10px !important;
        padding-bottom: 20px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;

        /* Ép trình duyệt PC dùng thanh cuộn nổiOverlay (Không ăn vào kích thước 100% viewport) */
        scrollbar-gutter: stable !important;
    }

    /* TRIỆT TIÊU BẢNG THANH CUỘN CỨNG TRÊN TRÌNH DUYỆT PC (CHROME/EDGE/FIREFOX) */
    .vt-journey-posts .row::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
        background: transparent !important;
    }
    
    .vt-journey-posts .row {
        -ms-overflow-style: none !important;
        scrollbar-width: none !important;
    }

    .vt-journey-posts .col,
    .vt-journey-posts .post-item {
        flex: 0 0 90% !important;
        max-width: 90% !important;
        min-width: 90% !important;
        width: 90% !important;
        display: block !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        
        scroll-snap-align: center !important;
        float: none !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    .vt-journey-posts .col-inner,
    .vt-journey-posts .box {
        height: 100% !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    .vt-journey-posts .post-title {
        font-size: 15px !important;
    }
}