/**
 * Articles Page specific styles
 * Layout, Filters, and Responsive overrides
 */

.news-page {
    padding: 40px 0 80px;
    background: #fff; /* Standard background */
}

/* Container already handled by .nl-container in HTML */

/* Filter Section */
.news-page__filter-news {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
}

.news-filters-card {
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(23, 55, 80, 0.08);
    width: 100%;
    max-width: 1000px;
}

.news-page__filter-news-form {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.news-page__filter-news-form .input-wrap {
    flex: 1;
    min-width: 200px;
}

.news-page__filter-news-form select {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border-radius: 10px;
    border: 1px solid #eef2f6;
    background-color: #fcfdfe;
    font-size: 14px;
    color: #173750;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23173750' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.news-page__filter-news-form select:hover {
    border-color: #173750;
    background-color: #fff;
}

.news-page__filter-news-form select:focus {
    outline: none;
    border-color: #173750;
    box-shadow: 0 0 0 3px rgba(23, 55, 80, 0.05);
}

/* List Layout */
.news-page__list {
    display: flex;
    flex-direction: column;
    gap: 48px;
    max-width: 1000px;
    margin: 0 auto;
}

/* Horizontal Article Item */
.nl-article-list-item {
    display: flex;
    gap: 40px;
    align-items: center;
    text-decoration: none;
    background: transparent;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.nl-article-list-item.is-animated {
    opacity: 1;
    transform: translateY(0);
}

.nl-article-list-item:hover {
    text-decoration: none;
}

/* Image Side */
.nl-article-list-item__img-wrapper {
    flex: 0 0 45%;
    max-width: 480px;
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 24px rgba(28, 39, 54, 0.08);
}

.nl-article-list-item__img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.nl-article-list-item:hover .nl-article-list-item__img-wrapper img {
    transform: scale(1.05);
}

.nl-article-list-item__img-placeholder {
    width: 100%;
    height: 100%;
    background: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nl-article-list-item__img-placeholder svg {
    width: 48px;
    height: 48px;
    color: #cbd5e0;
}

/* Content Side */
.nl-article-list-item__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px 0;
}

.nl-article-list-item__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6c757d;
}

.nl-article-list-item__category {
    color: #173750;
    background: rgba(23, 55, 80, 0.06);
    padding: 4px 12px;
    border-radius: 20px;
}

.nl-article-list-item__title {
    margin: 0 0 16px 0;
    font-size: 26px;
    line-height: 1.3;
    font-weight: 700;
    color: #173750;
    transition: color 0.2s ease;
}

.nl-article-list-item:hover .nl-article-list-item__title {
    color: #2a5a82; 
}

.nl-article-list-item__desc {
    font-size: 16px;
    line-height: 1.6;
    color: #4a5568;
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nl-article-list-item__read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #173750;
    transition: gap 0.2s ease;
}

.nl-article-list-item__read-more svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.nl-article-list-item:hover .nl-article-list-item__read-more {
    gap: 12px;
}

/* Hide old elements if they still exist in some views */
.news-page__filter-bottom {
    display: none;
}

/* Responsive */
@media (max-width: 991px) {
    .nl-article-list-item {
        gap: 32px;
    }
    
    .nl-article-list-item__title {
        font-size: 22px;
    }
    
    .news-page__filter-news-form .input-wrap {
        flex: 1 1 calc(50% - 10px);
    }
}

@media (max-width: 767px) {
    .news-page__list {
        gap: 40px;
    }
    
    .nl-article-list-item {
        flex-direction: column;
        gap: 20px;
    }
    
    .nl-article-list-item__img-wrapper {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
        aspect-ratio: 16 / 9;
    }
    
    .nl-article-list-item__content {
        padding: 0;
    }
    
    .nl-article-list-item__title {
        font-size: 20px;
    }
}

@media (max-width: 575px) {
    .news-page__filter-news-form .input-wrap {
        flex: 1 1 100%;
    }
    .news-filters-card {
        padding: 16px;
    }
    .news-page {
        padding: 24px 0 60px;
    }
}
