/* ==================================================
   VES INDUSTRIES SHOWCASE
   FULL UPDATED RESPONSIVE CSS
   Elementor HTML Widget
================================================== */


/* ==================================================
   01. GLOBAL BOX SIZING
================================================== */

#ves-services-showcase,
#ves-services-showcase * {
    box-sizing: border-box;
}


/* ==================================================
   02. MAIN SECTION
================================================== */

#ves-services-showcase {
    --ves-red: #E31E24;
    --ves-white: #FFFFFF;
    --ves-black: #111111;

    display: block;
    width: 100%;
    margin: 0;
    padding: 0;

    background: #F5F6F7;

    font-family: "Basier Circle", "Basier", Arial, sans-serif;

    overflow: visible;
}


/* ==================================================
   03. INNER CONTAINER
================================================== */

#ves-services-showcase .ves-service-inner {
    width: 100%;
    max-width: 1430px;

    margin: 0 auto;
    padding: 0;
}


/* ==================================================
   04. INDUSTRY GRID
   DESKTOP: 3 COLUMNS
================================================== */

#ves-services-showcase .ves-service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 16px;

    width: 100%;
    margin: 0;
    padding: 0;
}


/* ==================================================
   05. INDUSTRY CARD
   DESKTOP HEIGHT: 280px
================================================== */

#ves-services-showcase a.ves-service-card {
    position: relative;
    isolation: isolate;

    display: block;

    width: 100%;
    height: 280px;
    min-width: 0;

    margin: 0;
    padding: 0;

    overflow: hidden;

    background-color: #111111;

    border: none;
    border-radius: 6px;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);

    color: #FFFFFF;
    text-decoration: none;

    transform: none !important;
    transition: none !important;
}


/* ==================================================
   06. BACKGROUND IMAGE
================================================== */

#ves-services-showcase a.ves-service-card img {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;

    display: block;

    width: 100%;
    height: 100%;

    max-width: none;
    min-width: 100%;
    min-height: 100%;

    margin: 0;
    padding: 0;

    border: 0;

    object-fit: cover;
    object-position: center center;

    opacity: 1;
    visibility: visible;

    filter: brightness(0.9) contrast(1.04) saturate(1.05);

    transform: scale(1) !important;
    transform-origin: center center;

    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;

    transition: transform 650ms cubic-bezier(0.2, 0.7, 0.2, 1) !important;
}


/* ==================================================
   07. DARK GRADIENT OVERLAY
================================================== */

#ves-services-showcase a.ves-service-card::after {
    content: "";

    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;

    z-index: 1;

    display: block;
    pointer-events: none;

    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.15) 30%,
        rgba(0, 0, 0, 0.60) 58%,
        rgba(0, 0, 0, 0.88) 82%,
        rgba(0, 0, 0, 0.94) 100%
    );
}


/* ==================================================
   08. CARD CONTENT
================================================== */

#ves-services-showcase .ves-service-copy {
    position: absolute;
    z-index: 2;

    right: 0;
    bottom: 0;
    left: 0;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: 6px;

    width: 100%;

    margin: 0;
    padding: 18px 20px;

    text-align: left;
}


/* ==================================================
   09. INDUSTRY NAME
================================================== */

#ves-services-showcase .ves-service-name {
    display: block;

    width: 100%;

    margin: 0;
    padding: 0;

    color: #FFFFFF;

    font-family: "Basier Circle", "Basier", Arial, sans-serif;

    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.2px;

    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);

    opacity: 1;
    visibility: visible;

    transform: none !important;
    transition: none !important;
}


/* ==================================================
   10. INDUSTRY DESCRIPTION
================================================== */

#ves-services-showcase .ves-service-description {
    display: -webkit-box;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;

    width: 100%;
    min-height: 1.5em;

    margin: 0;
    padding: 0;

    overflow: hidden;

    color: #FFFFFF;

    font-family: "Basier Circle", "Basier", Arial, sans-serif;

    font-size: 16px;
    font-weight: 400;
    line-height: 1.45;

    text-align: left;

    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);

    opacity: 1;
    visibility: visible;

    transform: none !important;
    transition: none !important;
}


/* ==================================================
   11. READ MORE BUTTON
   DEFAULT: RED BACKGROUND + WHITE TEXT
   BOX SHADOW ADDED
================================================== */

#ves-services-showcase a.ves-service-card .ves-service-link {
    position: relative;
    z-index: 3;

    display: inline-flex !important;

    align-items: center !important;
    justify-content: center !important;
    align-self: flex-start !important;

    flex: 0 0 auto;

    gap: 12px;

    width: max-content !important;
    max-width: 100%;

    height: 38px !important;
    min-height: 38px;

    margin: 6px 0 0 !important;
    padding: 0 6px 0 16px !important;

    box-sizing: border-box !important;

    background-color: #E31E24 !important;
    color: #FFFFFF !important;

    border: 1px solid #E31E24 !important;
    border-radius: 4px !important;

    font-family: "Basier Circle", "Basier", Arial, sans-serif !important;

    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: 0.6px;

    text-align: center !important;
    text-decoration: none !important;
    text-transform: uppercase;
    white-space: nowrap;

    /* BUTTON BOX SHADOW */
    box-shadow: 1px 1px 8px 3px rgba(0, 0, 0, 0.25) !important;

    opacity: 1 !important;
    visibility: visible !important;

    cursor: pointer;

    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease !important;
}


/* ==================================================
   12. ARROW CIRCLE
   DEFAULT: WHITE BACKGROUND + RED ARROW
================================================== */

