body, .ast-separate-container{
	background-color: #0C0C0C;	
}
.cgr__header{
display: flex;
flex-direction: column;
}
.cgrh__middle_line{
display: flex;
flex-direction: row;
justify-content: space-between;
}
.header-left-menu,
.header-right-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-left-menu li,
.header-right-menu li {
    margin: 0;
    position: relative;
}

.header-left-menu a,
.header-right-menu a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
	text-transform: uppercase;
}

.header-left-menu a:hover,
.header-right-menu a:hover {
    color: #0073aa;
}
.header-left-menu .sub-menu,
.header-right-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #3f444b;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: none;
    z-index: 1000;
}

.header-left-menu li:hover .sub-menu,
.header-right-menu li:hover .sub-menu {
    display: block;
}
.header-left-menu,
.header-right-menu {
    display: flex;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.header-left-menu li,
.header-right-menu li {
    position: relative;
    margin: 0;
}
.header-left-menu li:not(:last-child)::after,
.header-right-menu li:not(:last-child)::after {
    content: "|";
    color: #fff;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}
.header-left-menu a,
.header-right-menu a {
    text-decoration: none;
    color: #9C9C9C;
    padding-left: 19px;
    padding-right: 19px;
    display: block;
    transition: color 0.3s ease;
    position: relative;
}
.header-left-menu a:hover,
.header-right-menu a:hover {
    color: #ACD527;
}
.cgrh__middle_line .top_left__menu_wrapper {
    text-align: left;
}
.header-left-menu {
    justify-content: flex-start;
}
.cgrh__middle_line .top_right__menu_wrapper {
    text-align: right;
}
.header-right-menu {
    justify-content: flex-end;
}
.header-left-menu .sub-menu,
.header-right-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
background-color: #1D1D1D;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: none;
    z-index: 1000;
    min-width: 200px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.header-right-menu .sub-menu {
    left: auto;

}
.dropdown-menu-toggle{
	padding: 0 0 0 5px;
}
.header-left-menu li:hover > .sub-menu,
.header-right-menu li:hover > .sub-menu {
    display: block;
}
.sub-menu li {
    width: 100%;
	border: none;
}

.sub-menu li:last-child {
    border-bottom: none;
}

.sub-menu a {
    padding: 10px 19px;
    color: #fff;
    white-space: nowrap;
	text-transform: none;
	padding: 13px 20px;
	font-size: 13px;
}

.sub-menu a:hover {
    color: #ACD527;
    background-color: #3f444b;
}

.sub-menu li:not(:last-child)::after {
    content: none;
}
.header-right-menu li ul li:not(:last-child)::after{
	content: none;
}
/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .cgrh__middle_line {
        flex-direction: column;
    }
    
    .header-left-menu,
    .header-right-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .cgrh__middle_line .top_left__menu_wrapper,
    .cgrh__middle_line .top_right__menu_wrapper {
        text-align: center;
    }
    
    .header-left-menu li:not(:last-child)::after,
    .header-right-menu li:not(:last-child)::after {
        position: static;
        transform: none;
        margin: 0 5px;
    }
}

/* Альтернативный вариант разделителей (более точный) */
.header-left-menu li,
.header-right-menu li {
    position: relative;
    margin: 0;
}

.header-left-menu li + li,
.header-right-menu li + li {
    margin-left: 0;
}

.header-left-menu li:not(:last-child)::after,
.header-right-menu li:not(:last-child)::after {
    content: "|";
    color: #fff;
    position: absolute;
    right: -1px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Если разделитель перекрывает ссылку, добавьте z-index */
.header-left-menu a,
.header-right-menu a {
    z-index: 1;
    position: relative;
}

/* Для регулировки расстояния между пунктами */
.header-left-menu li,
.header-right-menu li {
    margin: 0;
}

.header-left-menu a,
.header-right-menu a {
    padding-left: 14px; /* 19px - 5px */
    padding-right: 14px; /* 19px - 5px */
}
.ast-site-identity {
    padding: 0;
}
.site-logo-img a, .site-logo-img a img{
	display: block;
}
header .custom-logo-link img{
	max-height: 50px;
	width: auto;
}
.cgrh__top_line{
	height: 50px;
	background-color: #5a5a5a;
}
.cgrh__middle_line{
	padding: 15px 0;
}
.cgrh__middle_line__outer{
    background: #1D1D1D;
}
.ast-desktop .ast-primary-header-bar.main-header-bar, .ast-header-break-point #masthead .ast-primary-header-bar.main-header-bar {
    margin-top: 0px;
    margin-bottom: 0px;
}
/* стили для главной */
.front_page__top_text, .front_page__top_text p, .front_page__top_text h1{
	color: #fff;
	text-align: center;
}

.front_page__top_text{
	background-color: #1F222782;
}
.front_page__top_text h1{
	font-size: 26px;
	line-height: 36.4px;
	padding: 30px 0 20px;
}

.front_page__top_text p{
	font-size: 14px;
	line-height: 1.65em;
	display: block;
	padding-bottom:30px;
}

.front_page__top_text p a{
	color: #fff;
	text-decoration: underline;
}
.page_content__inner{
	margin-top: 139px;
}
/* Стили для сетки записей */
.recent-posts-section {
    padding: 160px 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 32px;
    margin-bottom: 10px;
    color: #333;
}

.posts-count {
    color: #666;
    font-size: 16px;
}

.posts-grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0 auto;
	width: 100%;
}

.post-card-item {
    flex: 0 0 calc(25% - 30px);
    margin: 0;
    box-sizing: border-box;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
	min-height: 320px;
}

.post-card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.post-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
	background: #5a5a5a;
}

.post-card-image {
    height: 200px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card-item:hover .post-card-image img {
    transform: scale(1.05);
}

.post-card-image.no-image {
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.post-card-content {
    padding: 20px;
}

.post-card-title {
    margin: 0 0 15px 0;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 400;
    color: #fff;
}

.post-card-tags {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    min-height: 30px;
}

.tag-item {
    background: #333;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    color: #adaaaa;
    transition: background 0.3s ease;
}

.post-card-item:hover .tag-item {
    background: #e0e0e0;
}

.tag-more {
    background: #f0f0f0;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    color: #999;
}

.no-tags {
    color: #999;
    font-size: 14px;
    font-style: italic;
}

.post-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #adaaaa;
    padding-top: 15px;
}

.post-date {
    font-size: 14px;
}

.read-more-link {
    color: #0073aa;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s ease;
}

.post-card-item:hover .read-more-link {
    color: #005177;
}

/* Пагинация */
.posts-pagination {
    margin-top: 50px;
    text-align: center;
}

.posts-pagination .page-numbers {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.posts-pagination .page-numbers.current {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.posts-pagination .page-numbers:hover {
    background: #f0f0f0;
    border-color: #0073aa;
}

/* Сообщение об отсутствии записей */
.no-posts-found {
    text-align: center;
    padding: 80px 20px;
    background: #f9f9f9;
    border-radius: 12px;
    margin: 40px 0;
}

.no-posts-found h3 {
    color: #666;
    margin-bottom: 15px;
}

.no-posts-found p {
    color: #999;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .post-card-item {
        flex: 0 0 calc(33.333% - 30px);
    }
}

@media (max-width: 992px) {
    .post-card-item {
        flex: 0 0 calc(50% - 30px);
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 28px;
    }
    
    .posts-grid-container {
        gap: 20px;
        margin: 0 -10px;
    }
    
    .post-card-item {
        flex: 0 0 calc(100% - 20px);
        margin: 0 10px 30px;
    }
}