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

/* Секция новостей */
#news {
    padding: 3rem 0;
}

#news h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1E3F1B;
    margin-bottom: 2rem;
    text-align: center;
}

#news > .container > p {
    font-family: var(--font-base);
    font-size: 1.1rem;
    line-height: 1.8;
    color: #000000;
    margin-bottom: 1.5rem;
    text-align: left;
}

/* Стили для виджета ВКонтакте */
#vk_groups {
    width: 100%;
    max-width: 100%;
    min-height: 650px;
    overflow-x: hidden;
    overflow-y: auto;
    margin: 2rem 0;
}

#vk_groups iframe {
    width: 100%;
    border: none;
}

/* Стили для новостей */
.news-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.news-item h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.news-date {
    color: #666;
    font-style: italic;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.news-item img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 4px;
    margin-top: 1rem;
}

.news-item p {
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .news-item {
        padding: 1rem;
    }
    
    .news-item img {
        max-width: 100%;
    }
}

/* Планшеты средние: 768px-1024px */
@media (min-width: 768px) and (max-width: 1024px) {
    #news {
        padding: 2.5rem 0;
    }
    
    #news h2 {
        font-size: 2rem;
        margin-bottom: 1.8rem;
    }
    
    #news > .container > p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .news-item {
        padding: 1.2rem;
        margin-bottom: 1.5rem;
    }
    
    .news-item h3 {
        margin-bottom: 0.4rem;
    }
    
    .news-date {
        margin-bottom: 0.8rem;
        font-size: 0.85rem;
    }
    
    .news-item img {
        margin-top: 0.8rem;
    }
    
    .news-item p {
        margin-bottom: 0.8rem;
        font-size: 0.95rem;
    }
    
    #vk_groups {
        min-height: 550px;
        margin: 1.5rem 0;
    }
}

/* Планшеты малые: 621px-767px */
@media (min-width: 621px) and (max-width: 767px) {
    #news {
        padding: 2rem 0;
    }
    
    #news h2 {
        font-size: 1.7rem;
        margin-bottom: 1.5rem;
    }
    
    #news > .container > p {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }
    
    .news-item {
        padding: 1rem;
        margin-bottom: 1.2rem;
        border-radius: 6px;
    }
    
    .news-item h3 {
        margin-bottom: 0.3rem;
        font-size: 1.1rem;
    }
    
    .news-date {
        margin-bottom: 0.6rem;
        font-size: 0.8rem;
    }
    
    .news-item img {
        margin-top: 0.7rem;
    }
    
    .news-item p {
        margin-bottom: 0.7rem;
        font-size: 0.9rem;
    }
    
    #vk_groups {
        min-height: 450px;
        margin: 1.2rem 0;
    }
}

/* Большие телефоны: 481px-620px */
@media (min-width: 481px) and (max-width: 620px) {
    #news {
        padding: 1.5rem 0;
    }
    
    #news h2 {
        font-size: 1.5rem;
        margin-bottom: 1.2rem;
    }
    
    #news > .container > p {
        font-size: 0.85rem;
        margin-bottom: 0.7rem;
    }
    
    .news-item {
        padding: 0.9rem;
        margin-bottom: 1rem;
        border-radius: 6px;
    }
    
    .news-item h3 {
        margin-bottom: 0.25rem;
        font-size: 1rem;
    }
    
    .news-date {
        margin-bottom: 0.5rem;
        font-size: 0.75rem;
    }
    
    .news-item img {
        margin-top: 0.6rem;
    }
    
    .news-item p {
        margin-bottom: 0.6rem;
        font-size: 0.85rem;
    }
    
    #vk_groups {
        min-height: 400px;
        margin: 1rem 0;
    }
}

/* Мобильные устройства: 320px-480px */
@media (max-width: 480px) {
    #news {
        padding: 1.2rem 0;
    }
    
    #news h2 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }
    
    #news > .container > p {
        font-size: 0.8rem;
        margin-bottom: 0.6rem;
        line-height: 1.5;
    }
    
    .news-item {
        padding: 0.8rem;
        margin-bottom: 0.8rem;
        border-radius: 6px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    }
    
    .news-item h3 {
        color: #333;
        margin-bottom: 0.2rem;
        font-size: 0.95rem;
    }
    
    .news-date {
        color: #666;
        font-style: italic;
        margin-bottom: 0.4rem;
        font-size: 0.7rem;
    }
    
    .news-item img {
        width: 100%;
        max-width: 100%;
        height: auto;
        border-radius: 4px;
        margin-top: 0.5rem;
    }
    
    .news-item p {
        margin-bottom: 0.5rem;
        font-size: 0.8rem;
        line-height: 1.5;
    }
    
    #vk_groups {
        width: 100%;
        max-width: 100%;
        min-height: 300px;
        overflow-x: hidden;
        overflow-y: auto;
        margin: 0.8rem 0;
    }
    
    #vk_groups iframe {
        width: 100%;
        border: none;
    }
}
