.news {
padding: 50px 0 110px 0;
}
.news__title {
font-family: var(--second-family);
font-weight: 700;
font-size: 50px;
text-transform: uppercase;
color: var(--tekst-zagolovkm);
margin-bottom: 70px;
padding: 0 75px;
}
.news-list {
display: flex;
flex-direction: column;
gap: 50px;
padding: 0 75px;
}
.news__item {
display: flex;
overflow: hidden;
gap: 24px;
}
.news-image-wrapper {
position: relative;
flex: 0 0 450px;
height: 308px;
overflow: hidden;
}
.news__item--image {
width: 100%;
height: 100%;
background-size: cover;
background-position: center center;
background-repeat: no-repeat;
}
.news__item--image-placeholder {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
display: flex;
align-items: center;
justify-content: center;
}
.news__item--image-placeholder::before {
content: '📰';
font-size: 64px;
}
.news__item--content {
flex: 1;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.news__item--content--title {
font-family: var(--second-family);
font-weight: 700;
font-size: 36px;
text-transform: uppercase;
color: var(--tekst-zagolovkm);
}
.news__item--content--description {
font-family: var(--font-family);
font-weight: 400;
font-size: 14px;
line-height: 140%;
color: var(--tekst-zagolovkm);
}
.news-button {
align-self: flex-start;
padding: 15px 25px;
text-align: center;
} .news-pagination {
margin-top: 50px;
text-align: center;
}
.news-pagination .page-numbers {
display: inline-block;
padding: 10px 15px;
margin: 0 5px;
background-color: #fff;
color: #333;
text-decoration: none;
border-radius: 6px;
border: 1px solid #ddd;
transition: all 0.3s ease;
font-weight: 500;
}
.news-pagination .page-numbers:hover,
.news-pagination .page-numbers.current {
background-color: #d84a3e;
color: #fff;
border-color: #d84a3e;
text-decoration: none;
}
.news-pagination .page-numbers.prev,
.news-pagination .page-numbers.next {
font-size: 18px;
padding: 8px 12px;
} .news-no-posts {
text-align: center;
padding: 60px 20px;
background: #fff;
border-radius: 12px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.news-no-posts p {
font-size: 18px;
color: #666;
margin: 0;
}
@media screen and (max-width: 1279px) {
.news .container {
padding: 0 40px;
}
.news__title,
.news-list {
padding: 0;
}
}
@media (max-width: 959px) {
.news-image-wrapper {
flex: 0 0 55%;
height: 250px;
}
.news__title {
margin-bottom: 40px;
}
.news-list {
gap: 30px;
}
.news__item--content--title {
font-size: 24px;
}
.news__item {
gap: 20px;
}
}
@media (max-width: 767px) {
.news .container {
padding: 0 15px;
}
.news__item {
flex-direction: column;
gap: 24px;
}
.news-image-wrapper {
flex: 0 0 100%;
}
.news__item--image {
min-height: 300px;
}
.news__title {
font-size: 36px;
margin-bottom: 20px;
}
.news__item--content {
gap: 20px;
}
.news-list {
gap: 40px;
}
.news {
padding: 40px 0 70px 0;
}
}
@media (max-width: 550px) {
.news__item--image {
min-height: 260px;
}
.news-button {
width: 100%;
}
}