main {
    background: #FFEFF7;
    padding: 150px 0 350px;
}

figure {
    margin: 0;
}

figure img {
    object-fit: contain !important;
    aspect-ratio: 4 / 3;
    max-height: 500px;
    height: auto;
}

article {
    width: min(90%, 1200px);
    margin: 0 auto;
    background-color: #fff;
    border-radius: 15px;
    padding: 40px;
    margin-top: 40px;
}

.text-on-img {
    width: 400px;
    aspect-ratio: 2 / 1 ;
    font-size: 2rem;
    color: #FFF;
    font-weight: bold;
    background-image: url("../img/page-title-back-01.webp");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.text-on-img > h1 {
    font-weight: 500 !important;
    font-size: 1rem !important;
}

.news-title-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 2px solid #DB2473;
    padding-bottom: 10px;
}

h3 {
    color: #DB2473;
    text-align: center;
    font-size: 1.3rem;
}

time {
    color: #DB2473;
}

.news-content-container {
    margin-top: 40px;
}

.news-back-container {
    margin-top: 20px;
}

.news-back-container p a{
    color: #DB2473;
}

@media (max-width: 960px) {
    .text-on-img {
        width: 300px;
        height: 170px;
        font-size: 1.8rem;
        font-weight: 700;
    }
    main {
        padding: 100px 0 350px;
    }
    h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
        text-align: unset;
    }
    .news-title-container {
        flex-direction: column;
        align-items: flex-start;
    }
    .news-content-container {
        margin-top: 10px;
    }
    article {
        margin-top: 20px;
        padding: 20px;
    }
}

@media (max-width: 768px) {
    main {
        padding: 40px 0 320px !important;
    }
}

@media (max-width: 640px) {
    main {
        padding: 40px 0 300px !important;
    }
}