.advertisement-section {
    padding-top: 40px;
    padding-bottom: 40px;
}

.advertisements__thumb {
    height: 270px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
    & > .relative {
        height: 100%;
    }
    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.advertisements__sectiontitle {
    text-transform: lowercase;
    &::first-letter {
        text-transform: uppercase;
    }
}

.advertisements__sectiontitle.section-title-bg {
    margin-bottom: 20px;
}

.advertisements__latests {
    display: flex;
    flex-direction: column;
    row-gap: 40px;
    margin-bottom: 20px;
}

.advertisements__title {
    margin-bottom: 0;
    margin-top: 0;
    font-size: 1.438rem;

}

.advertisements__date {
    font-size: 1.125rem;
    margin-bottom: 10px;
}

.advertisements__title,
.advertisements__date {
    transition: color .25s ease-in;
}

.advertisements__page {
    display: flex;
    justify-content: center;
}

.advertisements__page.default__button {
    a {
        display: inline-block;
        text-transform: lowercase;
        position: relative;
        padding-right: 68px;
        span {
            position: absolute;
            right: 20px;
            top: 50%;
            transform: translateY(-50%);
        }
    }
    
    a::first-letter {
        text-transform: uppercase;
    }
}

.advertisements__item-link {
    padding: 10px;
    transition: background-color .25s ease;
    display: block;
    border-radius: 9px;
    &:hover {
        background-color: var(--wp--preset--color--accent-1);
        .advertisements__date,
        .advertisements__title {
            color: var(--wp--preset--color--accent-2);
        }
    }
}

@media (max-width: 639px) {
    .advertisements__thumb {
        height: 210px;
    }
}

@media (min-width: 1024px) {
    .advertisements {
        position: relative;
        z-index: 1;
    }
    .advertisements__sectiontitle {
        margin-top: 0;
        margin-bottom: 40px;
    }
    .advertisement-section {
        position: relative;
        &:before {
            background-image: url('../../images/section-bg-01.svg');
            background-repeat: no-repeat;
            background-size: 800px auto;
            background-position: left center;
            content:" ";
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            opacity: .04;
            z-index: 0;
        }
        padding-top: 50px;
        padding-bottom: 50px;
    }
    .advertisements__latests {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        row-gap: 0;
        margin-bottom: 30px;
    }

    .advertisements__item {
        flex: 33.33% 0 1;
        display: flex;
        height: auto;
    }

    .advertisements__item-link {
        flex-direction: column;
        display: flex;
        border-radius: 15px;
        height: auto;
    }
}

@media (min-width: 1280px) {
    .advertisement-section {
        &:before {
            background-size: 800px auto;
            
        }
        padding-top: 80px;
        padding-bottom: 80px;
    }
    .advertisements__sectiontitle.section-title-bg {
        margin-bottom: 40px;
    }
}

@media (min-width: 1536px) {
    .advertisements__latests {
        margin-bottom: 40px;
    }
    .advertisement-section {
        &:before {
            background-size: 1000px auto;
        }
        padding-top: 100px;
        padding-bottom: 100px;
    }
}