#ves-services-showcase a.ves-service-card .ves-service-arrow {
    display: inline-flex !important;

    align-items: center !important;
    justify-content: center !important;

    flex: 0 0 26px !important;

    width: 26px !important;
    min-width: 26px !important;

    height: 26px !important;
    min-height: 26px !important;

    margin: 0 !important;
    padding: 0 !important;

    box-sizing: border-box !important;

    background-color: #FFFFFF !important;
    color: #E31E24 !important;

    border: 1px solid #FFFFFF !important;
    border-radius: 50% !important;

    font-family: Arial, sans-serif !important;

    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1 !important;

    text-decoration: none !important;

    transform: none !important;

    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease !important;
}


/* ==================================================
   13. BUTTON HOVER
   BUTTON: WHITE BACKGROUND + BLACK TEXT
   BOX SHADOW REMAINS VISIBLE
================================================== */

@media (hover: hover) and (pointer: fine) {

    #ves-services-showcase
    a.ves-service-card
    .ves-service-link:hover {

        background-color: #FFFFFF !important;
        color: #111111 !important;

        border-color: #FFFFFF !important;

        /* Maintain box shadow on hover */
        box-shadow: 1px 1px 8px 3px rgba(0, 0, 0, 0.25) !important;
    }


    /* ==============================================
       ARROW HOVER
       RED BACKGROUND + WHITE ARROW
    ============================================== */

    #ves-services-showcase
    a.ves-service-card
    .ves-service-link:hover
    .ves-service-arrow {

        background-color: #E31E24 !important;
        color: #FFFFFF !important;

        border-color: #E31E24 !important;

        font-size: 18px !important;

        transform: none !important;
    }
}


/* ==================================================
   14. DISABLE CARD MOVEMENT
================================================== */

#ves-services-showcase a.ves-service-card:hover {
    transform: none !important;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
}


/* ==================================================
   15. SMOOTH IMAGE ZOOM ON HOVER
================================================== */

#ves-services-showcase a.ves-service-card:hover img {
    filter: brightness(0.9) contrast(1.04) saturate(1.05) !important;
}

@media (hover: hover) and (pointer: fine) {
    #ves-services-showcase a.ves-service-card:hover img {
        transform: scale(1.05) !important;
    }
}


/* ==================================================
   16. KEEP TEXT STATIC
================================================== */

#ves-services-showcase a.ves-service-card:hover .ves-service-name,
#ves-services-showcase a.ves-service-card:hover .ves-service-description {
    transform: none !important;
    transition: none !important;
}


/* ==================================================
   17. KEYBOARD FOCUS
================================================== */

#ves-services-showcase a.ves-service-card:focus-visible {
    outline: 3px solid #E31E24;
    outline-offset: 3px;
}


/* ==================================================
   18. TABLET RESPONSIVE
   2 COLUMNS / 260px HEIGHT
================================================== */

@media (min-width: 601px) and (max-width: 1024px) {

    #ves-services-showcase .ves-service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }

    #ves-services-showcase a.ves-service-card {
        height: 260px;
    }

    #ves-services-showcase .ves-service-copy {
        padding: 16px;
    }

    #ves-services-showcase .ves-service-name {
        font-size: 16px;
    }

    #ves-services-showcase .ves-service-description {
        font-size: 13px;
    }

    #ves-services-showcase a.ves-service-card .ves-service-link {
        height: 34px !important;
        min-height: 34px;

        font-size: 11px !important;

        /* Maintain button shadow */
        box-shadow: 1px 1px 8px 3px rgba(0, 0, 0, 0.25) !important;
    }

    #ves-services-showcase a.ves-service-card .ves-service-arrow {
        flex-basis: 24px !important;

        width: 24px !important;
        min-width: 24px !important;

        height: 24px !important;
        min-height: 24px !important;

        font-size: 16px !important;
    }
}


/* ==================================================
   19. MOBILE RESPONSIVE
   1 COLUMN / 260px HEIGHT
================================================== */

@media (max-width: 600px) {

    #ves-services-showcase .ves-service-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    #ves-services-showcase a.ves-service-card {
        height: 260px;
    }

    #ves-services-showcase .ves-service-copy {
        padding: 16px;
        gap: 5px;
    }

    #ves-services-showcase .ves-service-name {
        font-size: 16px;
    }

    #ves-services-showcase .ves-service-description {
        font-size: 13px;
    }

    #ves-services-showcase a.ves-service-card .ves-service-link {
        height: 34px !important;
        min-height: 34px;

        gap: 10px;

        padding: 0 5px 0 14px !important;

        font-size: 11px !important;

        /* Maintain button shadow */
        box-shadow: 1px 1px 8px 3px rgba(0, 0, 0, 0.25) !important;
    }

    #ves-services-showcase a.ves-service-card .ves-service-arrow {
        flex-basis: 24px !important;

        width: 24px !important;
        min-width: 24px !important;

        height: 24px !important;
        min-height: 24px !important;

        font-size: 16px !important;
    }
}


/* ==================================================
   20. ELEMENTOR MOBILE SAFETY
================================================== */

@media (max-width: 767px) {

    .elementor-element.elementor-widget-html:has(#ves-services-showcase),
    .elementor-element.elementor-widget-html:has(#ves-services-showcase) > .elementor-widget-container,
    .e-con:has(#ves-services-showcase) {

        height: auto;
        min-height: 0;
        max-height: none;

        overflow: visible;
    }
}


/* ==================================================
   21. REDUCED MOTION ACCESSIBILITY
================================================== */

@media (prefers-reduced-motion: reduce) {

    #ves-services-showcase *,
    #ves-services-showcase *::before,
    #ves-services-showcase *::after {

        scroll-behavior: auto !important;
        animation: none !important;
        transition: none !important;
    }
}