@charset "UTF-8";

/*
****************************************
news
*****************************************/
#news {
    width: 100%;
}

.__news_section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    margin: 70px auto 0;
    max-width: 768px;
    padding-top: 2rem;
}

@media screen and (width <= 768px) {
    .__news_section {
        margin: 56px auto 0;
        padding: 2rem .5rem;
    }
}

h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 0;
    border-bottom: 1px dotted #ccc;
    padding-bottom: .5rem;
}

@media screen and (width <= 768px) {
    h2 {
        flex-direction: column;
    }
}

h2 span.__pg_title {
    position: relative;
    font-size: 2rem;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .2rem;
    padding-left: 2.2rem;
}

h2 span.__pg_title::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 1.75rem;
    height: 1.75rem;
    background: url("../img/icon_news.png") no-repeat center center;
    background-size: contain;
}

h2 small {
    font-size: 1.125rem;
}

h2 small.__for_user,
h2 small.__for_dealer {
    padding: .25rem .5rem;
    font-size: .875rem;
    color: #fff;
    border-radius: .25rem;
}

h2 small.__for_user {
    background: #d60;
}

h2 small.__for_dealer {
    background: #06c;
}

ul.__news_list {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    max-height: 60vh;
    overflow: auto;
}

.__news_list li {
    display: flex;
    align-items: center;
    gap: .5rem;
    line-height: 2;
    border-bottom: 1px dotted #ccc;
    padding-bottom: .25rem;
}

.__news_list li::before {
    content: "";
    width: 5px;
    height: 5px;
    background: #F39D47;
    border-radius: 50%;
}

.__news_list li a .__news_date {
    width: 76px;
    padding: 2px 8px;
    font-size: 12px;
    color: #FFF;
    background: #D74600;
    font-weight: 300;
}

.__news_list li a .__news_title {
    font-size: 13px;
    margin-left: .5rem;
    max-width: 64ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

ul.__pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
}

ul.__pagination li {
    display: flex;
    align-items: center;
    gap: .5rem;
    list-style: none;
}

ul.__pagination li a {
    display: inline-block;
    width: 2rem;
    padding: .25rem;
    color: #FFF;
    background: #F39D47;
    border-radius: .25rem;
    text-align: center;
    text-decoration: none;
}

ul.__pagination li:first-child a,
ul.__pagination li:last-child a {
    color: #f39d47;
    background: none;
    font-weight: bold;
}

.__btn {
    display: flex;
    align-items: center;
    justify-content: center;
}

.__btn__link {
    display: block;
    padding:.5rem 5rem;
    font-size: .875rem;
    color: inherit;
    background: #F9F7F1;
    border-radius: 4px;
    text-align: center;
    line-height: 1;
    border: 1px solid #DCDDDD;
    box-sizing: border-box;
}

.__btn__link::before {
    content: "\f0d9";
    color: #ee7602;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    padding-right: .25rem;
}

.__news_text_wrap {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    min-height: 50vh;
}

.__news_date {
    font-size: .875rem;
}

.__news_text {
    font-size: 1rem;
    line-height: 2;
}

.-link-to-list {
    position: relative;
    align-self: end;
    margin: 3rem 0;
    font-size: .875rem;
    color: #F70;
    padding-left: 1.125rem;
    text-decoration: underline;
    text-underline-offset: .3rem;
}

.-link-to-list:hover {
    color: #D74600;
}

.-link-to-list::before {
    content: "\f0ca";
    position: absolute;
    top: 50%;
    left: 0;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    transform: translateY(-50%);
}

.-link-to-list em {
    font-weight: bold;
}