/* ==========================================================
   GRID 2 COLONNES
========================================================== */

.ydu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* ==========================================================
   CARTE
========================================================== */

.ydu-article-card {
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ydu-card-inner {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow .25s ease, transform .25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ydu-card-inner:hover {
    box-shadow: 0 6px 25px rgba(0,0,0,.12);
    transform: translateY(-4px);
}

/* ==========================================================
   IMAGE
========================================================== */

.ydu-thumb-wrap {
    display: block;
    overflow: hidden;
}

.ydu-thumb {
    width: 100%;
    height: 230px;
    object-fit: cover;
    transition: transform .35s ease;
}

.ydu-card-inner:hover .ydu-thumb {
    transform: scale(1.06);
}

/* ==========================================================
   CONTENT
========================================================== */

.ydu-card-content {
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ydu-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.25;
}

.ydu-title a {
    color: #55a908;
    text-decoration: none;
}

.ydu-title a:hover {
    text-decoration: underline;
}

.ydu-excerpt {
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 16px;
    color: #555;
    flex-grow: 1;
}

.ydu-readmore {
    display: inline-block;
    font-weight: 600;
    color: #65224b;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    margin-top: auto;
}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 991px) {
    .ydu-grid {
        grid-template-columns: 1fr;
    }

    .ydu-thumb {
        height: 180px;
    }
}
