* {
    margin: 0;
    /* padding-top: 15px; */
    /* box-sizing: border-box; */
}

body {
    /* font-family: 'Rubik', sans-serif; */
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

.news-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    flex: 1;
    width: 100%;
}

.news-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    background: transparent;
    height: 400px;
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    color: inherit;
}

.news-item:link,
.news-item:visited,
.news-item:hover,
.news-item:active {
    color: inherit;
    text-decoration: none !important;
}

.news-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.news-item__image {
    position: relative;
    height: 100%;
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.news-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    transition: transform 0.3s ease;
}

.news-item:hover .news-item__image img {
    transform: scale(1.05);
}

.news-item__image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.4));
    z-index: 2;
}

.news-item__vobler {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}

/* .news-vobler {
    background: #F97316;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
} */
/* 
.news-vobler:after {
    content: '';
    position: absolute;
    top: 50%;
    right: -8px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid #F97316;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
} */
.section-title {
    padding-top: 120px;
    text-align: center;
    font-size: 52px;
    margin-bottom: 30px;
    color: var(--sk-body-text-color);
    font-weight: 700;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
    width: 80px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.news-item__content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 30px 30px;
    z-index: 3;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
} 

.news-item__title {
    margin-bottom: 15px;
}

.news-item__title a {
    color: #ffffff;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.3;
    display: block;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    text-decoration: none !important;
}

.news-item__title a:hover {
    color: #f0f0f0;
}

.news-item:hover .news-item__title a {
    color: #f0f0f0;
}

.news-item__description {
    color: #ffffff;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
    opacity: 0.9;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.news-item__stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    opacity: 0.8;
}

.news-item__date {
    font-weight: 500;
    color: #ffffff;
}

.news-item__views-count,
.news-item__comments-count {
    display: flex;
    align-items: center;
    gap: 4px;
}

.news-item__views-count i,
.news-item__comments-count i {
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.news-item__views-count i {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23999'%3E%3Cpath d='M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z'/%3E%3C/svg%3E");
}

.news-item__comments-count i {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23999'%3E%3Cpath d='M20 2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h4l4 4 4-4h4c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2z'/%3E%3C/svg%3E");
}

.news-item__stats-right {
    display: flex;
    gap: 16px;
}

.category-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.category-button {
    padding: 12px 24px;
    border: 2px solid var(--accent);
    background: transparent;
    color: var(--accent);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.category-button:hover {
    background: var(--accent);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.category-button.active {
    background: var(--accent);
    color: var(--text-primary);
}

.pagination-button {
    padding: 8px 16px;
    border: 2px solid var(--accent);
    background: transparent;
    color: var(--accent);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.pagination-button:hover {
    background: var(--accent);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.pagination-button.active {
    background: var(--accent);
    color: var(--text-primary);
    cursor: default;
}



@media (max-width: 368) {
    .news-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .news-item {
        height: 120px;
    }

    .news-item__image {
        height: 100px;
    }

    .news-item__content {
        padding: 20px;
    }

    .news-item__title a {
        font-size: 20px;
    }

    .section-title {
        padding-top: 120px;
        font-size: 40px;
        margin-bottom: 40px;
    }

    .category-buttons {
        gap: 10px;
        margin-bottom: 20px;
    }

    .category-button {
        padding: 10px 18px;
        font-size: 14px;
    }
}