/* News Articles & Cards */

.news-content {
    padding: 2rem 0;
}

.news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.main-articles {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Featured Article */
.featured-article {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(26, 63, 103, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.featured-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(26, 63, 103, 0.15);
}

.article-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.featured-article:hover .article-image img {
    transform: scale(1.02);
}

.article-content {
    padding: 2rem;
}

.article-category {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.article-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.article-date {
    color: #999;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    padding-left: 1.5rem;
}

.article-date::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.6;
}

.read-more-btn {
    background: var(--primary-color);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 63, 103, 0.3);
}

/* Regular Articles */
.regular-articles {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.regular-article {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(26, 63, 103, 0.06);
    transition: all 0.3s ease;
    cursor: pointer;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 0;
    min-height: 180px;
}

.regular-article:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(26, 63, 103, 0.12);
}

.regular-article .article-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.regular-article .article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.3s ease;
    display: block;
    margin: 0 auto;
}

.regular-article:hover .article-image img {
    transform: scale(1.05);
}

.regular-article .article-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 24px;
}

.regular-article .article-image-placeholder::before {
    content: '🖼️';
}

.regular-article .article-content {
    padding: 1.5rem;
}

.regular-article .article-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.regular-article .article-excerpt {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.5;
    color: #555;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Article Loading States */
.article-loading {
    opacity: 0.6;
    pointer-events: none;
}

.article-loading .article-image {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

.article-loading .article-title,
.article-loading .article-excerpt {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    color: transparent;
    border-radius: 4px;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Responsive */
@media (max-width: 768px) {
    .main-articles {
        gap: 1.5rem;
    }
    
    .regular-article {
        grid-template-columns: 1fr !important;
        grid-template-rows: 320px 1fr !important;
        gap: 0;
        min-height: auto;
        display: grid !important;
    }
    
    .regular-article .article-image {
        height: 320px !important;
        width: 100% !important;
    }
    
    .regular-article .article-content {
        padding: 1.5rem;
    }
    
    .featured-article .article-title {
        font-size: 1.5rem;
    }
    
    .regular-article .article-title {
        font-size: 1.3rem;
        color: var(--primary-color);
        font-weight: 700;
    }
    
    .regular-article .article-excerpt {
        -webkit-line-clamp: 3;
    }
    
    .article-content {
        padding: 1.5rem;
    }
}

/* Смартфоны */
@media (max-width: 480px) {
    .regular-article {
        grid-template-columns: 1fr !important;
        grid-template-rows: 280px 1fr !important;
        display: grid !important;
    }
    
    .regular-article .article-image {
        height: 280px !important;
        width: 100% !important;
        grid-row: 1;
        grid-column: 1;
    }
    
    .regular-article .article-content {
        grid-row: 2;
        grid-column: 1;
        padding: 1.25rem;
    }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
    padding: 2rem 0;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination a {
    background: white;
    color: var(--primary-color);
    border: 2px solid #e9ecef;
}

.pagination a:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.pagination .current {
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

/* Error States */
.no-news,
.error-message {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(26, 63, 103, 0.08);
}

.no-news h3,
.error-message h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.no-news p,
.error-message p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.retry-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.retry-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 63, 103, 0.3);
}

.show-all-btn {
    display: block;
    margin: 2rem auto 0;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.show-all-btn:hover {
    background: var(--primary-color);
    color: white;
}

.show-all-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--primary-color);
    border-radius: 50%;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.show-all-btn:hover::before {
    width: 300px;
    height: 300px;
}

/* FHD Screen Optimization (1920px+) */
@media (min-width: 1920px) {
    .news-content {
        padding: 3rem 0;
    }

    .news-grid {
        gap: 4rem;
        max-width: 1600px;
        margin: 0 auto;
    }

    .main-articles {
        gap: 3rem;
        max-width: 1000px;
    }

    /* Featured Article - Larger on big screens */
    .featured-article .article-image {
        height: 350px;
    }

    .featured-article .article-content {
        padding: 3rem;
    }

    .featured-article .article-title {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }

    .featured-article .article-excerpt {
        font-size: 1.125rem;
        line-height: 1.7;
        margin-bottom: 2rem;
    }

    /* Regular Articles - Better spacing */
    .regular-article {
        grid-template-columns: 320px 1fr;
        min-height: 200px;
        max-width: 2000px;
    }

    .regular-article .article-content {
        padding: 2rem;
    }

    .regular-article .article-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .regular-article .article-excerpt {
        font-size: 1.05rem;
        line-height: 1.7;
    }

    /* Enhanced spacing for better readability */
    .article-meta {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }

    .article-category {
        padding: 0.5rem 1.2rem;
        font-size: 0.9rem;
    }

    .read-more-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    /* Pagination - Better spacing */
    .pagination {
        margin: 60px 0 0 0;
    }

    .main-articles .pagination {
        margin-top: 40px;
        padding-top: 40px;
    }
}

/* QHD Screen Optimization (2560px+) */
@media (min-width: 2560px) {
    .news-content {
        padding: 4rem 0;
    }

    .news-grid {
        gap: 0;
        max-width: 2200px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: 1fr 420px;
        align-items: start;
    }

    .main-articles {
        gap: 4rem;
        max-width: none;
        padding-right: 3rem;
    }

    /* Featured Article - Larger for QHD */
    .featured-article .article-image {
        height: 400px;
    }

    .featured-article .article-content {
        padding: 4rem;
    }

    .featured-article .article-title {
        font-size: 3rem;
        margin-bottom: 2rem;
    }

    .featured-article .article-excerpt {
        font-size: 1.25rem;
        line-height: 1.8;
        margin-bottom: 2.5rem;
    }

    /* Regular Articles - Optimized for QHD */
    .regular-article {
        grid-template-columns: 380px 1fr;
        min-height: 260px;
        max-width: 1900px;
    }

    .regular-article .article-content {
        padding: 2.5rem;
    }

    .regular-article .article-title {
        font-size: 1.75rem;
        margin-bottom: 1.25rem;
    }

    .regular-article .article-excerpt {
        font-size: 1.125rem;
        line-height: 1.8;
    }

    /* Enhanced elements for QHD */
    .article-meta {
        margin-top: 2rem;
        padding-top: 2rem;
    }

    .article-category {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .read-more-btn {
        padding: 1rem 2rem;
        font-size: 1.125rem;
    }

    /* Pagination - Larger for QHD */
    .pagination {
        margin: 80px 0 0 0;
        gap: 16px;
    }

    .main-articles .pagination {
        margin-top: 60px;
        padding-top: 60px;
    }

    .pagination a,
    .pagination span {
        min-width: 56px;
        height: 56px;
        font-size: 18px;
    }
}