/* Latest Article Styles */
.latest-article {
    margin: 0px 0px;
    padding: 0;
    overflow: hidden;
}

.latest-article-image {
    margin-bottom: 15px;
}

.latest-article-image a {
    display: block;
    overflow: hidden;
    border-radius: 0px;
}

.latest-article-image img {
    width: 100%;
    height: 500px !important;
    display: block;
    object-fit: cover;
}

.latest-article-image a:hover img {
    /* transform: scale(1.05); */
}

.latest-article-content {
    padding: 10px 0;
}

.latest-article-title {
    margin: 0 0 10px 0;
    font-size: 24px;
    line-height: 1.4;
    font-weight: 700;
}

.latest-article-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.latest-article-title a:hover {
    color: #0066cc;
}

.latest-article-meta {
    margin-bottom: 12px;
    font-size: 14px;
    color: #666;
}

.latest-article-author {
    color: #444;
}

.latest-article-separator {
    margin: 0 2px;
    color: #999;
}

.latest-article-date {
    color: #666;
}

.latest-article-excerpt {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

.latest-article-error {
    padding: 15px;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .latest-article-title {
        font-size: 20px;
    }
    
    .latest-article-excerpt {
        font-size: 14px;
    }
    
    .latest-article-meta {
        font-size: 13px;
    }
}

/* Latest Articles Grid (for latest 3 shortcodes) */
.latest-articles-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0px 0px;
}

.latest-article-item {
    background: #fff;
    /* border: 1px solid #e0e0e0; */
    border-radius: 0px;
    overflow: hidden;
    /* transition: box-shadow 0.3s ease, transform 0.3s ease; */
}

.latest-article-item:hover {
    /* box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px); */
}

.latest-article-item-image {
    position: relative;
    padding-top: 45%; /* 5:3 aspect ratio */
    overflow: hidden;
    background: #f5f5f5;
}

.latest-article-item-image a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.latest-article-item-image img {
    width: 100%;
    height: 150px !important;
    object-fit: cover;
    display: block;
    object-position: center;
}

.latest-article-item:hover .latest-article-item-image img {
    /* transform: scale(1.05); */
}

.latest-article-item-content {
    padding: 8px 0 0 0;
}

.latest-article-item-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 600;
}

.latest-article-item-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.latest-article-item-title a:hover {
    color: #0066cc;
}

.latest-article-item-meta {
    font-size: 13px;
    color: #666;
}

.latest-article-item-author {
    color: #444;
}

.latest-article-item-date {
    color: #666;
}
