.vng-78a456f0-container {
    width: 100%;
    overflow: hidden;
}

.vng-78a456f0-grid {
    display: grid;
    width: 100%;
}

.vng-78a456f0-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    text-decoration: none !important;
    background-color: #000;
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Background image handling with clean zoom */
.vng-78a456f0-img-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 400ms cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
    transform: scale(1.00);
    z-index: 1;
}

.vng-78a456f0-card:hover .vng-78a456f0-img-layer {
    transform: scale(1.08);
}

/* Base overlay dynamic vars */
.vng-78a456f0-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--vng-overlay-color, #0F172A);
    opacity: var(--vng-overlay-opacity, 0.5);
    transition: opacity 400ms ease;
    z-index: 2;
}

.vng-78a456f0-card:hover .vng-78a456f0-overlay {
    opacity: calc(var(--vng-overlay-opacity, 0.5) + 0.15);
}

/* Radial Soft Cursor Highlight Glow */
.vng-78a456f0-cursor-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: radial-gradient(circle 180px at var(--mouse-x, -999px) var(--mouse-y, -999px), rgba(255, 255, 255, 0.15) 0%, transparent 80%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.vng-78a456f0-card:hover .vng-78a456f0-cursor-glow {
    opacity: 1;
}

/* Big Decorative Background Text styling (with card custom variables) */
.vng-78a456f0-bg-word {
    position: absolute;
    top: calc(50% + var(--bg-word-y-offset, 0px));
    left: calc(50% + var(--bg-word-x-offset, 0px));
    width: 140%;
    transform: translate(-50%, -50%);
    font-size: var(--bg-word-size, 8rem);
    font-weight: 900;
    text-transform: uppercase;
    color: var(--bg-word-color, #000000);
    opacity: var(--bg-word-opacity, 0.18);
    line-height: 0.85;
    pointer-events: none;
    user-select: none;
    transition: transform 400ms cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 2;
    white-space: pre-line; /* Preserves user-defined line breaks */
    text-align: var(--bg-word-align, center);
    transform-origin: var(--bg-word-align, center) center;
    max-width: var(--bg-word-max-width, none);
}

/* Content wrapping */
.vng-78a456f0-content-wrap {
    position: relative;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    z-index: 4;
}

/* Main text styling */
.vng-78a456f0-title {
    margin: 0;
    color: #ffffff;
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.1;
    
    /* Hardware accelerated offsets integrated cleanly with animations */
    --title-tx: var(--title-x-offset, 0px);
    --title-ty: var(--title-y-offset, 0px);
    --title-scale: 1;
    transform: translate(var(--title-tx), var(--title-ty)) scale(var(--title-scale));
    
    transition: transform 400ms cubic-bezier(0.25, 1, 0.5, 1);
    transform-origin: bottom left;
}

.vng-78a456f0-card:hover .vng-78a456f0-title {
    --title-tx: calc(var(--title-x-offset, 0px) * 1.05);
    --title-ty: calc(var(--title-y-offset, 0px) - 6px);
    --title-scale: 1.05;
}

/* CSS rule to enforce card-by-card title size override if custom_title_size variable is active */
.vng-78a456f0-card[style*="--card-title-size"] .vng-78a456f0-title {
    font-size: var(--card-title-size) !important;
}

/* Custom Circle Arrow button adopting overlay background at 100% opacity and white arrow icon */
.vng-78a456f0-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 50%;
    background-color: var(--vng-overlay-color, #ffffff);
    color: #ffffff;
    transition: transform 300ms cubic-bezier(0.25, 1, 0.5, 1);
    margin-left: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.vng-78a456f0-arrow svg {
    width: 20px;
    height: 20px;
    stroke: #ffffff;
    transition: transform 300ms cubic-bezier(0.25, 1, 0.5, 1);
}

.vng-78a456f0-card:hover .vng-78a456f0-arrow {
    transform: scale(1.1);
}

.vng-78a456f0-card:hover .vng-78a456f0-arrow svg {
    transform: translateX(3px);
}

/* HIGH-END MOBILE SCALING & 3-COLUMN ENFORCEMENT */
@media screen and (max-width: 767px) {
    /* Enforce 3 columns layout to match desktop perfectly */
    .vng-78a456f0-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    /* Scale down heights proportionally so they fit mobile screen heights nicely */
    .vng-78a456f0-card {
        height: 180px !important;
    }

    /* Scale down oversized decorative background text fluidly */
    .vng-78a456f0-bg-word {
        font-size: clamp(1.8rem, 8.5vw, 4rem) !important;
        width: 180% !important; /* Give extra room for oversized lettering */
    }

    /* Apply Mobile Specific Background Word override parameters, falling back to desktop values if blank */
    .vng-78a456f0-card[style*="--bg-word-size-mobile"] .vng-78a456f0-bg-word {
        font-size: var(--bg-word-size-mobile) !important;
    }
    .vng-78a456f0-card .vng-78a456f0-bg-word {
        top: calc(50% + var(--bg-word-y-offset-mobile, var(--bg-word-y-offset, 0px))) !important;
        left: calc(50% + var(--bg-word-x-offset-mobile, var(--bg-word-x-offset, 0px))) !important;
    }

    /* Reduce content wrapper padding on small screens */
    .vng-78a456f0-content-wrap {
        padding: 12px 10px !important;
    }

    /* Scale down main card titles using fluid units */
    .vng-78a456f0-title {
        font-size: clamp(0.75rem, 3.2vw, 1.2rem) !important;
    }

    /* Default mobile title size clamp */
    .vng-78a456f0-card[style*="--card-title-size"] .vng-78a456f0-title {
        font-size: clamp(0.75rem, 3.2vw, 1.2rem) !important;
    }

    /* Apply Mobile-specific card title size override when defined */
    .vng-78a456f0-card[style*="--card-title-size-mobile"] .vng-78a456f0-title {
        font-size: var(--card-title-size-mobile) !important;
    }

    /* Scale down circles and arrow buttons proportionally */
    .vng-78a456f0-arrow {
        width: 24px !important;
        height: 24px !important;
        min-width: 24px !important;
        margin-left: 5px !important;
    }

    .vng-78a456f0-arrow svg {
        width: 12px !important;
        height: 12px !important;
    }
}
