.article-card-wrapper-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Article Card and Stacked Article Card Styles */
.article-card-wrapper {
    position: relative;
    width: 361px;
    min-width: 280px;
    max-width: 100%;
    height: 100%;
    min-height: 655px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-card-back {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.article-card-back img {
    width: 100%;
    height: 100%;
    display: block;
}

.article-card-wrapper:hover .article-card-back {
    opacity: 1;
    transform: scale(1);
}

.article-card-wrapper:hover .article-card-back {
    opacity: 1;
    transform: translateX(-10px);
    min-width: 380px;
    z-index: 0;
}

.article-card {
    background: #fff;
    border: 0.45px solid #181818;
    display: flex;
    flex-direction: column;
    gap: 21.74px;
    width: 361px;
    min-width: 280px;
    max-width: 100%;
    padding: 14.721px 29.441px;
    box-sizing: border-box;
    position: relative;
    height: 100%;
    z-index: 1;
    box-sizing: border-box;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.article-card-wrapper:hover .article-card {
    transform: translateX(10px);
}

.article-card-wrapper:hover .article-card {
    transform: none;
    /* Remove sliding effect on card hover */
}

.article-card-header {
    display: flex;
    gap: 21.514px;
    align-items: center;
    width: 100%;
}

.article-card-date {
    font-family: "General Sans Variable", sans-serif;
    font-size: 14px;
    color: #181818;
}

.article-card-label {
    border: 0.652px solid #833C1E;
    border-radius: 65.193px;
    padding: 5.215px 7.823px;
    font-family: "General Sans Variable", sans-serif;
    font-size: 14px;
    color: #833C1E;
    white-space: nowrap;
}

.article-card-image {
    width: 100%;
    aspect-ratio: 1/1;
    position: relative;
}

.article-card-image img {
    aspect-ratio: 1/1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    left: 0;
    top: 0;
}

.article-card-title {
    font-family: "General Sans Variable", sans-serif;
    font-size: 16px;
    color: #181818;
    font-weight: 400;
    margin: 0;
}

.article-card-excerpt {
    font-family: "General Sans Variable", sans-serif;
    font-size: 14px;
    color: #181818;
    font-weight: 400;
    margin: 0;
}

.stacked-article-card-wrapper {
    position: relative;
    width: 388.547px;
    height: 669.62px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stacked-article-card-back {
    position: absolute;
    left: 0;
    top: 0.27px;
    z-index: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.stacked-article-card-back img {
    width: 100%;
    height: 100%;
    display: block;
}

.stacked-article-card-front {
    position: absolute;
    left: 14.52px;
    top: 0;
    z-index: 1;
    width: 361px;
    height: 100%;
    display: flex;
    align-items: center;
}

@media (max-width: 1200px) {

    .article-card-wrapper,
    .article-card {
        width: 320px;
        margin-right: 0;
        height: 100%;
    }
}

@media (max-width: 900px) {

    .article-card-wrapper,
    .article-card {
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 600px) {
    .article-card-wrapper {
        width: 90vw;
        min-width: 200px;
        max-width: 320px;
        flex-shrink: 0;
        margin: 0 auto;
        box-sizing: border-box;
    }

    .article-card {
        width: 100%;
        min-width: 200px;
        max-width: 320px;
        flex-shrink: 0;
        margin: 0 auto;
        box-sizing: border-box;
    }

    .article-card-title {
        font-size: 16px;
    }

    .article-card-excerpt {
        font-size: 14px;
    }
}