/* Structural Reset & Layout for Premium Editorial Style */
.fk-archive-container {
    padding: 40px;
    margin: 0 auto;
    background-color: #F7FAF8;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(24, 92, 55, 0.04);
    box-sizing: border-box;
}

.fk-archive-header {
    margin-bottom: 32px;
}

.fk-archive-eyebrow {
    display: block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #3A8F52;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.fk-archive-title {
    font-size: 32px;
    font-weight: 800;
    color: #123F2B;
    margin: 0 0 12px 0;
    line-height: 1.25;
}

.fk-archive-desc {
    font-size: 16px;
    color: #5B6861;
    margin: 0;
    line-height: 1.5;
}

/* Controls Bar */
.fk-archive-controls {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.fk-search-wrapper,
.fk-filter-wrapper {
    position: relative;
    flex: 1;
}

.fk-search-input,
.fk-filter-select {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    font-size: 15px;
    background-color: #FFFFFF;
    border: 1px solid #DDE7E1;
    border-radius: 6px;
    outline: none;
    box-sizing: border-box;
    color: #17231D;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.fk-search-input:focus,
.fk-filter-select:focus {
    border-color: #185C37;
    box-shadow: 0 0 0 3px rgba(24, 92, 55, 0.1);
}

.fk-search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 20px;
    color: #5B6861;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}

/* Articles List & Rows */
.fk-articles-list-container {
    position: relative;
}

.fk-articles-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fk-article-row {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    align-items: center;
    background-color: #FFFFFF;
    border: 1px solid #DDE7E1;
    padding: 20px 24px;
    border-radius: 6px;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.fk-article-row:hover {
    background-color: #EEF6F1;
    border-color: #185C37;
}

.fk-article-counter {
    font-size: 18px;
    font-weight: 700;
    color: #185C37;
}

.fk-article-content {
    padding-right: 20px;
}

.fk-article-title {
    font-size: 18px;
    font-weight: 700;
    color: #123F2B;
    margin: 0 0 6px 0;
    line-height: 1.4;
}

.fk-article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
}

.fk-article-author {
    color: #17231D;
    font-weight: 600;
}

.fk-article-pages {
    color: #5B6861;
}

.fk-article-sector {
    color: #2878B8;
    font-weight: 600;
    background-color: rgba(40, 120, 184, 0.08);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.fk-article-separator {
    color: #DDE7E1;
}

.fk-article-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 20px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #FFFFFF;
    background-color: #185C37;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.fk-article-btn:hover {
    background-color: #123F2B;
}

/* Loading Overlay & State */
.fk-articles-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(247, 250, 248, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.fk-loader {
    width: 32px;
    height: 32px;
    border: 3px solid #DDE7E1;
    border-top: 3px solid #185C37;
    border-radius: 50%;
    animation: fk-spin 0.8s linear infinite;
}

@keyframes fk-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Pagination Style */
.fk-archive-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
}

.fk-pag-btn {
    height: 38px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 600;
    background-color: #FFFFFF;
    border: 1px solid #DDE7E1;
    color: #123F2B;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fk-pag-btn:hover:not(:disabled) {
    background-color: #EEF6F1;
    border-color: #185C37;
}

.fk-pag-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.fk-pag-info {
    font-size: 14px;
    color: #5B6861;
    font-weight: 600;
}

.fk-article-no-results {
    text-align: center;
    padding: 40px;
    color: #5B6861;
    font-size: 16px;
    background-color: #FFFFFF;
    border: 1px solid #DDE7E1;
    border-radius: 6px;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .fk-archive-container {
        padding: 24px 16px;
    }
    .fk-archive-controls {
        flex-direction: column;
        gap: 12px;
    }
    .fk-article-row {
        grid-template-columns: 42px 1fr;
        padding: 16px;
        gap: 8px;
    }
    .fk-article-actions {
        grid-column: span 2;
        margin-top: 12px;
    }
    .fk-article-btn {
        width: 100%;
    }
}
