/* ==========================================================================
   567 AGRI CATEGORY ARCHIVE STYLESHEET
   STRICTLY NAMESPACED UNDER .archive-news-page (NO GLOBAL OVERRIDES)
   FONT: ROBOTO ONLY, BACKGROUND: #F8F9FA, GRID: 3 COLS
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;600;700&display=swap');

.archive-news-page,
.archive-news-page * {
    box-sizing: border-box;
}

.archive-news-page {
    font-family: 'Roboto', sans-serif;
    color: #334155;
    background-color: #F8F9FA;
    line-height: 1.6;
    min-height: 100vh;
}

.archive-news-page h1,
.archive-news-page h2,
.archive-news-page h3,
.archive-news-page h4,
.archive-news-page h5,
.archive-news-page h6 {
    font-family: 'Roboto', sans-serif !important;
    color: #0F172A;
    margin-top: 0;
    font-weight: 600 !important;
}

.archive-news-page i.fa-solid,
.archive-news-page i.fa-regular,
.archive-news-page .fa-solid,
.archive-news-page .fa-regular {
    font-family: "Font Awesome 6 Free", "FontAwesome" !important;
    font-style: normal;
    line-height: 1;
}

.archive-news-page .archive-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HERO BANNER */
.archive-news-page .cat-archive-hero {
    position: relative;
    height: 380px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.archive-news-page .hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(15, 45, 23, 0.8) 0%, rgba(31, 122, 62, 0.5) 100%);
    z-index: 1;
}
.archive-news-page .cat-archive-hero .archive-container {
    position: relative;
    z-index: 2;
    width: 100%;
}
.archive-news-page .hero-inner-content {
    max-width: 850px;
    color: #ffffff;
}
.archive-news-page .archive-breadcrumb {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}
.archive-news-page .archive-breadcrumb a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
}
.archive-news-page .archive-breadcrumb .sep { font-size: 10px; color: rgba(255, 255, 255, 0.5); }
.archive-news-page .archive-breadcrumb .current { color: rgba(255, 255, 255, 0.95); font-weight: 500; }

.archive-news-page .hero-cat-title {
    font-size: 38px;
    font-weight: 600 !important;
    color: #ffffff;
    line-height: 1.25;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}
.archive-news-page .hero-cat-subtext {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    margin: 0;
}

/* MAIN CONTENT SECTION */
.archive-news-page .cat-archive-main-section {
    padding: 50px 0 80px;
}

/* FILTER PILLS BAR */
.archive-news-page .cat-filter-pills-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.archive-news-page .pill-item {
    background: #ffffff;
    border: 1px solid #E2E8F0;
    color: #475569;
    padding: 9px 22px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.archive-news-page .pill-item.active,
.archive-news-page .pill-item:hover {
    background: #1F7A3E;
    color: #ffffff;
    border-color: #1F7A3E;
    box-shadow: 0 4px 14px rgba(31, 122, 62, 0.25);
}

/* NEWS GRID (STRICT 3 COLUMNS) */
.archive-news-page .news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

/* NEWS CARD (18PX RADIUS & 16:9 IMAGE) */
.archive-news-page .news-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #E2E8F0;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.archive-news-page .news-card:hover {
    transform: translateY(-8px);
    border-color: #1F7A3E;
    box-shadow: 0 20px 45px rgba(0,0,0,.12);
}

.archive-news-page .news-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.archive-news-page .news-image-box {
    position: relative;
    padding-top: 56.25%; /* 16:9 Ratio */
    overflow: hidden;
    background: #F1F5F9;
}
.archive-news-page .news-image {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.archive-news-page .news-card:hover .news-image {
    transform: scale(1.08);
}

.archive-news-page .news-tag-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #1F7A3E;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 999px;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.archive-news-page .news-card-body {
    padding: 22px 22px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.archive-news-page .news-title {
    font-size: 17px;
    font-weight: 700 !important;
    color: #0F172A;
    line-height: 1.4;
    margin: 0 0 10px;
    height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.25s ease;
}
.archive-news-page .news-card:hover .news-title {
    color: #1F7A3E;
}

.archive-news-page .news-excerpt {
    font-size: 13.5px;
    color: #64748B;
    line-height: 1.6;
    margin: 0 0 20px;
    height: 4.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.archive-news-page .news-meta-row {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #F1F5F9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    color: #64748B;
}
.archive-news-page .meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}
.archive-news-page .meta-item i {
    color: #94A3B8;
    font-size: 13px;
}

.archive-news-page .news-button {
    color: #1F7A3E;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    transition: all 0.25s ease;
}
.archive-news-page .news-card:hover .news-button {
    color: #F68B1F;
    gap: 8px;
}

/* PAGINATION */
.archive-news-page .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}
.archive-news-page .page-num {
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #E2E8F0;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}
.archive-news-page .page-num.current,
.archive-news-page .page-num:hover:not(.dots) {
    background: #1F7A3E;
    color: #ffffff;
    border-color: #1F7A3E;
}
.archive-news-page .page-num:hover:not(.dots):not(.current) {
    background: #F68B1F;
    border-color: #F68B1F;
}
.archive-news-page .page-num.dots {
    border: none;
    background: transparent;
    box-shadow: none;
    color: #94A3B8;
}

/* RESPONSIVE BREAKPOINTS (Desktop 3, Tablet 2, Mobile 1) */
@media (max-width: 1024px) {
    .archive-news-page .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .archive-news-page .cat-archive-hero { height: auto; padding: 50px 0; }
    .archive-news-page .hero-cat-title { font-size: 26px; }
    .archive-news-page .news-grid { grid-template-columns: 1fr; }
    .archive-news-page .news-meta-row { flex-wrap: wrap; gap: 10px; }
}
