/* ================================
   VSX Latest Posts
   Matched With Article List Padding/Margins
================================ */

.elementor-widget-vsx_latest_posts,
.elementor-widget-vsx_latest_posts .elementor-widget-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: rgb(9, 9, 13) !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
}

.vsx-latest-posts {
    --vsx-site-container: 1320px;

    --vsx-lp-bg: rgb(9, 9, 13);
    --vsx-lp-accent: oklch(70.5% 0.213 47.604) !important;
    --vsx-lp-text: #ffffff;
    --vsx-lp-muted: rgba(245, 242, 237, 0.56);

    --vsx-lp-columns: 3;
    --vsx-lp-grid-gap: 28px;

    --vsx-lp-card-bg: #0f0f14;
    --vsx-lp-card-border: rgba(255, 255, 255, 0.1);
    --vsx-lp-card-title: #ffffff;
    --vsx-lp-card-excerpt: rgba(255, 255, 255, 0.74);
    --vsx-lp-meta: rgba(245, 242, 237, 0.56);

    --vsx-lp-view-bg: #ffffff;
    --vsx-lp-view-color: #080808;

    position: relative;
    width: min(calc(100% - 48px), var(--vsx-site-container)) !important;
    margin: 0 auto;
    padding: 44px 0 96px !important;
    overflow: hidden;
    color: var(--vsx-lp-text);
    isolation: isolate;
    box-sizing: border-box;
    background: var(--vsx-lp-bg) !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-family: Gilroy !important;
}

.vsx-latest-posts::before,
.vsx-latest-posts__glow {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    background: transparent !important;
}

/* ================================
   Header
================================ */

.vsx-latest-posts__header {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
    margin-bottom: 70px;
}

.vsx-latest-posts__header-content {
    max-width: 1221px;
}

.vsx-latest-posts__kicker {
    margin: 0 0 14px;
    color: var(--vsx-lp-accent);
    font-family: Gilroy !important;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing:1px !important;
    text-transform: uppercase;
}

.vsx-latest-posts__title {
    margin: 0 0 14px;
    color: #ffffff;
    font-family: Gilroy !important;
	font-size: clamp(34px, 4.2vw, 54px);
	font-weight: 800;
    line-height: 1.04;
    letter-spacing: -1px !important;
}

.vsx-latest-posts__description {
    max-width: 1221px;
    margin: 0;
    color: #ffffff;
    opacity: 0.90;
    font-family: Gilroy !important;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
}

.vsx-latest-posts__view-all {
    min-height: 42px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-shrink: 0;
    border-radius: 999px;
    background: var(--vsx-lp-view-bg);
    color: var(--vsx-lp-view-color);
    text-decoration: none;
    font-family: Gilroy !important;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    transition: transform 0.25s ease, opacity 0.25s ease;
    box-shadow: none !important;
}

.vsx-latest-posts__view-all:hover {
    color: var(--vsx-lp-view-color);
    opacity: 0.94;
    transform: translateY(-2px);
}

/* ================================
   Grid
================================ */

.vsx-latest-posts__grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(var(--vsx-lp-columns), minmax(0, 1fr));
    gap: var(--vsx-lp-grid-gap);
}

.vsx-latest-posts__empty {
    position: relative;
    z-index: 2;
    padding: 28px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.04) !important;
    color: var(--vsx-lp-muted);
    font-family: Gilroy !important;
    font-size: 15px;
    line-height: 1.6;
}

/* ================================
   Card
================================ */

.vsx-latest-posts__card {
    position: relative;
    min-height: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 28px;
    background: var(--vsx-lp-card-bg);
    border: 1px solid var(--vsx-lp-card-border) !important;
    box-shadow: none !important;
    transition:
        transform 0.28s ease,
        border-color 0.28s ease,
        box-shadow 0.28s ease;
}

.vsx-latest-posts__card:hover {
    transform: translateY(-8px);
    border-color: color-mix(in srgb, var(--vsx-lp-accent) 70%, transparent) !important;
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.32) !important;
}

