.news-section {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    justify-content: center;
}

.news-card {
    background: linear-gradient(135deg, #373767 0%, #5c5cab 50%, #1e1e6d 100%);
    border: 1px solid #6d2cae;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 300px;
    height: 480px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    text-align: left;
    color: #ffffff;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

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

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

.news-card-title {
    font-size: 1.25rem;
    height: 80px;
    color: #d6dbe1;
    margin: 10px 0;
}

.news-card-excerpt {
    color: #e0e0e0;
    font-size: 0.95rem;
    margin: 10px 0;
    height: 105px;
    overflow: hidden;
}

.read-more-button {
    display: inline-block;
    padding: 8px 12px;
    background-color: #ff00ff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.read-more-button:hover {
    background-color: #a774da;
}



/*СТРАНИЦА НОВОСТИ*/

.title-news h1 {
    font-size: 45px;
    text-align: center;
    margin: 0 auto;
    font-family:'Times New Roman', Times, serif;
    letter-spacing: .5px;
    width: 100%;
}
.title-news img{
    width: 60%;
    text-align: center;
}



.list-news {
    width: 80%;
    margin: 0 auto;
}
.list-news-description {
    margin: 0 0 0 0;
}



.news-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    gap: 20px;
}


/* Сайдбар */
.sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 25%;
    background: linear-gradient(135deg, #2b2b2b 0%, #1e1e1e 100%);
    color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    font-family: 'Open Sans', sans-serif;
    height: auto; 
}


.sidebar h2 {
    font-size: 1.75em;
    margin-bottom: 20px;
    color: #ff6f61;
    text-align: center;
    border-bottom: 2px solid #ff6f61;
    padding-bottom: 10px;
    width: 100%;
}

.news-item {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #3a3a3a;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    width: 100%;
}

.news-item:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.news-item img {
    width: 100%;
    border-bottom: 2px solid #ff6f61;
}

.news-item h4 {
    font-size: 1em;
    color: #ffffff;
    text-align: center;
    padding: 10px;
    background-color: #292929;
    width: 100%;
}

.news-item:hover h4 {
    color: #ff6f61;
}

.news-item a {
    text-decoration: none;
    color: inherit;
}

.sidebar a {
    text-decoration: none;
}


/* Основной раздел новостей */
.list-news {
    width: 70%;
    background: #f8f8f8;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
}
.list-news >img {
    width: 100%;
}
.list-news h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
    font-weight: 700;
}

.list-news-description {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #555;
}

.block-info-news h3 {
    font-size: 1.75em;
    margin: 20px 0 10px 0;
    color: #444;
    font-weight: 600;
    border-left: 4px solid #ff6f61;
    padding-left: 10px;
}

.block-info-news p {
    font-size: 1em;
    margin-bottom: 20px;
    color: #555;
}

.block-info-news ul {
    padding-left: 20px;
    margin-bottom: 20px;
    color: #555;
}

.block-info-news li {
    margin-bottom: 10px;
    font-size: 1em;
}

.block-info-news h4 {
    font-size: 1.5em;
    margin: 10px 0;
    color: #333;
    font-weight: 600;
}
.block-info-news img {
    width: 80%;
    display: block;
    margin: 0 auto;
}

.end-text {
    font-size: 1.2em;
    margin-top: 40px;
    color: #333;
    background: #f0f0f0;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media(max-width: 800px) {
    .sidebar {
        display: none;
    }
    
    .list-news {
        width: 95%;
        margin: 0 auto;
    }
}
