.title {
    font-size: var(--fs-xl);
    margin-bottom: var(--space-m);
    text-align: center;
}

.container-all-in-page{
    width: 100%;
}

.container{
    position: relative;
    margin-top: var(--space-3xl);
    width: 70%;
}

/* Кнопка "Назад" */
.back-arrow {
    position: absolute;
    left: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    padding: 4px;
    cursor: pointer;
}

.back-arrow svg {
    display: block;
}

.main-part{
    display: flex;
    flex-direction: column;
    margin-bottom: var(--space-4xl);
    max-width: 80%;
}

.center-part{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.img-announcement{
    height: 100%;   
    max-width: 408px;    
    object-fit: contain;   
    border-radius: var(--br-xl);
    margin: var(--space-l) 0 var(--space-m) 0;
}

.announcement-description{
    font-size: var(--fs-xs);
    width: 100%;
    text-align: justify;
    hyphens: auto;
    white-space: pre-line; /* зберігаємо переноси рядків з адмінки */
}

.announcement-text{
    display: flex;
    flex-direction: column;
    gap: var(--space-2xs);
    padding-left: var(--space-s);
    margin-top: var(--space-xs);
}

.announcement-link{
    font-weight: var(--fw-regular);
    text-decoration: none;
    display: flex;
    flex-direction: row;
    gap: var(--space-3xs);
}

.link{
    text-decoration: underline;
    color: var(--text-dark-main);
}

.annoucement-text-all{
    font-size: var(--fs-xs);
}

.back-arrow svg {
    display: block;
    width: 40px;
    height: 40px;
}

@media (min-width: 560px) and (max-width: 1024px){
    .container{
        position: relative;
        margin-top: var(--space-2xl);
        width: 95%;
    }

    .img-announcement{
        height: 210px;   
        max-width: 260px;    
        object-fit: cover;
        margin: 0;
        margin-bottom: 16px;   
    }
    .back-arrow svg {
        width: 32px;
        height: 32px;
    }

}
/* Мобільна адаптація для анонсів */
@media (max-width: 560px) {
    .container{
        position: relative;
        margin-top: var(--space-3xl);
        width: 95%;
    }

    .main-part{
        display: flex;
        flex-direction: column;
        margin-bottom: var(--space-4xl);
        max-width: 100%;
    }

    .title {
        font-size: var(--fs-xl);
        margin-bottom: var(--space-m);
        text-align: center;
    }

    .img-announcement {
        height: 140px;   
        width: 252px;    
        object-fit: cover;
        margin: 0;
        margin-bottom: 16px;   
    }

    .back-arrow {
        left: 0;
        top: 0;
    }

    .main-part {
        max-width: 100%;
    }

    .announcement-description {
        font-size: var(--fs-xs);
        max-width: 100%;
        text-align: justify;
    }

    .back-arrow svg {
        width: 28px;
        height: 28px;
    }
}