/* Chess News Styling */
.chess-news-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.news-item {
    display: flex;
    flex-direction: column;
    background-color: #1e1c1a;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #3a3a36;
    transition: all 0.3s ease;
}

.news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    border-color: #4b4945;
}

.news-image {
    width: 100%;
    height: 120px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.news-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(30, 28, 26, 0) 0%, rgba(30, 28, 26, 0.8) 100%);
}

.news-content {
    padding: 15px;
}

.news-title {
    font-size: 16px;
    color: #e4e4e4;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.3;
}

.news-preview {
    font-size: 14px;
    color: #a7a7a7;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 60px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.news-source {
    color: #7fa650;
    font-size: 12px;
    font-weight: 500;
}

.news-date {
    color: #a7a7a7;
    font-size: 12px;
}

.read-more {
    align-self: flex-end;
    color: #7fa650;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    margin-top: 5px;
}

.read-more:hover {
    text-decoration: underline;
}

/* View all news button */
.view-all-container {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.view-all-news {
    color: #e4e4e4;
    background-color: #3a3a36;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.view-all-news:hover {
    background-color: #7fa650;
    color: #262421;
}

/* Loading and error states */
.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(127, 166, 80, 0.1);
    border-left-color: #7fa650;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-indicator p {
    color: #a7a7a7;
    font-size: 14px;
}

.error-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    text-align: center;
}

.error-message i {
    font-size: 32px;
    color: #f69664;
    margin-bottom: 15px;
}

.error-message p {
    color: #e4e4e4;
    margin-bottom: 15px;
    font-size: 14px;
}

/* Media queries */
@media (max-width: 768px) {
    .news-image {
        height: 100px;
    }
}