
/* ГЛОБАЛЬНЫЙ КОНТРОЛЬ ИЗОБРАЖЕНИЙ */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ОСНОВНОЙ КОНТЕЙНЕР */
.content-container {
    max-width: 1354px;
    margin: 0 auto;
    padding: 0 12px;
    position: relative;
    box-sizing: border-box;
}

/* ПРОСТЫЕ СТИЛИ */
.news-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.news-table td {
    vertical-align: top;
    padding: 0;
}

.news-content-cell {
    width: 75%;
    padding-right: 30px;
}

.news-content-cell .news-box {
    max-width: 997.5px;
    margin: 0 auto;
}

.news-sidebar-cell {
    width: 25%;
}

.news-box {
    background: #fff;
    border-radius: 12px;
    
}

.news-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.news-meta {
    color: #666;
    font-size: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

/* ГЛАВНОЕ ИЗОБРАЖЕНИЕ НОВОСТИ */
.news-image {
    margin: 25px 0;
    text-align: center;
    background: transparent;
    padding: 0;
    border-radius: 12px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.news-image img {
    width: 100%;
    height: auto;
    max-width: 937.5px;
    margin: 0;
    border-radius: 12px;
}

/* ТЕКСТ НОВОСТИ */
.news-body {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.news-body p {
    margin-bottom: 20px;
}

/* ИЗОБРАЖЕНИЯ В ТЕКСТЕ */
.news-body-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Для плавающих изображений */
.news-body img[style*="float: left"],
.news-body img[style*="float:left"] {
    float: left;
    margin: 0 20px 20px 0;
    max-width: 45%;
}

.news-body img[style*="float: right"],
.news-body img[style*="float:right"] {
    float: right;
    margin: 0 0 20px 20px;
    max-width: 45%;
}

/* ВИДЕО */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 25px 0;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* САЙДБАР */
.sidebar-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 0 20px;
    overflow: hidden;
}

.sidebar-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 2px solid #D91656;
}

/* СПИСОК НОВОСТЕЙ В САЙДБАРЕ */
.sidebar-news-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ЭЛЕМЕНТ НОВОСТИ В САЙДБАРЕ */
.sidebar-news-item {
    background: #ffffff;
    border-radius: 16px;
    padding: 16px;
    transition: background-color 0.3s ease;
    border: 1px solid #f0f0f0;
}

.sidebar-news-item:hover {
    background-color: #fafafa;
}

/* ССЫЛКА В ЭЛЕМЕНТЕ */
.sidebar-news-item a {
    display: block;
    color: #D91656;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 8px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    transition: color 0.2s ease;
}

.sidebar-news-item a:hover {
    color: #b3003d;
}

/* АКТИВНАЯ НОВОСТЬ */
.sidebar-news-item.active a {
    color: #b3003d;
    font-weight: bold;
}

.sidebar-news-item.active {
    background: #ffffff;
    border-left: 4px solid #D91656;
}

/* ДАТА В ЭЛЕМЕНТЕ */
.sidebar-news-item .news-item-date {
    font-size: 12px;
    color: #999;
}

/* ХЛЕБНЫЕ КРОШКИ */
.breadcrumb {
    padding: 10px 0;
    margin: 0 0 20px 0;
    list-style: none;
}

.breadcrumb li {
    display: inline;
    font-size: 14px;
}

.breadcrumb li:after {
    content: "›";
    margin: 0 8px;
    color: #999;
}

.breadcrumb li:last-child:after {
    content: "";
}

.breadcrumb li a {
    color: #D91656;
    text-decoration: none;
}

.breadcrumb li a:hover {
    color: #b3003d;
    text-decoration: underline;
}

.breadcrumb li.active {
    color: #666;
}

/* КНОПКИ НАВИГАЦИИ */
.news-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0 20px 0;
    padding: 20px 0;
    gap: 15px;
}