.vsx-latest-posts__card-link {
    min-height: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

.vsx-latest-posts__card-link:hover,
.vsx-latest-posts__card-link:focus {
    color: inherit;
    text-decoration: none;
}

/* ================================
   Image
================================ */
/* ================================
   Image
================================ */
.vsx-latest-posts__media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; 
    overflow: hidden;
    /* Changed from #ffffff to match your card theme if an image loads slowly */
    background: var(--vsx-lp-card-bg); 
}

.vsx-latest-posts__media img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    display: block;
    object-fit: cover !important;
    object-position: center !important;
    transition: transform 0.45s ease;
}
.vsx-latest-posts__card:hover .vsx-latest-posts__media img {
    transform: scale(1.05);
    opacity: 0.9;
}

/* ================================
   Body
================================ */

.vsx-latest-posts__card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 14px;
    padding: 28px 28px 30px;
    height: auto;
}

.vsx-latest-posts__meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 0;
    color: var(--vsx-lp-meta);
    font-family: Gilroy !important;
    font-size: 13px;
    font-weight: 500;
}

.vsx-latest-posts__badge {
    position: absolute;
    left: 18px;
    top: 18px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--vsx-lp-accent) 18%, rgba(0,0,0,0.35));
    border: 1px solid color-mix(in srgb, var(--vsx-lp-accent) 42%, transparent);
    color: var(--vsx-lp-accent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-family: Gilroy !important;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.vsx-latest-posts__meta {
    color: var(--vsx-lp-meta);
    font-family: Gilroy !important;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
}

.vsx-latest-posts__card-title {
    margin: 0;
    color: #ffffff;
    font-family: Gilroy !important;
    font-size: clamp(20px, 2vw, 24px);
    font-weight: 800;
    line-height: 1.14;
    letter-spacing: -1px;
}

.vsx-latest-posts__excerpt {
    margin: 0;
    color: var(--vsx-lp-card-excerpt);
    font-family: Gilroy !important;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.7;
}

.vsx-latest-posts__read-more {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-family: Gilroy !important;
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
    transition: color 0.25s ease;
}

.vsx-latest-posts__card:hover .vsx-latest-posts__read-more {
    color: var(--vsx-lp-accent);
}

/* ================================
   Tablet
================================ */

@media (max-width: 1024px) {
    .vsx-latest-posts {
        width: calc(100% - 32px);
        padding: 36px 0 76px;
    }

    .vsx-latest-posts__header {
        align-items: flex-start;
        flex-direction: column;
        gap: 22px;
        margin-bottom: 48px;
    }

    .vsx-latest-posts__title {
        max-width: 100%;
        font-size: clamp(40px, 7vw, 64px);
    }

    .vsx-latest-posts__description {
        max-width: 100%;
        font-size: 16px;
    }

    .vsx-latest-posts__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }
}

/* ================================
   Mobile
================================ */

@media (max-width: 767px) {
    .vsx-latest-posts {
        width: calc(100% - 24px);
        padding: 28px 0 58px;
    }

    .vsx-latest-posts__header {
        margin-bottom: 34px;
        text-align: left;
    }

    .vsx-latest-posts__kicker {
        margin-bottom: 18px;
        font-size: 10px;
    }

    .vsx-latest-posts__title {
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
        font-size: clamp(34px, 10vw, 46px);
        line-height: 1.04;
        text-align: left;
    }

    .vsx-latest-posts__description {
        margin: 20px 0 32px;
        max-width: 100%;
        font-size: 16px;
        line-height: 1.5;
        text-align: left;
    }

    .vsx-latest-posts__view-all {
        min-height: 46px;
        padding: 0 18px;
        font-size: 14px;
    }

    .vsx-latest-posts__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .vsx-latest-posts__card {
        border-radius: 22px;
    }

    .vsx-latest-posts__card-body {
        padding: 22px 20px 24px;
    }

    .vsx-latest-posts__badge {
        left: 18px;
        top: 18px;
        min-height: 30px;
        padding: 6px 12px;
        font-size: 10px;
    }

    .vsx-latest-posts__meta {
        font-size: 13px;
    }

    .vsx-latest-posts__card-title {
        font-size: 24px;
    }

    .vsx-latest-posts__excerpt {
        font-size: 14px;
    }

    .vsx-latest-posts__read-more {
        font-size: 15px;
    }
}