/* News Section Styles */

.news-section {
    padding: 2rem 0;
    font-family: "M PLUS Rounded 1c", sans-serif;
    background-color: #ffffff;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #FFFFFF;
    /* White for better contrast */
    /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); */
    padding: 0.8rem 1rem;
    border-radius: 4px;
    border-left: 6px solid var(--primary-dark, #1E3A5F);
    /* Pink accent */
    margin-bottom: 1rem;
}

.news-title-area {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 700;
    font-size: 1rem;
    color: #555;
}

.news-badge {
    background: var(--primary-dark, #1E3A5F);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.news-more-link {
    color: var(--primary, #2C5282);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    transition: color 0.2s;
}

.news-more-link:hover {
    color: #163050;
    text-decoration: underline;
}

.news-list-container {
    background: transparent;
    border: none;
    padding: 0 0.5rem;
    /* Reduced padding since no border */
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03); */
}

.news-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px dotted #ddd;
    font-size: 0.9rem;
}

.news-item:last-child {
    border-bottom: none;
}

.news-pickup {
    background: var(--primary-dark, #1E3A5F);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.news-link {
    color: var(--primary, #2C5282);
    font-weight: 700;
    text-decoration: none;
    margin-right: 0.5rem;
}

.news-link:hover {
    text-decoration: underline;
}

.news-content {
    color: #666;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .news-item {
        flex-wrap: wrap;
        align-items: center;
        gap: 0.3rem 0.5rem;
        font-size: 0.8rem;
    }

    .news-item .news-content {
        width: 100%;
    }

    .news-more-link {
        font-size: 0.75rem;
    }

    .news-title-area {
        font-size: 0.9rem;
    }

    /* [Mobile] Stack Header Elements */
    .news-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    /* Ensure Sort Controls wrap nicely */
    .news-header .sort-controls {
        width: 100%;
        flex-wrap: wrap;
    }

    /* Push "More >" link to the right or keep left? Let's keep it tidy. */
    .news-more-link {
        align-self: flex-end;
        font-size: 0.8rem;
    }
}

/* Color Variants */

/* Mint (Fresh/News) */
.news-header.mint {
    border-left-color: #4ECDC4;
}

.news-badge.mint {
    background: #4ECDC4;
}

.news-link.mint {
    color: #4ECDC4;
}

.news-more-link.mint {
    color: #4ECDC4;
}

.news-more-link.mint:hover {
    color: #2AB7CA;
}

.news-pickup.mint {
    background: #4ECDC4;
}

/* Accordion: hidden news items */
.news-item.news-hidden {
    display: none;
}