.main-page {
    padding: 0 0 30px;
}

.news-block{
    width: 69%;
}

h1.news-title {
    position: static;
    width: auto;
    height: auto;
    font-size: 1.55rem;
    font-weight: 400;
    line-height: 100%;
    text-transform: uppercase;
    margin-bottom: 10px;  
    white-space: normal;    
    line-height: normal;
}
h1.news-title:hover{
   color: inherit;
}

.source::before {
    content: "Источник: ";
}

.source {
    display: inline;
}

.article-category {
    margin-bottom: 20px;
    background-color: #fff;
}

.news-date {
    margin-top: -25px;
    font-weight: 400;
}

.allnews-date{
    color: #726D6D;
    font-size: 0.8em;
    text-align: left;
    font-weight: bold;
}

/* Breadcrumbs styles */
.breadcrumbs {
    padding: 15px 0;
    margin: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

.breadcrumbs-item {
    display: inline-block;
    margin: 0 5px;
}

/* Separator */
.breadcrumbs-item:not(:last-child)::after {
    content: "/";
    margin-left: 10px;
    color: #999;
}

/* Link styles */
.breadcrumbs-link {
    text-decoration: none;
    color: #aeacac;
    font-size: 14px;
    transition: color 0.3s;
}

.breadcrumbs-link:hover {
    color: #23a000;
}

/* Current page (non-link) */
.breadcrumbs-current {
    font-size: 14px;
}


/* quote */
.news-quote {
    margin: 30px 0;
    padding: 15px 20px;
    border-left: 4px solid #D90E15;
    font-style: italic;
}

blockquote {
    display: inline-block;
    border-left: 5px solid #00b765;
    font-style: italic;
    margin: 16px;
    padding: 16px 24px;
    position: relative;
}

blockquote:before {
    content: "";
    position: absolute;
    top: 50%;
    left: -6px;
    height: 40px;
    background-color: #F4EFED;
    width: 6px;
    margin-top: -1em;
}

blockquote:after {
    content: "”";
    position: absolute;
    top: 50%;
    left: -20px;
    color: #D90E15;
    font-size: 50px;
    font-family: Times, sans-serif;
    font-weight: 700;
    line-height: 30px;
}

/* video */
.video-container {
    margin: 30px 0;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 соотношение */
    height: 0;
    overflow: hidden;
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.clearfix {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.article-content {
    flex: 1 1 69%;
    min-width: 300px;
}

/* Боковой раздел */
.sidebar {
    flex: 1 1 25%;
    min-width: 250px;
    position: sticky;
    top: 100px; 
    align-self: flex-start; 
    max-height: 100vh; 
    overflow-y: auto; 
}

/* Стили Сайдбара */
.news-sidebar {
    background: #fff;
    padding: 20px;
}

.sidebar-news-item {
    padding: 10px 0;
    border-bottom: 0.5px solid #cecccc;
}

.sidebar-news-item:last-child {
    border-bottom: none;
}

.sidebar-news-link {
    color: inherit;
    font-size: 0.95em;
    font-weight: 700;
    text-decoration: none;
    line-height: 1.3;
    display: inline-block;
    margin-bottom: 8px;
}

.sidebar-news-link:hover {
    color:  #23a000;
    transition: color 0.3s ease;
}

.page-news-date {
    font-size: 14px;
}

/*3 КАРТИНКИ*/
.container-images-add {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
   
}

.images-add {
    flex: 1 1 33.33333%;
    max-width: 100%;
    overflow: hidden;
}


.images-add img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

 @media (max-width: 992px) {
    .images-add {
        flex: 1 1 45%;
    }
}

@media (max-width: 768px) {
    .container-images-add {
        gap: 15px;
    }
    
    .images-add {
        max-width: 400px;
    }
}

@media (max-width: 480px) {
    
    .container-images-add {
        gap: 10px;
    }
    
}




/*Все новости/проекты*/
.news-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.ALL-news-block {
    flex: 0 0 calc(50% - 30px);
    margin: 15px;
    background-color: white;
    padding: 25px; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ALL-news-block:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/*Все реализованные инициативы*/
.ALL-realized-block {
            display: flex;
            margin-bottom: 30px;
            background-color: #fff;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
          
        }
        .ALL-realized-block:hover{
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
        }
        
        .news-image img { 
            object-fit: cover;
            display: block;
        }
        
        .news-content {
            padding: 20px;
            flex: 1;
            display: flex;
            flex-direction: column;
        }

@media (max-width: 768px) {
    .news-block{
        width: 100%;
    }
    .ALL-realized-block {
        flex-direction: column;
    }
    
    .news-image img {
        width: 100%;
        height: auto;
    }
    
    .news-content {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .ALL-realized-block {
        margin-bottom: 20px;
    }
    
    .news-content {
        padding: 10px;
    }
    
    .news-title {
        font-size: 18px;
    }
    
    .news-text {
        font-size: 14px;
    }
    
    .allnews-date {
        font-size: 12px;
    }
}


.pagination {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    justify-content: flex-start;
}

.pagination-pages {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: transparent;
  
    font-size: 14px;
    border-radius: 4px;
}

.pagination-btn:hover {
    color: #23a000;
    background-color: #fff;
}

.pagination-btn.active {
    color: #23a000;
    font-weight: 600;
    background-color: #fff;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-dots {
    padding: 0 0.25rem;
    font-weight: 600; 
}


@media (max-width: 640px) {
    .pagination {
        padding: 0.75rem 0;
    }
    
    .pagination-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .pagination-pages {
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .pagination-pages {
        gap: 0.25rem;
    }
}

@media (max-width: 480px) {
    
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pagination-pages {
        order: -1;
        width: 100%;
        justify-content: center;
        margin-bottom: 0.5rem;
    }
}



@media (max-width: 768px) {
    h1.news-title {
        font-size: 1.3rem;
    }
    
    .clearfix {
        flex-direction: column;
    }
    
    .article-content,
    .sidebar {
        flex: 1 1 100%;
        min-width: 100%;
        position: static; /* Отключаем sticky на мобильных */
    }
}

@media (max-width: 480px) {
    .breadcrumbs-item {
        font-size: 12px;
    }
    
    .video-container {
        height: 200px;
        padding-bottom: 0;
    }
}


@media (max-width: 992px) {
    .ALL-news-block  {
        flex: 0 0 calc(50% - 30px); /* Остается 2 колонки */
        padding: 20px;
    }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .news-row {
        margin: 0 10px 0 -10px;
        gap: 20px;
    }
    
    .ALL-news-block  {
        flex: 0 0 100%; /* 1 колонка на мобильных */
        margin: 0 10px;
        padding: 20px 15px;
    }
    
    .news-title {
        font-size: 16px;
    }
    
    .news-text {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .ALL-news-block  {
        padding: 15px 12px;
    }
    
    .news-title {
        font-size: 15px;
    }
}


 