/* ===== Articles Hero ===== */
.articles-hero {
    background: linear-gradient(135deg, #0d1f3c 0%, #1a3a6b 100%);
    padding: 120px 24px 56px;
    text-align: center;
}

.articles-hero-inner {
    max-width: 720px;
    margin: 0 auto;
}

.articles-hero-title {
    color: #ffffff;
    font-size: 42px;
    font-weight: 800;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.articles-hero-subtitle {
    color: rgba(255, 255, 255, 0.65);
    font-size: 17px;
    font-weight: 400;
    margin: 0;
    line-height: 1.6;
}

/* ===== Main Layout ===== */
.articles-main {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    width: 100%;
    margin: -32px auto 80px;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.articles-main-left {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.articles-news-block {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ===== Active Filter Badge ===== */
.articles-active-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: #f0f4ff;
    border: 1px solid rgba(54, 87, 205, 0.15);
    border-radius: 10px;
    margin-bottom: 24px;
}

.articles-active-filter-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-blue-dark, #12294B);
}

.articles-active-filter-label svg {
    color: var(--color-blue-dark, #3657CD);
    flex-shrink: 0;
}

.articles-active-filter-clear {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    color: #9ba8b7;
    transition: background 0.2s, color 0.2s;
}

.articles-active-filter-clear:hover {
    background: rgba(18, 41, 75, 0.06);
    color: #12294B;
}

/* ===== Article Card ===== */
.articles-card {
    display: flex;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 12px rgba(18, 41, 75, 0.06);
    border: 1px solid rgba(18, 41, 75, 0.06);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.articles-card:hover {
    box-shadow: 0 8px 32px rgba(18, 41, 75, 0.12);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

.articles-card-img-wrap {
    flex-shrink: 0;
    width: 240px;
    min-height: 200px;
    overflow: hidden;
    background: #f0f2f7;
}

.articles-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.articles-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.articles-card:hover .articles-card-img {
    transform: scale(1.05);
}

.articles-card-body {
    display: flex;
    flex-direction: column;
    padding: 24px 28px;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.articles-card-category {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-blue-dark, #3657CD);
}

.articles-card-title {
    font-size: 19px;
    font-weight: 700;
    color: #12294B;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.articles-card-text {
    font-size: 14px;
    color: #5a6a7e;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.articles-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 8px;
}

.articles-card-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #9ba8b7;
}

.articles-card-date svg {
    opacity: 0.5;
}

.articles-card-read {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-blue-dark, #3657CD);
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.articles-card:hover .articles-card-read {
    opacity: 1;
    transform: translateX(0);
}

/* ===== Sidebar ===== */
.articles-sidebar {
    width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.articles-sidebar-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(18, 41, 75, 0.06);
    border: 1px solid rgba(18, 41, 75, 0.06);
}

.articles-sidebar-title {
    font-size: 15px;
    font-weight: 700;
    color: #12294B;
    margin: 0 0 16px;
    letter-spacing: -0.01em;
}

/* Search */
.articles-search-input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border: 1px solid #e0e6ee;
    border-radius: 10px;
    font-size: 14px;
    color: #12294B;
    background: #f8f9fb url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='7.5' cy='7.5' r='5' stroke='%239ba8b7' stroke-width='1.5'/%3E%3Cpath d='M11.5 11.5L15.5 15.5' stroke='%239ba8b7' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") 14px center no-repeat;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.articles-search-input:focus {
    outline: none;
    border-color: var(--color-blue-dark, #3657CD);
    box-shadow: 0 0 0 3px rgba(54, 87, 205, 0.1);
}

.articles-search-input::placeholder {
    color: #9ba8b7;
}

/* Categories */
.articles-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.articles-category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.articles-category-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #3a4a5e;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    flex: 1;
}

.articles-category-link:hover {
    background: #f0f4ff;
    color: var(--color-blue-dark, #3657CD);
    text-decoration: none;
}

.articles-category-link--active {
    background: var(--color-blue-dark, #12294B);
    color: #ffffff;
    font-weight: 600;
}

.articles-category-link--active:hover {
    background: var(--color-blue-dark, #12294B);
    color: #ffffff;
}

.articles-category-count {
    font-size: 12px;
    font-weight: 600;
    color: #9ba8b7;
    background: #f0f2f7;
    padding: 2px 8px;
    border-radius: 100px;
    min-width: 24px;
    text-align: center;
}

/* Tags */
.articles-tags-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.articles-tag {
    display: inline-block;
    padding: 5px 14px;
    background: #f0f2f7;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: #3a4a5e;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.articles-tag:hover {
    background: var(--color-blue-dark, #12294B);
    color: #ffffff;
    text-decoration: none;
}

.articles-tag--active {
    background: var(--color-blue-dark, #12294B);
    color: #ffffff;
}

/* Reset button */
.articles-reset-btn {
    display: block;
    width: 100%;
    padding: 10px 0;
    margin-top: 4px;
    background: none;
    border: 1px solid #e0e6ee;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #5a6a7e;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    text-align: center;
    text-decoration: none;
}

.articles-reset-btn:hover {
    border-color: var(--color-blue-dark, #3657CD);
    color: var(--color-blue-dark, #3657CD);
    text-decoration: none;
}

/* ===== Pagination ===== */
.articles-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 48px;
}

.articles-pagination-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #5a6a7e;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.articles-pagination-num:hover {
    background: #f0f4ff;
    color: var(--color-blue-dark, #3657CD);
    text-decoration: none;
}

.articles-pagination-num--active {
    background: var(--color-blue-dark, #12294B);
    color: #ffffff;
    pointer-events: none;
}

.articles-pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    color: #5a6a7e;
    text-decoration: none;
    transition: background 0.2s;
}

.articles-pagination-btn:hover {
    background: #f0f2f7;
    text-decoration: none;
}

/* ===== Empty State ===== */
.articles-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    text-align: center;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(18, 41, 75, 0.06);
}

.articles-empty svg {
    margin-bottom: 16px;
    opacity: 0.5;
}

.articles-empty p {
    font-size: 16px;
    color: #5a6a7e;
    margin: 0 0 20px;
}

.articles-empty-btn {
    padding: 10px 28px;
    background: var(--color-blue-dark, #12294B);
    color: #ffffff;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}

.articles-empty-btn:hover {
    opacity: 0.9;
    color: #ffffff;
    text-decoration: none;
}

/* ===== Mobile filter toggle ===== */
.articles-filter-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #ffffff;
    border: 1px solid #e0e6ee;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #3a4a5e;
    cursor: pointer;
    margin-bottom: 16px;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .articles-main {
        flex-direction: column;
        margin-top: -24px;
    }

    .articles-sidebar {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .articles-sidebar-card {
        flex: 1;
        min-width: 240px;
    }

    .articles-filter-toggle {
        display: flex;
    }

    .articles-sidebar-card.articles-sidebar--filterable {
        display: none;
    }

    .articles-sidebar-card.articles-sidebar--filterable.articles-sidebar--show {
        display: block;
    }
}

@media (max-width: 640px) {
    .articles-hero {
        padding: 100px 20px 40px;
    }

    .articles-hero-title {
        font-size: 28px;
    }

    .articles-hero-subtitle {
        font-size: 15px;
    }

    .articles-main {
        padding: 0 16px;
        margin-bottom: 48px;
    }

    .articles-card {
        flex-direction: column;
    }

    .articles-card-img-wrap {
        width: 100%;
        min-height: 180px;
        max-height: 220px;
    }

    .articles-card-body {
        padding: 20px;
    }

    .articles-card-read {
        opacity: 1;
        transform: none;
    }

    .articles-sidebar {
        flex-direction: column;
    }

    .articles-sidebar-card {
        min-width: unset;
    }
}
