:root {
    --dark-color: #003333;
    --white-color: #fff;
}

.ns-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 15px;
    font-family: 'Arial', sans-serif;
    position: relative;
}

.ns-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #eee;
    margin-bottom: 25px;
    position: relative;
}

.ns-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ns-nav-btn {
    padding: 12px 25px;
    background: #f5f5f5;
    border: none;
    border-radius: 5px 5px 0 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #555;
    transition: all 0.3s ease;
    margin-bottom: -2px;
}

.ns-nav-btn:hover {
    background: #e9e9e9;
    color: #333;
}

.ns-nav-btn.active {
    background: var(--dark-color);
    color: var(--white-color);
    border-bottom: 2px solid var(--dark-color);
}

.ns-content {
    display: none;
}

.ns-content.active {
    display: block;
}

.ns-slider {
    margin: 20px -10px 0;
    position: relative;
}

/* Уникальные стили для стрелок новостей */
.ns-news-arrows {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.ns-news-prev,
.ns-news-next {
    width: 40px;
    height: 40px;
    background: var(--dark-color);
    color: var(--white-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.ns-news-prev:hover,
.ns-news-next:hover {
    background: #001a1a;
    transform: scale(1.1);
}

/* Уникальные стили для стрелок статей */
.ns-articles-arrows {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.ns-articles-prev,
.ns-articles-next {
    width: 40px;
    height: 40px;
    background: var(--dark-color);
    color: var(--white-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.ns-articles-prev:hover,
.ns-articles-next:hover {
    background: #001a1a;
    transform: scale(1.1);
}

/* Общие стили для иконок */
.ns-news-prev svg,
.ns-news-next svg,
.ns-articles-prev svg,
.ns-articles-next svg {
    width: 20px;
    height: 20px;
}

.ns-item {
    padding: 0 10px;
    box-sizing: border-box;
}

.ns-item-inner {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s ease;
    padding: 15px;
    height: 100%;
}

.ns-item-inner:hover {
    transform: translateY(-5px);
}

.ns-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}

.ns-item h3 {
    margin: 0 0 10px;
    font-size: 18px;
    color: var(--dark-color);
    height: 125px;
}

.ns-item p {
    margin: 0 0 10px;
    color: #666;
    font-size: 14px;
    height: 80px;
}

.ns-item a {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 600;
}

.ns-item a:hover {
    text-decoration: underline;
}

.ns-title {
    color: var(--dark-color);
    margin: 20px 0 15px;
}

/* Уникальные стили для скрытия стандартных стрелок */
.news-slider .slick-arrow,
.articles-slider .slick-arrow {
    display: none !important;
}

/* Уникальные стили для точек навигации новостей */
.news-slider .slick-dots {
    position: static;
    margin-top: 20px;
}

.news-slider .slick-dots li button:before {
    color: var(--dark-color);
    opacity: 0.5;
    font-size: 10px;
}

.news-slider .slick-dots li.slick-active button:before {
    opacity: 1;
    color: var(--dark-color);
}

/* Уникальные стили для точек навигации статей */
.articles-slider .slick-dots {
    position: static;
    margin-top: 20px;
}

.articles-slider .slick-dots li button:before {
    color: var(--dark-color);
    opacity: 0.5;
    font-size: 10px;
}

.articles-slider .slick-dots li.slick-active button:before {
    opacity: 1;
    color: var(--dark-color);
}

@media (max-width: 768px) {
    .ns-item {
        padding: 0 5px;
    }

    .ns-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .ns-news-arrows,
    .ns-articles-arrows {
        position: static;
        margin-top: 15px;
        align-self: flex-end;
    }
}