/* =========================================================
   Related Articles — single post bottom section
   Figma nodes: 7153:22998 (desktop), 7153:23527 (mobile)
   ========================================================= */
.related-articles {
    background: #F8EFF3;
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    padding: 80px 20px;
    box-sizing: border-box;
}

.related-articles .related-articles__container {
    width: 100%;
    display: flex;
    flex-flow: column nowrap;
    gap: 60px;
}

.related-articles .related-articles__header {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    width: 100%;
}

.related-articles .related-articles__title {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    color: #000;
    font-family: "Noto Sans", sans-serif;
    font-size: 44px;
    font-style: italic;
    font-weight: 600;
    line-height: 56px;
    letter-spacing: 0;
    text-transform: capitalize;
    font-variation-settings: 'wdth' 100;
}

.related-articles .related-articles__view-all {
    display: inline-flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-shrink: 0;
    padding: 20px 24px;
    background: #701346;
    color: #fff;
    border-radius: 200px;
    text-decoration: none;
    font-family: "Noto Sans", sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 20px;
    text-transform: capitalize;
    transition: background-color 0.2s ease-in-out;
}

.related-articles .related-articles__view-all:hover {
    background: #000;
}

.related-articles .related-articles__view-all-label {
    color: inherit;
}

.related-articles .related-articles__view-all-icon {
    display: inline-flex;
    width: 20px;
    height: 20px;
    color: inherit;
}

.related-articles .related-articles__view-all-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Grid of cards */
.related-articles .related-articles__grid {
    display: flex;
    flex-flow: row wrap;
    gap: 24px;
    align-items: stretch;
    width: 100%;
}

.related-articles .related-card {
    width: calc((100% - 48px) / 3);
    display: flex;
    flex-flow: column nowrap;
    background: #fff;
    filter: drop-shadow(5px 5px 15px rgba(112, 19, 70, 0.15));
    text-decoration: none;
    color: inherit;
    overflow: hidden;
}

/* Card image */
.related-articles .related-card .related-card__image {
    display: block;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #d5d5d5;
}

.related-articles .related-card .related-card__image img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease-in-out;
}

.related-articles .related-card .related-card__image:hover img {
    transform: scale(1.05);
}

/* Card content */
.related-articles .related-card .related-card__content {
    background: #fff;
    padding: 24px;
    display: flex;
    flex-flow: column nowrap;
    gap: 32px;
    flex: 1 1 auto;
}

.related-articles .related-card .related-card__body {
    display: flex;
    flex-flow: column nowrap;
    gap: 12px;
    width: 100%;
}

.related-articles .related-card .related-card__meta {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.related-articles .related-card .related-card__date {
    display: inline-flex;
    flex-flow: row nowrap;
    align-items: center;
    gap: 8px;
    color: #000;
}

.related-articles .related-card .related-card__date-icon {
    display: inline-flex;
    width: 20px;
    height: 20px;
    color: #000;
}

.related-articles .related-card .related-card__date-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.related-articles .related-card .related-card__date-label {
    font-family: "Lato", sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    letter-spacing: 1.28px;
    text-transform: uppercase;
    white-space: nowrap;
}

.related-articles .related-card .related-card__category {
    background: #701346;
    color: #fff;
    padding: 2px 20px;
    border-radius: 60px;
    font-family: "Lato", sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    letter-spacing: 1.28px;
    text-transform: uppercase;
    white-space: nowrap;
}

.related-articles .related-card .related-card__title {
    margin: 0;
    color: #000;
    font-family: "Noto Sans", sans-serif;
    font-size: 24px;
    font-style: italic;
    font-weight: 600;
    line-height: 32px;
    letter-spacing: 0;
    text-transform: capitalize;
    font-variation-settings: 'wdth' 100;
}

.related-articles .related-card .related-card__title a {
    color: inherit;
    font: inherit;
    font-style: inherit;
    text-decoration: none;
}

.related-articles .related-card .related-card__title a:hover {
    color: #701346;
}

.related-articles .related-card .related-card__cta {
    display: inline-flex;
    flex-flow: row nowrap;
    align-items: center;
    gap: 12px;
    color: #701346;
    font-family: "Noto Sans", sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 20px;
    text-transform: capitalize;
    text-decoration: none;
    align-self: flex-start;
    transition: gap 0.2s ease-in-out;
}

.related-articles .related-card .related-card__cta:hover {
    gap: 16px;
}

.related-articles .related-card .related-card__cta-icon {
    display: inline-flex;
    width: 26px;
    height: 12px;
    color: inherit;
}

.related-articles .related-card .related-card__cta-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1279px) {
    .related-articles {
        padding: 60px 20px;
    }

    .related-articles .related-articles__container {
        gap: 40px;
    }

    .related-articles .related-articles__grid {
        gap: 20px;
    }

    .related-articles .related-card {
        width: calc((100% - 40px) / 3);
    }

    .related-articles .related-card .related-card__image {
        height: 200px;
    }
}

@media (max-width: 767px) {
    .related-articles {
        padding: 40px 20px;
    }

    .related-articles .related-articles__container {
        gap: 32px;
    }

    .related-articles .related-articles__header {
        flex-flow: column nowrap;
        align-items: center;
        gap: 20px;
    }

    .related-articles .related-articles__title {
        font-size: 34px;
        line-height: 46px;
        text-align: center;
        flex: 0 0 auto;
        width: 100%;
    }

    .related-articles .related-articles__view-all {
        width: auto;
        padding: 20px 24px;
    }

    .related-articles .related-articles__grid {
        flex-flow: column nowrap;
        gap: 20px;
        align-items: stretch;
    }

    .related-articles .related-card {
        width: 100%;
    }

    .related-articles .related-card .related-card__image {
        height: 200px;
    }

    .related-articles .related-card .related-card__content {
        padding: 20px;
        gap: 24px;
    }

    .related-articles .related-card .related-card__title {
        font-size: 20px;
        line-height: 28px;
    }
}

/* =========================================================
   Related Articles horizontal padding — mobile-first overrides
   (placed after the max-width queries so they take precedence)
   ========================================================= */
@media (min-width: 768px) {
    .related-articles {
        padding-left: 40px;
        padding-right: 40px;
    }
}

@media (min-width: 1024px) {
    .related-articles {
        padding-left: 60px;
        padding-right: 60px;
    }
}

@media (min-width: 1280px) {
    .related-articles {
        padding-left: 11%;
        padding-right: 11%;
    }
}
