/* Alvin  */
.tradeshow-logo {
    max-width: 100%;
}

.page-id-3108 #product_grid_new .product-item .pmi-img {
    width: 202px;
    height: 302px;
}

@media (min-width: 992px) {
    .page-id-4350 #pdf_module .isotope-container>li.col-lg-3 {
        flex: 0 0 20% !important;
        max-width: 20% !important;
        width: 20% !important;
        margin-bottom: 3rem;
    }
}

.page-id-4350 #pdf_module .product-item .pmi-img {
    width: 15rem;
    height: 11rem;
    margin-bottom: 0.3rem;
    margin-top: 0.3rem;
}

.page-id-4350 #pdf_module .slides li {
    margin-bottom: 1.5rem;
}

/* Áp dụng cho màn hình Desktop (từ 992px trở lên) */

.engineering-performance-module .epm-item {
    cursor: pointer;
}

/* Container bao bọc video - Khóa kích thước khớp đúng với iframe gốc */
.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 40rem;
    /* Khóa kích thước khớp với giới hạn của iframe cũ */
    aspect-ratio: 16 / 9;
    /* Ép tỷ lệ khung hình video chuẩn */
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 4px;
    /* Tùy chọn: bo góc nhẹ cho đẹp */
}

/* Ép iframe tuân thủ tuyệt đối kích thước của Wrapper */
.video-wrapper iframe.bffm-youtube {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

/* Lớp phủ nền trắng */
.custom-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* 
 * Hiển thị Logo responsive 
 * object-fit: contain giúp logo không bị cắt xén
 * transform: scale(0.7) giúp thu nhỏ logo lại 70% để có khoảng trắng xung quanh cho thoáng
 */
.overlay-logo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(0.7);
    z-index: 1;
}

/* Giao diện nút Play có độ mờ */
.overlay-play-btn {
    position: relative;
    z-index: 2;
    width: 75px;
    height: 75px;
    /* Mã #ce202f chuyển sang rgba với độ mờ 0.8 */
    background-color: rgba(206, 32, 47, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

/* Hiệu ứng chuyển sang màu đen mờ khi hover */
.custom-video-overlay:hover .overlay-play-btn {
    /* Mã #111 chuyển sang rgba với độ mờ 0.8 */
    background-color: rgba(17, 17, 17, 0.8);
}

/* Tam giác icon Play (Màu trắng #fff) */
.overlay-play-btn::after {
    content: '';
    display: block;
    border-style: solid;
    border-width: 15px 0 15px 25px;
    border-color: transparent transparent transparent #ffffff;
    /* Icon trắng */
    margin-left: 6px;
    /* Căn chỉnh cho đều tâm nhãn quan */
}


.featured-img img {
    width: 100%;
}

.page-intro .pi-ctas {
    margin-top: 1rem;
}

.vcgm-heading:hover:after,
#product_grid_new .product-header:hover:after,
#case_study .product-header:hover:after {
    filter: brightness(0) saturate(100%) invert(10%);
}

.faq-module .click-expand-module .card-header,
.click-expand-module .card-header,
.vcgm-heading,
#product_grid_new .product-header,
#case_study .product-header,
.two-cta-module .tcm-wrap .tcm-cta2,
.two-cta-module .tcm-wrap .tcm-cta1 {
    color: #fff !important;
    background-color: #ce202f;
}

.click-expand-module .card-header:hover,
.click-expand-module .card-header:hover h2,
.vcgm-heading:hover,
#product_grid_new .product-header:hover,
#case_study .product-header:hover,
.two-cta-module .tcm-wrap .tcm-cta2:hover,
.two-cta-module .tcm-wrap .tcm-cta1:hover {
    color: #1a1a1a !important;
    background-color: #ce202f;
}

.acf-button {
    transition: none;
}

.acf-button:focus,
.acf-button:hover {
    color: #1a1a1a;
    background-color: #ce202f;
    border: 1px solid #ce202f;
    text-decoration: none;
}

.btn-alt2,
.npm-ce-btn-alt,
.cwc-carousel .dfbm-cta2 {
    background: #ce202f;
    border: 2px solid #ce202f;
    color: #fff;
    -webkit-transition: none;
    transition: none;
}

.btn-alt2:hover,
.npm-ce-btn-alt:hover,
.cwc-carousel .dfbm-cta2:hover,
.btn-primary:focus,
.btn-primary:hover {
    text-decoration: none;
    background: #ce202f;
    border: 2px solid #ce202f;
    color: #1a1a1a;
    -webkit-transition: none;
    transition: none;
    transform: none;
    box-shadow: none;
}

.itsmi-cta:focus,
.itsmi-cta:hover {
    color: #1a1a1a;
}

.btn-primary {
    border: 2px solid #ce202f;
}

.sh-top-links li {
    border: 2px solid #ce202f;
}

.sh-top-links li:hover {
    background: #ce202f;
}

.sh-top-links li:hover a {
    color: #1a1a1a;
}

.search-close:hover {
    color: #ce202f;
}

.btn,
.product-grid-item-link {
    transition: none;
}

.npm-btn:hover {
    background-color: #ce202f;
}

.npm-btn {
    border: 2px solid #ce202f;
}

.npm-btn:hover {
    background: #ce202f;
    border: 2px solid #ce202f;
    color: #1a1a1a;
    border-radius: 0 0 10px 10px;
}

.npm-btn:hover:after {
    filter: brightness(0) saturate(100%) invert(10%);
}

.two-cta-module .tcm-wrap .tcm-cta2 {
    color: #ce202f;
}

.two-cta-module .tcm-wrap .tcm-cta2:hover {
    background-color: #ce202f;
}

.two-cta-module .tcm-wrap .tcm-cta2 {
    --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
    -webkit-box-shadow: var(--tw-ring-offset-shadow, 0 0 transparent), var(--tw-ring-shadow, 0 0 transparent), var(--tw-shadow);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 transparent), var(--tw-ring-shadow, 0 0 transparent), var(--tw-shadow);
}

