.article-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.article-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    border-radius: 8px 8px 0 0;
}

.article-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.article-card-content {
    padding: 15px;
    background: white;
    border-radius: 0 0 8px 8px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-card-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
}

.article-card-excerpt {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
    flex-grow: 1;
}

.article-card-meta {
    margin-top: auto;
}

.article-date {
    color: #888;
    font-size: 0.8rem;
}

/* Featured section styles */
.featured-articles {
    margin-bottom: 1rem;
}

.featured-section-title {
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: #fff;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-section-title::before,
.featured-section-title::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 2px;
    background: #fff;
}

.featured-section-title::before {
    margin-right: 10px;
}

.featured-section-title::after {
    margin-left: 10px;
}

.featured-article {
    background: #6f42c1;
    border-radius: 12px;
    overflow: hidden;
    color: white;
    margin-bottom: 2rem;
    position: relative;
    min-height: 330px;
}

.featured-article::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,1) 20%, rgba(0,0,0,0.5) 40%, rgba(0,0,0,0) 70%);
    z-index: 1;
}

.featured-article-content {
    padding: 1.5rem;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
}

.featured-article-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.featured-article-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.featured-article-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

.featured-article-title {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.featured-article-excerpt {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.2em;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.featured-article .article-date {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.featured-article .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.9);
    border: none;
}

.featured-article .btn:hover {
    background: #fff;
}

/* Featured article link style */
.featured-article-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.featured-article-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Category filter styles */
.category-filter {
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.category-filter button {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.1rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    color: white;
    text-transform: capitalize;
}

.category-filter button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.category-filter button.active {
    background: #6f42c1;
    color: white;
    border-color: white;
    box-shadow: 0 4px 12px rgba(111, 66, 193, 0.2);
}

.category-filter button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.3s;
    opacity: 0;
}

.category-filter button:hover::before {
    transform: translateX(100%);
    opacity: 1;
}

@media (max-width: 768px) {
    .category-filter {
        gap: 0.8rem;
    }
    
    .category-filter button {
        padding: 0.6rem 1.2rem;
        font-size: 1rem;
    }
}

@media (max-width: 992px) {
    .featured-article {
        min-height: 250px;
    }
    
    .featured-article-content {
        padding: 1.2rem;
    }

    .featured-article-title {
        font-size: 1.3rem;
    }

    .featured-article-excerpt {
        font-size: 0.9rem;
    }
}

/* Header styles */
.news-hero {
    margin-bottom: 3rem;
    text-align: center;
    padding-bottom: 1rem;
}

.news-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
    background: linear-gradient(90deg, #f5f5f5 0%, #ffffff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.news-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Telegram banner styles */
.telegram-news-banner {
    margin-bottom: 3rem;
}

.telegram-banner-content {
    background: linear-gradient(135deg, #0088cc, #005f8c);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.telegram-banner-content::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCIgdmlld0JveD0iMCAwIDIwMCAyMDAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwMCAyMDBDMTU1LjIyOCAyMDAgMjAwIDE1NS4yMjggMjAwIDEwMEMyMDAgNDQuNzcxNiAxNTUuMjI4IDAgMTAwIDBDNDQuNzcxNiAwIDAgNDQuNzcxNiAwIDEwMEMwIDE1NS4yMjggNDQuNzcxNiAyMDAgMTAwIDIwMFoiIGZpbGw9InVybCgjcGFpbnQwX2xpbmVhcikiLz48ZGVmcz48bGluZWFyR3JhZGllbnQgaWQ9InBhaW50MF9saW5lYXIiIHgxPSIwIiB5MT0iMCIgeDI9IjIwMCIgeTI9IjIwMCIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIHN0b3AtY29sb3I9IndoaXRlIiBzdG9wLW9wYWNpdHk9IjAuMSIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0id2hpdGUiIHN0b3Atb3BhY2l0eT0iMCIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjwvc3ZnPg==') no-repeat;
    background-size: cover;
    opacity: 0.2;
    z-index: 1;
    pointer-events: none;
}

.telegram-banner-icon {
    flex: 0 0 auto;
    width: 60px;
    height: 60px;
    margin-right: 1.5rem;
}

.telegram-banner-icon svg {
    width: 100%;
    height: 100%;
    fill: white;
}

.telegram-banner-text {
    flex: 1;
}

.telegram-banner-text h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.telegram-banner-text p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
    font-size: 1rem;
}

.telegram-banner-cta {
    flex: 0 0 auto;
    background: white;
    color: #0088cc;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.2s;
    margin-left: 1.5rem;
    position: relative;
    z-index: 2;
}

.telegram-banner-cta svg {
    width: 16px;
    height: 16px;
    margin-left: 8px;
    fill: #0088cc;
    transition: transform 0.2s;
}

.telegram-banner-cta:hover {
    background: #f2f2f2;
    color: #0088cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.telegram-banner-cta:hover svg {
    transform: translateX(3px);
}

@media (max-width: 768px) {
    .telegram-banner-content {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }
    
    .telegram-banner-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .telegram-banner-text {
        margin-bottom: 1.5rem;
    }
    
    .telegram-banner-cta {
        margin-left: 0;
    }
}