/* ========================================
   Latest Articles Section
   ======================================== */
.latest-articles-section {
    position: relative;
    background-color: #f8f9fa;
    /* Light background */
}

.article-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.article-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.article-card:hover .article-image {
    transform: scale(1.1);
}

.article-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 12px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.article-date .day {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.article-date .month {
    display: block;
    font-size: 0.8rem;
    color: #666;
    margin-top: 2px;
}

.article-content {
    position: relative;
    z-index: 2;
}

.article-meta {
    font-size: 0.85rem;
}

.article-title a {
    background: linear-gradient(90deg, #333, #333);
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: right bottom;
    transition: background-size 0.3s ease, color 0.3s ease;
    text-decoration: none !important;
    /* Fix hover underline */
}

.article-card:hover .article-title a {
    color: var(--primary-color) !important;
    background-size: 100% 2px;
    background-image: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    text-decoration: none !important;
}

/* Ensure mobile visibility */
@media (max-width: 768px) {
    .latest-articles-section {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .article-image-wrapper {
        height: 200px;
        /* Slightly smaller on mobile */
    }
}

.article-excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* RTL Carousel Fix */
.owl-carousel[dir="rtl"] .item {
    float: right;
}