#case_study .product-header {
    color: #ce202f;
}

#product_grid_new .product-header {
    color: #ce202f;
}

.vcgm-heading {
    color: #ce202f;
}

.ilb-heading {
    color: #ce202f;
}

.npm-prod-wrap:after {
    background: none;
}

.new-products-module .npm-pro-desc a:hover,
.new-products-module .npm-pro-desc a {
    color: #5a5a5a;
    text-decoration: none;
}

/* start popup img */
.left-img-right-content-module .lircm-img-wrap img {
    cursor: zoom-in;
    transition: opacity 0.3s ease;
}

.left-img-right-content-module .lircm-img-wrap img:hover {
    opacity: 0.85;
}

.custom-image-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-image-modal.active {
    opacity: 1;
}

.custom-image-modal img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    animation: zoomInModal 0.3s ease;
}

.custom-modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #ffffff;
    font-size: 45px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
    user-select: none;
}

.custom-modal-close:hover {
    color: #ce202f;
}

@keyframes zoomInModal {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* end popup img */

/* Hiển thị con trỏ kính lúp cho cả 2 section */
.left-img-right-content-module .lircm-img-wrap img,
.content-associations-module-two .cami-img {
    cursor: zoom-in;
    transition: opacity 0.3s ease;
}

.left-img-right-content-module .lircm-img-wrap img:hover,
.content-associations-module-two .cami-img:hover {
    opacity: 0.85;
}

/* Các CSS .custom-image-modal, .custom-modal-close, @keyframes... giữ nguyên như cũ */

.page-id-4988 .page-intro .container:after {
    z-index: -1;
}

.group-blog .page-intro h1,
.single-post .page-intro h1 {
    text-align: center;
}

.group-blog .wp-pagenavi {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.group-blog .wp-pagenavi a:hover {
    color: #374a56;
    text-decoration: none;
}

.group-blog form button,
.single-post form button {
    background: #ce202f;
    border: 2px solid #ce202f;
    color: #fff;
    -webkit-transition: none;
    transition: none;
    background-color: #ce202f;
    border: 1px solid #ce202f;
    font-size: 1.0625rem;
    line-height: 1.625rem;
    padding: .3125rem 1.875rem;
    color: #fff;
    white-space: normal;
    font-weight: 500;
    text-transform: capitalize;
    border-radius: 2.5rem;
    font-family: Poppins, sans-serif;
    display: inline-block;
    text-decoration: none;
    text-align: center;
    -webkit-transition: all .3s linear;
    transition: all .3s linear;
}

.group-blog .post-meta,
.single-post .post-meta {
    font-size: 18px !important;
    font-weight: 400;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.group-blog .post-categories,
.single-post .post-categories {
    margin: 0;
    padding: 0
}

.group-blog .author,
.single-post .author {
    border-right: 1px solid #5a5a5a;
    padding-right: 0.5rem;
}

.group-blog .date,
.single-post .date {
    border-right: 1px solid #5a5a5a;
    padding-right: 0.5rem;
    padding-left: 0.5rem;
}

.group-blog .post-categories,
.single-post .post-categories {
    padding-left: 0.5rem;
}

.group-blog .post-categories,
.single-post .post-categories {
    display: flex;
    gap: 0.2rem;
}

.group-blog .post-meta a,
.single-post .post-categories a {
    text-decoration: none;
    font-size: 16px !important;
}

.group-blog .post-meta a:hover,
.single-post .post-categories a:hover {
    text-decoration: underline;
}

.blog .post-date {
    margin-right: 0;
    color: #5a5a5a;
}

.group-blog .post-title,
.group-blog .post-meta {
    margin-bottom: 0.5rem;
}

.group-blog .blog-sinlge-row {
    margin-bottom: 1.5rem;
}

.group-blog h3,
.single-post h2,
.single-post h3,
.single-post h4,
.single-post h5,
.single-post h6 {
    color: #374a56;
}

.group-blog h3.widget-title,
.single-post .related-posts-title,
.single-post h3.widget-title {
    font-weight: bold;
}

.group-blog h3.widget-title,
.single-post .widget-title {
    margin-bottom: 1rem;
}

.group-blog .gform_widget,
.single-post .gform_widget {
    margin-bottom: 2rem !important;
}

.single-post .related-posts-section .related-post-card a {
    color: #5a5a5a;
    font-weight: 400;
    line-height: 1.875rem;
    font-family: "Roboto Condensed", sans-serif;
    font-size: 1.125rem;
    text-decoration: none;

}

.single-post .related-posts-section .related-post-card a:hover {
    color: #ce202f;
}

.group-blog .widget_categories ul:not([class]) li a:hover,
.group-blog .widget_recent_entries ul:not([class]) li a:hover,
.single-post .widget_categories ul:not([class]) li a:hover,
.single-post .widget_recent_entries ul:not([class]) li a:hover {
    color: #374a56;
}

.group-blog .widget_categories ul:not([class]) li a,
.group-blog .widget_recent_entries ul:not([class]) li a,
.single-post .widget_categories ul:not([class]) li a,
.single-post .widget_recent_entries ul:not([class]) li a {
    color: #ce202f;
}

.group-blog .blog-sinlge-row .post-title a {
    font-weight: 700;
    text-decoration: none;
}

.group-blog .blog-sinlge-row .post-title a:hover {
    color: #374a56;
}

/* Alvin  */