.wt-animate-heading-reveal .reveal-word {
    display: inline-block;
    white-space: nowrap;
}

.wt-animate-heading-reveal .reveal-char {
    display: inline-block !important;
    opacity: 0;
    margin-right: -0.015em;
    /* Bù trừ khoảng trống nhẹ của inline-block để giữ nguyên độ dài chữ */
    will-change: opacity;
    transition: opacity 0.4s ease;
    transition-delay: calc(var(--char-index) * 0.05s);
}

.wt-animate-heading-reveal.is-in-viewport .reveal-char,
.is-in-viewport .reveal-char,
.is-in-viewport.reveal-char {
    opacity: 1;
}

/* ================================================================
   Fade & Rise Entrance Animation for Paragraphs (Liquid Steam Reveal)
   ================================================================ */
.wt-animation-p,
.wt-animation-p p,
p.wt-animation-p {
    opacity: 0 !important;
    transform: scale(0.96) translateZ(0) !important;
    /* Đẩy lùi nhẹ về phía sau */
    will-change: transform, opacity;
    transition: opacity 3.2s cubic-bezier(0.25, 1, 0.5, 1),
        transform 3.2s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.wt-animation-p.is-inview,
.wt-animation-p.is-inview p,
p.wt-animation-p.is-inview {
    opacity: 1 !important;
    transform: scale(1) translateZ(0) !important;
    /* Tiến nhẹ về phía trước màn hình */
}

/* ================================================================
   Hover Card: Soft Green Shadow & Smooth Inner Image / Container Zoom
   ================================================================ */
.wt-hover-boxshadown,
.wt-hover-boxshadow {
    overflow: hidden !important;
    transform: translateZ(0);
    /* Chống lỗi tràn viền bo góc trên WebKit/Safari */
    transition: box-shadow 0.35s ease, transform 0.35s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.wt-hover-boxshadown:hover,
.wt-hover-boxshadow:hover {
    transform: translateY(-4px) !important;
    /* Bóng đổ sắc xanh #428A16 nhẹ nhàng, tinh tế */
    box-shadow: 0 10px 24px -4px rgba(66, 138, 22, 0.10),
        0 4px 10px -2px rgba(66, 138, 22, 0.05) !important;
}

/* Zoom ảnh bên trong mượt mà (Hỗ trợ cả thẻ img và container ảnh nền UAGB / Spectra) */
.wt-hover-boxshadown img,
.wt-hover-boxshadow img,
.wt-hover-boxshadown>.wp-block-uagb-container:first-child,
.wt-hover-boxshadow>.wp-block-uagb-container:first-child {
    transition: transform 0.55s cubic-bezier(0.25, 1, 0.5, 1) !important;
    will-change: transform;
}

.wt-hover-boxshadown:hover img,
.wt-hover-boxshadow:hover img,
.wt-hover-boxshadown:hover>.wp-block-uagb-container:first-child,
.wt-hover-boxshadow:hover>.wp-block-uagb-container:first-child {
    transform: scale(1.06) !important;
}

/* ================================================================
   Card Tầm Nhìn / Sứ Mệnh: Hover Card -> Zoom Ảnh bên trong (Không tràn viền)
   Class: .wt-hover-card-zoom-img (hoặc .wt-card-zoom-img, .wt-hover-zoom-img)
   ================================================================ */
.wt-hover-card-zoom-img,
.wt-card-zoom-img,
.wt-hover-zoom-img {
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease !important;
}

.wt-hover-card-zoom-img:hover,
.wt-card-zoom-img:hover,
.wt-hover-zoom-img:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 28px -4px rgba(66, 138, 22, 0.10),
        0 4px 12px -2px rgba(0, 0, 0, 0.04) !important;
}

/* Khung bọc ảnh bên trong: Giữ nguyên bo góc và cắt tràn viền */
.wt-hover-card-zoom-img .wp-block-image,
.wt-hover-card-zoom-img .wp-block-uagb-image,
.wt-hover-card-zoom-img figure,
.wt-hover-card-zoom-img .wp-block-uagb-image__figure,
.wt-card-zoom-img .wp-block-image,
.wt-card-zoom-img .wp-block-uagb-image,
.wt-card-zoom-img figure,
.wt-hover-zoom-img .wp-block-image,
.wt-hover-zoom-img figure {
    overflow: hidden !important;
    border-radius: 12px !important;
}

/* Ảnh bên trong */
.wt-hover-card-zoom-img img,
.wt-card-zoom-img img,
.wt-hover-zoom-img img {
    border-radius: 12px !important;
    transition: transform 0.65s cubic-bezier(0.25, 1, 0.5, 1) !important;
    will-change: transform;
}

/* Khi hover vào Card -> Ảnh phóng to mượt mà */
.wt-hover-card-zoom-img:hover img,
.wt-card-zoom-img:hover img,
.wt-hover-zoom-img:hover img {
    transform: scale(1.08) !important;
}



/* ================================================================
   Hiệu ứng mở dần ảnh từ trái sang phải (Left-to-Right Image Reveal)
   Class: .wt-animate-img-reveal hoặc .wt-reveal-img-lr
   ================================================================ */
.wt-animate-img-reveal,
.wt-reveal-img-lr {
    overflow: hidden;
}

.wt-animate-img-reveal img,
.wt-reveal-img-lr img,
img.wt-animate-img-reveal,
img.wt-reveal-img-lr {
    clip-path: inset(0 100% 0 0);
    -webkit-clip-path: inset(0 100% 0 0);
    opacity: 0.1;
    transform: scale(1.06);
    transition: clip-path 2.2s cubic-bezier(0.16, 1, 0.3, 1),
        -webkit-clip-path 2.2s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 1.6s ease,
        transform 2.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: clip-path, -webkit-clip-path, transform, opacity;
}

.wt-animate-img-reveal.is-inview img,
.wt-reveal-img-lr.is-inview img,
.wt-animate-img-reveal img.is-inview,
.wt-reveal-img-lr img.is-inview,
img.wt-animate-img-reveal.is-inview,
img.wt-reveal-img-lr.is-inview,
.is-inview .wt-animate-img-reveal img,
.is-inview .wt-reveal-img-lr img,
.is-inview.wt-animate-img-reveal img,
.is-inview.wt-reveal-img-lr img {
    clip-path: inset(0 0 0 0) !important;
    -webkit-clip-path: inset(0 0 0 0) !important;
    opacity: 1 !important;
    transform: scale(1) !important;
}

/* Đảm bảo hiển thị đầy đủ trong Gutenberg Editor */
.editor-styles-wrapper .wt-animate-img-reveal img,
.editor-styles-wrapper .wt-reveal-img-lr img,
.editor-styles-wrapper img.wt-animate-img-reveal,
.editor-styles-wrapper img.wt-reveal-img-lr {
    clip-path: none !important;
    -webkit-clip-path: none !important;
    opacity: 1 !important;
    transform: none !important;
}

/* ================================================================
   Why Cavalry List Animation
   ================================================================ */
.why-cavalry-list .why-cavalry-card {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity .8s ease, transform .8s ease;
}

.why-cavalry-list .why-cavalry-card.is-inview {
    opacity: 1;
    transform: translateX(0);
}