.news-article {
    max-width: 1000px;
    margin: 40px auto;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 0.938rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.news-article-header h1 {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #222;
    line-height: 1.2;
}

.news-article-header .pub-date {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 30px;
}

.news-article-cover {
    margin-bottom: 30px;
    border-radius: 15px;
    overflow: hidden;
}

.news-article-cover img {
    width: 100%;
    height: auto;
    display: block;
}

.news-article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.news-article-content p {
    margin-bottom: 1.5em;
}

.support-section {
    text-align: left;
    margin: 10px 0 10px 0;
}

.btn-support {
    display: inline-block;
    padding: 7px 16px;
    background-color: #b0926a;
    color: #fae7c9;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: 1px solid rgba(176, 146, 106, 0.3);
}

.btn-support:hover {
    background-color: #b0926a;
    color: #fae7c9;
    transform: scale(1.05);
}


.news-gallery-section, .news-video-section {
    margin-top: 25px;
    padding-top: 3px;
    border-top: 1px solid #eee;
}

.news-gallery-section h2, .news-video-section h2 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 7px;
    color: #333;
}

.news-videos .video-item {
    margin-bottom: 30px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
}

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

.video-caption {
    font-size: 1rem;
    color: #666;
    margin-top: 10px;
}

/* Carousel Styles - Desktop */
.carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 50px;
}

.carousel-track-container {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding-bottom: 56.25%;
    height: 0;
}

.carousel-track {
    padding: 0;
    margin: 0;
    list-style: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.carousel-caption {
    text-align: center;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #555;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(176, 146, 106, 0.7);
    border: none;
    color: #fae7c9;
    padding: 12px 15px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.carousel-button:hover {
    background-color: rgba(176, 146, 106, 0.9);
    color: white;
    transform: translateY(-50%) scale(1.05);
}

.carousel-button--left {
    left: -25px;
}

.carousel-button--right {
    right: -25px;
}

.is-hidden {
    display: none;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .news-article {
        padding: 20px;
    }

    .news-article-header h1 {
        font-size: 1.7rem;
    }
    
    .news-gallery-section h2, .news-video-section h2 {
        font-size: 1.8rem;
    }
    
    /* Скрываем карусель в мобильной версии */
    .carousel {
        display: none;
    }
    
    /* Показываем вертикальную галерею в мобильной версии */
    .mobile-gallery {
        display: block !important;
    }
}

/* Стили для вертикальной галереи (по умолчанию скрыты) */
.mobile-gallery {
    display: none;
}

.gallery-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gallery-item {
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-caption {
    padding: 10px 15px;
    font-size: 0.9rem;
    color: #555;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.9);
}