.nav-btn {
    background: white;
    color: var(--primary-color, #D91656);
    padding: 16px 28px;
    border-radius: 32px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    white-space: nowrap;
    min-width: 220px;
    height: 60px;
    font-family: 'TT Norms Pro', sans-serif;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color, #D91656);
    letter-spacing: 0.3px;
}

.nav-btn .nav-arrow {
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
    display: inline-block;
    margin: 0 12px;
    transform: scale(1.2);
}

/* Левый отступ для стрелки в кнопке "Предыдущая" */
.nav-btn.prev .nav-arrow {
    margin-left: 0;
    margin-right: 12px;
}

/* Правый отступ для стрелки в кнопке "Следующая" */
.nav-btn.next .nav-arrow {
    margin-left: 12px;
    margin-right: 0;
}

/* Убираем лишние отступы у текста */
.nav-btn span:not(.nav-arrow) {
    margin: 0 4px;
    font-weight:700;
}

.nav-btn:hover {
    background: var(--primary-dark, #D91656);
    color: white;
    border-color: var(--primary-dark, #D91656);
}

.nav-btn.prev {
    margin-right: auto;
}

.nav-btn.next {
    margin-left: auto;
}

.nav-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
    background: #f5f5f5;
    color: #999;
    border-color: #ddd;
}

.nav-btn.disabled:hover {
    background: #f5f5f5;
    color: #999;
    border-color: #ddd;
}

/* Адаптивность для стрелок */
@media (max-width: 768px) {
    .nav-btn .nav-arrow {
        font-size: 22px;
        transform: scale(1.1);
        margin: 0 10px;
    }
    
    .nav-btn.prev .nav-arrow {
        margin-right: 10px;
    }
    
    .nav-btn.next .nav-arrow {
        margin-left: 10px;
    }
}

@media (max-width: 576px) {
    .nav-btn {
        font-weight: 650;
    }
    
    .nav-btn .nav-arrow {
        font-size: 20px;
        transform: scale(1);
        margin: 0 8px;
    }
    
    .nav-btn.prev .nav-arrow {
        margin-right: 8px;
    }
    
    .nav-btn.next .nav-arrow {
        margin-left: 8px;
    }
}

/* АДАПТИВНОСТЬ */
@media (max-width: 1354px) {
    .content-container {
        padding: 0 12px;
    }
}

@media (max-width: 1200px) {
    .news-image img {
        max-width: 800px;
    }
    
    .news-content-cell .news-box {
        max-width: 860px;
    }
}

@media (max-width: 992px) {
    .news-table td {
        display: block;
        width: 100%;
        padding-right: 0;
    }
    
    .news-content-cell {
        width: 100%;
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .news-sidebar-cell {
        width: 100%;
    }
    
    .news-title {
        font-size: 28px;
    }
    
    .news-image img {
        max-width: 700px;
    }
    
    .news-content-cell .news-box {
        max-width: 760px;
    }
    
    .sidebar-box {
        margin-top: 20px;
    }
    
    .sidebar-news-item {
        padding: 14px;
    }
}

@media (max-width: 768px) {
    .news-title {
        font-size: 24px;
    }
    
    .news-image img {
        max-width: 100%;
    }
    
    .news-content-cell .news-box {
        max-width: 100%;
    }
    
    .news-body img[style*="float: left"],
    .news-body img[style*="float: right"] {
        float: none !important;
        max-width: 100%;
        margin: 20px auto;
    }
    
    .news-navigation {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .nav-btn {
        padding: 14px 24px;
        font-size: 16px;
        min-width: 200px;
        height: 55px;
    }
    
    .nav-btn.prev, .nav-btn.next {
        margin: 0;
        flex: 1;
    }
    
    .news-box {
        padding: 30px;
    }
}

@media (max-width: 576px) {
    .news-box {
        padding: 30px 20px;
    }
    
    .nav-btn {
        padding: 12px 20px;
        font-size: 15px;
        min-width: 180px;
        height: 50px;
    }
    
    .sidebar-news-item {
        padding: 12px;
        border-radius: 14px;
    }
    
    .sidebar-news-item a {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .news-box {
        padding: 30px 15px;
    }
    
    .news-navigation {
        gap: 8px;
    }
    
    .nav-btn {
        width: 100%;
        min-width: auto;
        padding: 10px 16px;
        font-size: 14px;
        height: 45px;
    }
    
    .nav-arrow {
        font-size: 16px;
        margin: 0 5px;
    }
}
