<!-- Ð˜ÑÐ¿Ñ€Ð°Ð²Ð»ÐµÐ½Ð½Ñ‹Ðµ ÑÑ‚Ð¸Ð»Ð¸ Ð´Ð»Ñ Ð¾Ð´Ð¸Ð½Ð°ÐºÐ¾Ð²Ñ‹Ñ… ÐºÐ°Ñ€Ñ‚Ð¾Ñ‡ÐµÐº -->
<style>
/* Ð¡ÐµÑ‚ÐºÐ° - 3 ÐºÐ¾Ð»Ð¾Ð½ÐºÐ¸ */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 30px 0;
}

/* ÐšÐ°Ñ€Ñ‚Ð¾Ñ‡ÐºÐ° - Ñ„Ð¸ÐºÑÐ¸Ñ€Ð¾Ð²Ð°Ð½Ð½Ð°Ñ ÑÑ‚Ñ€ÑƒÐºÑ‚ÑƒÑ€Ð° */
.news-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(76, 49, 133, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(76, 49, 133, 0.1);
    display: flex;
    height: 100%;
}

.news-card-inner {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

/* Ð˜Ð·Ð¾Ð±Ñ€Ð°Ð¶ÐµÐ½Ð¸Ðµ - Ð¤Ð˜ÐšÐ¡Ð˜Ð ÐžÐ’ÐÐÐÐÐ¯ Ð’Ð«Ð¡ÐžÐ¢Ð */
.news-card-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
    flex-shrink: 0;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

/* Ð—Ð°Ð³Ð»ÑƒÑˆÐºÐ° Ð´Ð»Ñ Ð¸Ð·Ð¾Ð±Ñ€Ð°Ð¶ÐµÐ½Ð¸Ñ */
.news-card-image.placeholder {
    background: linear-gradient(135deg, #4c3185 0%, #6b4ca0 100%);
    height: 200px;
}

.placeholder-gradient {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
}

/* ÐšÐ¾Ð½Ñ‚ÐµÐ½Ñ‚ */
.news-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100%;
}

/* Ð”Ð°Ñ‚Ð° */
.news-card-date {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 12px;
    font-weight: 400;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}

.news-card-date time {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(76, 49, 133, 0.05);
    border-radius: 20px;
    color: #4c3185;
}

/* Ð—Ð°Ð³Ð¾Ð»Ð¾Ð²Ð¾Ðº - 2 ÑÑ‚Ñ€Ð¾ÐºÐ¸ Ð¼Ð°ÐºÑÐ¸Ð¼ÑƒÐ¼ */
.news-card-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 12px 0;
    color: #2c3e50;
    flex-shrink: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 56px; /* 2 ÑÑ‚Ñ€Ð¾ÐºÐ¸ * 1.4 * 20px = 56px */
    max-height: 56px;
}

.news-card-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.2s;
    display: block;
}

.news-card-title a:hover {
    color: #4c3185;
}

/* ÐšÑ€Ð°Ñ‚ÐºÐ¸Ð¹ Ñ‚ÐµÐºÑÑ‚ - 3 ÑÑ‚Ñ€Ð¾ÐºÐ¸ Ð¼Ð°ÐºÑÐ¸Ð¼ÑƒÐ¼ */
.news-card-excerpt {
    font-size: 15px;
    line-height: 1.5;
    color: #5d6d7e;
    margin-bottom: 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 335.5px; /* 3 ÑÑ‚Ñ€Ð¾ÐºÐ¸ * 1.5 * 15px = 67.5px */
    min-height: 67.5px;
}

.news-card-excerpt p {
    margin: 0;
}

/* Ð¤ÑƒÑ‚ÐµÑ€ ÐºÐ°Ñ€Ñ‚Ð¾Ñ‡ÐºÐ¸ - Ð²ÑÐµÐ³Ð´Ð° Ð²Ð½Ð¸Ð·Ñƒ */
.news-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid rgba(76, 49, 133, 0.1);
    flex-shrink: 0;
    margin-top: auto;
}

/* ÐšÐ½Ð¾Ð¿ÐºÐ° "ÐŸÐ¾Ð´Ñ€Ð¾Ð±Ð½ÐµÐµ" */
.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(76, 49, 133, 0.05);
    color: #4c3185;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border-radius: 30px;
    transition: all 0.2s;
}

.read-more-btn:hover {
    background: #4c3185;
    color: white;
    text-decoration: none;
}

.read-more-btn .arrow-icon {
    transition: transform 0.2s;
}

.read-more-btn:hover .arrow-icon {
    transform: translateX(4px);
}

/* Ð‘ÐµÐ¹Ð´Ð¶ "Ð’Ð°Ð¶Ð½Ð¾" */
.important-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: #dc3545;
    color: white;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ÐÐ´Ð°Ð¿Ñ‚Ð¸Ð²Ð½Ð¾ÑÑ‚ÑŒ */
@media (min-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        display: grid;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 767px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .news-card-image {
        height: 180px;
    }
    
    .news-card-image.placeholder {
        height: 180px;
    }
    
    .news-card-content {
        padding: 20px;
    }
    
    .news-card-title {
        font-size: 18px;
        min-height: 50px;
        max-height: 50px;
    }
    
    .news-card-excerpt {
        font-size: 14px;
        max-height: 63px; /* 3 ÑÑ‚Ñ€Ð¾ÐºÐ¸ * 1.5 * 14px = 63px */
        min-height: 63px;
    }
}

/* ÐÐ½Ð¸Ð¼Ð°Ñ†Ð¸Ñ Ð¿Ð¾ÑÐ²Ð»ÐµÐ½Ð¸Ñ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-card {
    animation: fadeInUp 0.5s ease-out;
}
</style>