
/* Latest Articles Section Styles */
.latest-articles {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.latest-articles h2 {
    color: var(--primary);
    margin-bottom: 5px;
	font-size: 1.8rem;
	text-align: center;
}

.latest-articles p {
	color: var(--gray);
	max-width: 700px;
	margin: 0 auto;	
	margin-bottom: 30px;
	font-size: 1.1rem;
	text-align: center;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.article-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.article-image {
    height: 200px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: 20px;
}

.article-category {
    display: inline-block;
    background: #f0f0f0;
    color: #555;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 10px;
}

.article-content h3 {
    margin: 0 0 10px;
    /*font-size: 1.2rem;*/
    line-height: 1.3;
    color: var(--primary);
}

.article-excerpt {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
    text-align: left;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: left;
}

.article-date {
    color: #888;
    font-size: 14px;
}

.read-article {
    color: #4361ee;
    font-weight: 500;
    text-decoration: none;
}

.read-article:hover {
    text-decoration: underline;
}

.view-all-container {
    text-align: center;
}

.view-all-btn {
    display: inline-block;
    background: #4361ee;
    color: white;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
}

.view-all-btn:hover {
    background: #3a0ca3;
}

.loading-spinner, .error-message {
    text-align: center;
    padding: 40px;
    grid-column: 1 / -1;
    color: #666;
}

.error-message {
    color: #dc3545;
}

@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
}
