/* MPU Articles Groups Widget Styles */

.mpu-articles-groups-wrapper {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* Group Container */
.mpu-articles-group {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Group Title */
.mpu-articles-group-title {
    margin: 0;
    padding: 0;
    font-weight: 700;
    font-size: 1.8rem;
    line-height: 1.2;
    color: #333;
    position: relative;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f0e4af;
}

.mpu-articles-group-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #6c9144;
    transition: width 0.3s ease;
}

.mpu-articles-group:hover .mpu-articles-group-title::after {
    width: 100%;
}

/* Grid Layout */
.mpu-articles-grid {
    display: grid;
    grid-template-columns: repeat(var(--columns, 3), 1fr);
    gap: 1.5rem;
    width: 100%;
}

/* Article Card */
.mpu-article-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mpu-article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Article Card Image */
.mpu-article-card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: #f5f5f5;
    position: relative;
}

.mpu-article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.mpu-article-card:hover .mpu-article-card-image img {
    transform: scale(1.05);
}

/* Article Card Content */
.mpu-article-card-content {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Article Card Title */
.mpu-article-card-title {
    margin: 0;
    padding: 0;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    color: #333;
}

.mpu-article-card-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mpu-article-card-title a:hover {
    color: #6c9144;
}

/* Article Card Excerpt */
.mpu-article-card-excerpt {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #666;
    margin-top: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .mpu-articles-grid {
        grid-template-columns: repeat(min(var(--columns, 3), 2), 1fr);
    }

    .mpu-articles-group-title {
        font-size: 1.5rem;
    }

    .mpu-article-card-image {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .mpu-articles-groups-wrapper {
        gap: 2rem;
    }

    .mpu-articles-group {
        gap: 1rem;
    }

    .mpu-articles-grid {
        grid-template-columns: 1fr;
    }

    .mpu-articles-group-title {
        font-size: 1.3rem;
        padding-bottom: 0.5rem;
    }

    .mpu-article-card-image {
        height: 180px;
    }

    .mpu-article-card-content {
        padding: 1rem;
    }

    .mpu-article-card-title {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .mpu-articles-groups-wrapper {
        gap: 1.5rem;
    }

    .mpu-articles-group-title {
        font-size: 1.1rem;
    }

    .mpu-article-card-image {
        height: 150px;
    }

    .mpu-article-card-content {
        padding: 0.75rem;
        gap: 0.5rem;
    }

    .mpu-article-card-title {
        font-size: 0.95rem;
    }

    .mpu-article-card-excerpt {
        font-size: 0.85rem;
    }
}

/* Dark Scheme Support */
.scheme_dark .mpu-articles-group-title {
    color: #e6e6e6;
    border-bottom-color: #6c9144;
}

.scheme_dark .mpu-articles-group-title::after {
    background-color: #a8c66b;
}

.scheme_dark .mpu-article-card {
    background-color: #2a2a2a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.scheme_dark .mpu-article-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.scheme_dark .mpu-article-card-title a {
    color: #e6e6e6;
}

.scheme_dark .mpu-article-card-title a:hover {
    color: #a8c66b;
}

.scheme_dark .mpu-article-card-excerpt {
    color: #b0b0b0;
}
