.related-post-block {
    background-color: #37295C;
    padding: 25px 14px;
    color: #FFFFFF;
    overflow-x: hidden;

    @media screen and (min-width: 768px) {
        padding-right: var(--wp--style--root--padding-right);
        padding-left: var(--wp--style--root--padding-left);
    }

    @media screen and (min-width: 992px) {
        padding: 50px;
    }

    .related-post-block-inner {
        .text-container {
            .acf-innerblocks-container {
                .wp-block-heading {
                    position: relative;
                    padding-bottom: 20px;
                    @media screen and (max-width: 768px) {
                        font-size: 28px !important;
                    }
                    &::after {
                        position: absolute;
                        content: "";
                        bottom: 0;
                        left: 0;
                        height: 3px;
                        background-color: #FDC661;
                        width: 100%;
                        max-width: 120px;
                    }
                }
            }
        }
    }
    .related-post-grid {
        margin-top: 24px;
        margin-block-start: 24px !important;
        max-width: var(--wp--style--global--content-size);
        margin: 0 auto;
        position: relative;
        overflow-x: hidden;

        .image-container {
            margin-bottom: 20px;

            a {
                display: block;
            }
        }

        .item-title {
            color: var(--wp--preset--color--white);
            font-size: 24px;
            font-weight: 600;
            line-height: 1.4;
            text-transform: uppercase;
            margin: 20px 0 15px;
            @media screen and (max-width: 768px) {
                font-size: 18px;
                margin: 10px 0 15px;
            }
            a {
                text-decoration: none;
            }
        }

        .item-category {
            text-decoration: none;
            color: var(--wp--preset--color--white);
            font-size: 16px;
            font-weight: 300;
            line-height: 1.4;
            text-transform: uppercase;
        }

        .item-more {
            color: var(--wp--preset--color--white);
            font-size: 18px;
            font-weight: 700;
            line-height: 1.5;

            a {
                text-decoration: none;
                display: inline-flex;
                align-items: center;
                gap: 0.25em;

                span:first-child {
                    color: var(--wp--preset--color--red);
                }

                span:last-child {
                    position: relative;

                    &::after {
                        content: '';
                        position: absolute;
                        width: 0;
                        height: 2px;
                        bottom: 0px;
                        left: 0;
                        background-color: var(--wp--preset--color--red);
                        transition: width 0.3s ease;
                    }
                }

                @media (hover: hover) and (pointer: fine) {
                    &:hover {
                        span:last-child::after {
                            width: 100%;
                        }
                    }
                }
            }
        }

        .related-post-splide-custom-nav {
            margin-top: 12px;

            .splide__arrows {
                display: flex;
                column-gap: 1px;
                justify-content: flex-end;
            }

            .splide__arrow {
                background-color: var(--wp--preset--color--red);
                width: 44px;
                height: 44px;
                border-radius: 0;
                opacity: 1;
                position: relative;
                top: auto;
                right: auto;
                left: auto;
                transform: unset;
                @media (hover: hover) and (pointer: fine) {
                    &:hover {
                        background-color: #F69021;
                    }
                }
                svg {
                    fill: var(--wp--preset--color--white);
                    width: 14px;
                    height: 16px;
                }
            }
        }
        .splide__list {
            .splide__slide {
                img {
                    width: 100%;
                    max-width: 100vw;
                    max-height: 335px;
                    object-fit: cover;
                    aspect-ratio: 1/1;
                }
            }
        }
    }
}

@media screen and (min-width: 1200px) {
	.related-post-grid {
		.splide__track {
			position: relative;
			width: calc( 100vw - 15%);
			max-width: 1366px;
			margin-left: 0;
			margin-right: 0;
			padding-left: calc((100vw - 1310px) / 2);
			overflow: hidden;
		}
	}
}

@media screen and (max-width: 991px) {
    .splide__list {
        .splide__slide {
            margin-bottom: 30px;
			img {
                width: 100vw;
			}
		}
	}
	.related-post-splide-custom-nav {
        display: none;
	}
}