.news__content a {
     text-decoration: none;
    color: #7f8c8d;
}

.news__content a:hover {
     transition: all 0.2s ease;
    color: rgba(59,130,246,.45);
    text-decoration: none;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.news-card {
    border: #6FA0DB 3px solid;
    border-radius: 30px;
    padding: 30px 20px;
    height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-card a, .news-list-item a {
    text-decoration: none;
    color: #7f8c8d;
}

.news-card a:hover,  .news-list-item a:hover{
    transition: all 0.2s ease;
    color: rgba(59,130,246,.45);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

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

.news-card h4 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.news-card p {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.all-news-link {
    display: block;
    text-align: center;
    margin: 30px 0;
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
}

.all-news-link:hover {
    text-decoration: underline;
}

/* Стили для страницы всех новостей */
.news-list {
    margin: 30px 0;
}

.news-list-item {
    background: white;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 5px 15px rgba(0,0,0,.25);
    display: flex;
    gap: 30px;
    align-items: flex-start;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.news-list-item:hover {
    transform: translateY(-2px);
    border-color: rgba(59,130,246,.45);
    box-shadow: 0 10px 28px rgba(59,130,246,.25), 0 2px 10px rgba(0,0,0,.35);
}

.news-list-item img {
    width: 200px;
    object-fit: contain;
    align-self: center;
    border-radius: 4px;
    flex-shrink: 0;
}

.news-list-content {
    flex: 1;
}

.news-list-item h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.news-list-item p {
    color: #666;
    margin-bottom: 10px;
    font-size: 1rem;
}

.news-list-date {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.back-link {
    margin-top: 30px;
    text-align: center;
    color: gray;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.back-link:hover {
    color: rgba(59,130,246,.45);
}

/* Стили для страницы новости */

.news-header {
    margin: 30px 0;
    text-align: center;
}

.news-header h1 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.news-meta {
    color: #7f8c8d;
    font-size: 0.9rem;
}
/* Стили для карусели */
.carousel-container {
    position: relative;
    margin: 0 auto 40px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 5px 6px rgba(0, 0, 0, 0.089);
    border: 1px solid rgba(255,255,255,.08);
}

.carousel {
    display: flex;
    transition: transform 0.5s ease;
    height: 500px;
}

.carousel-item {
    min-width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-item img, 
.carousel-item video {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.carousel-item video {
    object-fit: contain;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    margin: 15px 0;
}

.carousel-btn {
    background: #6fa0dbc6;
    color: white;
    border: none;
    padding: 8px 15px;
    margin: 0 5px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.carousel-btn:hover {
    background: #6FA0DB;
}

.news-content {
    margin: 0 auto 40px;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 5px 6px rgba(0, 0, 0, 0.089);
}

/* Стили для форматирования текста в новостях */
.news-content ul {
    list-style: none;
    padding-left: 0;
}

.news-content ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

.news-content ul li::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 12px;
    width: 6px;
    height: 6px;
    background-color: black;
    border-radius: 50%;
}

.news-content strong,
.news-content b {
    font-weight: 600;
}

.news-content i,
.news-content em {
    font-style: italic;
}

.news-content p {
    margin-bottom: 20px;
    line-height: 1.3;
}

/* Адаптивность */
@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-card {
        height: auto;
        padding: 20px;
    }

    .news-list-item {
        flex-direction: column;
    }
    
    .news-list-item img {
        width: 100%;
        height: 200px;
    }

    .carousel {
        height: auto;
    }
    
    .carousel-item img, .carousel-item video {
        height: 300px;
    }
    
    .news-content {
        padding: 20px;
    }
}