/* =============================================================
   All News Page – Mobile-First, Responsive
   ============================================================= */

/* ── Breadcrumb ─────────────────────────────────────────────── */
.allnews-breadcrumb {
    font-size: 0.87rem;
    background: transparent;
    padding: 0;
    margin-bottom: 0;
}
.allnews-breadcrumb .breadcrumb-item a {
    color: var(--veye-green);
    text-decoration: none;
    font-weight: 500;
}
.allnews-breadcrumb .breadcrumb-item.active {
    color: #6b7b8d;
}

/* ── Hero ───────────────────────────────────────────────────── */
.allnews-hero {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 28px 0 18px;
}
.allnews-hero-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--veye-green), #15956e);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.allnews-hero-icon i {
    font-size: 1.5rem;
    color: #fff;
}
.allnews-hero-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.2;
}
.allnews-hero-subtitle {
    font-size: 0.93rem;
    color: #6b7b8d;
    margin: 4px 0 0;
    line-height: 1.5;
}

/* ── Active Filters Strip ───────────────────────────────────── */
.allnews-active-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 18px;
    background: #fff;
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    margin-bottom: 24px;
}
.allnews-active-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 4px;
}
.allnews-active-label i {
    color: var(--veye-green);
}
.allnews-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(27, 176, 135, 0.08);
    border: 1px solid rgba(27, 176, 135, 0.2);
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    transition: background 0.2s ease;
}
.allnews-filter-tag:hover {
    background: rgba(27, 176, 135, 0.15);
    color: var(--primary-color);
}
.allnews-filter-tag-key {
    color: #8a97a8;
    font-weight: 500;
}
.allnews-filter-tag i {
    font-size: 0.6rem;
    color: #8a97a8;
}
.allnews-clear-all {
    font-size: 0.78rem;
    color: #dc3545;
    font-weight: 600;
    text-decoration: none;
    margin-left: auto;
}
.allnews-clear-all:hover {
    color: #b02a37;
}

/* ── Main Section ───────────────────────────────────────────── */
.allnews-main-section {
    padding-bottom: 48px;
}

/* ── Toolbar ────────────────────────────────────────────────── */
.allnews-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}
.allnews-result-count {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--primary-color);
}
.allnews-toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}
.allnews-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1.5px solid #e1e6ed;
    border-radius: 10px;
    background: #fff;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    transition: border-color 0.2s ease;
}
.allnews-filter-toggle:hover {
    border-color: var(--veye-green);
    color: var(--veye-green);
}
.allnews-sort-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1.5px solid #e1e6ed;
    border-radius: 10px;
    background: #fff;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    transition: border-color 0.2s ease;
}
.allnews-sort-btn:hover,
.allnews-sort-btn:focus {
    border-color: var(--veye-green);
    color: var(--veye-green);
    background: #fff;
}
.allnews-sort-dropdown {
    border: 1px solid #e1e6ed;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(14, 30, 50, 0.12);
    padding: 6px;
    min-width: 180px;
}
.allnews-sort-dropdown .dropdown-item {
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 8px 12px;
    color: var(--primary-color);
}
.allnews-sort-dropdown .dropdown-item:hover {
    background: rgba(27, 176, 135, 0.08);
    color: var(--veye-green);
}
.allnews-sort-dropdown .dropdown-item.active {
    background: rgba(27, 176, 135, 0.1);
    color: var(--veye-green);
    font-weight: 700;
}

/* ── Search Bar ─────────────────────────────────────────────── */
.allnews-search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
.allnews-search-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}
.allnews-search-icon {
    position: absolute;
    left: 14px;
    font-size: 0.92rem;
    color: #8a97a8;
    pointer-events: none;
}
.allnews-search-input {
    width: 100%;
    padding: 10px 14px 10px 40px;
    border: 1.5px solid #e1e6ed;
    border-radius: 10px;
    background: #fff;
    font-size: 0.88rem;
    font-family: 'Inter', sans-serif;
    color: var(--primary-color);
    outline: none;
    transition: border-color 0.2s ease;
}
.allnews-search-input:focus {
    border-color: var(--veye-green);
}
.allnews-search-input::placeholder {
    color: #b0b9c6;
}
.allnews-search-clear {
    position: absolute;
    right: 10px;
    color: #8a97a8;
    font-size: 0.75rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    transition: background 0.2s ease;
}
.allnews-search-clear:hover {
    background: #f0f3f7;
    color: #dc3545;
}
.allnews-search-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    background: var(--veye-green);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease;
}
.allnews-search-btn:hover {
    background: #15956e;
}

/* ── News Cards ─────────────────────────────────────────────── */
.allnews-card {
    background: #fff;
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.allnews-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}
.allnews-card-img-wrap {
    position: relative;
    overflow: hidden;
}
.allnews-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.allnews-card:hover .allnews-card-img {
    transform: scale(1.04);
}
.allnews-badge-featured,
.allnews-badge-breaking {
    position: absolute;
    top: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.allnews-badge-featured {
    right: 10px;
    background: rgba(255, 193, 7, 0.9);
    color: #000;
}
.allnews-badge-breaking {
    left: 10px;
    background: rgba(220, 53, 69, 0.9);
    color: #fff;
}
.allnews-card-body {
    padding: 16px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.allnews-card-category {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--veye-green);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 6px;
    border: 1.5px solid var(--veye-green);
    padding: 2px 10px;
    border-radius: 20px;
    transition: background 0.2s ease, color 0.2s ease;
}
.allnews-card-category:hover {
    background: var(--veye-green);
    color: #fff;
}
.allnews-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--primary-color);
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.allnews-card-title a {
    color: inherit;
    text-decoration: none;
}
.allnews-card-title a:hover {
    color: var(--veye-green);
}
.allnews-card-excerpt {
    font-size: 0.83rem;
    color: #6b7b8d;
    line-height: 1.5;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.allnews-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
}
.allnews-card-meta-item {
    font-size: 0.76rem;
    color: #8a97a8;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.allnews-card-meta-item a {
    color: inherit;
    text-decoration: none;
}
.allnews-card-meta-item a:hover {
    color: var(--veye-green);
}
.allnews-card-meta-item i {
    font-size: 0.7rem;
}

/* ── Pagination ─────────────────────────────────────────────── */
.allnews-pagination .pagination {
    justify-content: center;
}
.allnews-pagination .page-link {
    border-radius: 8px;
    margin: 0 3px;
    border: 1.5px solid #e1e6ed;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 14px;
}
.allnews-pagination .page-link:hover {
    background: rgba(27, 176, 135, 0.08);
    border-color: var(--veye-green);
    color: var(--veye-green);
}
.allnews-pagination .page-item.active .page-link {
    background: var(--veye-green);
    border-color: var(--veye-green);
    color: #fff;
}

/* ── Empty State ────────────────────────────────────────────── */
.allnews-empty {
    text-align: center;
    padding: 60px 20px;
}
.allnews-empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #f5f7fa;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.allnews-empty-icon i {
    font-size: 2rem;
    color: #c5cdd8;
}
.allnews-empty h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 8px;
}
.allnews-empty p {
    font-size: 0.93rem;
    color: #6b7b8d;
}
.allnews-btn-reset {
    background: var(--veye-green);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 24px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: background 0.2s ease;
}
.allnews-btn-reset:hover {
    background: #15956e;
    color: #fff;
}

/* =============================================================
   Filter Cards (Sidebar + Offcanvas)
   ============================================================= */
.allnews-filter-card {
    background: #fff;
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    margin-bottom: 16px;
    overflow: hidden;
}
.allnews-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    user-select: none;
    transition: background 0.18s ease;
}
.allnews-filter-header:hover {
    background: #fafbfc;
}
.allnews-filter-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.allnews-filter-title i {
    color: var(--veye-green);
    font-size: 0.85rem;
}
.allnews-filter-toggle-icon {
    font-size: 0.7rem;
    color: #8a97a8;
    transition: transform 0.25s ease;
}
.allnews-filter-toggle-icon.rotated {
    transform: rotate(180deg);
}
.allnews-filter-body {
    padding: 0 20px 16px;
    max-height: 600px;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}
.allnews-filter-body.collapsed {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
}

/* ── Filter Search (within filter cards) ────────────────────── */
.allnews-filter-search {
    width: 100%;
    padding: 8px 12px;
    border: 1.5px solid #e9ecf2;
    border-radius: 8px;
    font-size: 0.82rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    margin-bottom: 10px;
    transition: border-color 0.2s ease;
}
.allnews-filter-search:focus {
    border-color: var(--veye-green);
}
.allnews-filter-search::placeholder {
    color: #b0b9c6;
}

/* ── Filter Options (Radio list) ────────────────────────────── */
.allnews-filter-options {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.allnews-filter-scrollable {
    max-height: 200px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #dde1e8 transparent;
}
.allnews-filter-scrollable::-webkit-scrollbar {
    width: 5px;
}
.allnews-filter-scrollable::-webkit-scrollbar-track {
    background: transparent;
}
.allnews-filter-scrollable::-webkit-scrollbar-thumb {
    background: #dde1e8;
    border-radius: 10px;
}
.allnews-filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.18s ease;
    margin: 0;
    font-size: 0.84rem;
}
.allnews-filter-option:hover {
    background: #f5f7fa;
}
.allnews-filter-option input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: var(--veye-green);
    flex-shrink: 0;
    cursor: pointer;
}
.allnews-filter-option-label {
    flex: 1;
    font-weight: 500;
    color: var(--primary-color);
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.allnews-filter-option-count {
    font-size: 0.72rem;
    font-weight: 700;
    color: #8a97a8;
    background: #f0f3f7;
    padding: 2px 8px;
    border-radius: 10px;
    flex-shrink: 0;
}
.allnews-filter-option-badge {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--veye-green);
    background: rgba(27, 176, 135, 0.1);
    padding: 1px 8px;
    border-radius: 6px;
    flex-shrink: 0;
}

/* ── Filter Tags (Tag chips) ───────────────────────────────── */
.allnews-filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.allnews-tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border: 1.5px solid #e1e6ed;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0;
}
.allnews-tag-chip input[type="radio"] {
    display: none;
}
.allnews-tag-chip:hover {
    border-color: var(--veye-green);
    color: var(--veye-green);
}
.allnews-tag-chip.active {
    background: var(--veye-green);
    border-color: var(--veye-green);
    color: #fff;
}
.allnews-tag-chip-count {
    font-size: 0.65rem;
    opacity: 0.7;
}
.allnews-tag-chip.active .allnews-tag-chip-count {
    opacity: 0.9;
}

/* ── Filter Actions ─────────────────────────────────────────── */
.allnews-filter-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}
.allnews-filter-apply-btn {
    width: 100%;
    padding: 11px;
    border: none;
    border-radius: 10px;
    background: var(--veye-green);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}
.allnews-filter-apply-btn:hover {
    background: #15956e;
}
.allnews-filter-reset-btn {
    width: 100%;
    padding: 11px;
    border: 1.5px solid #e1e6ed;
    border-radius: 10px;
    background: #fff;
    color: var(--primary-color);
    font-size: 0.88rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease, color 0.2s ease;
}
.allnews-filter-reset-btn:hover {
    border-color: #dc3545;
    color: #dc3545;
}

/* ── Sidebar Card --}}────────────────────────────────────────── */
.allnews-sidebar-card {
    background: #fff;
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    padding: 24px;
    margin-bottom: 20px;
}

/* ── Newsletter Card ────────────────────────────────────────── */
.allnews-newsletter-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    text-align: center;
    margin-top: 8px;
}
.allnews-newsletter-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(27, 176, 135, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}
.allnews-newsletter-icon i {
    font-size: 1.3rem;
    color: var(--veye-green);
}
.allnews-newsletter-title {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: #fff;
}
.allnews-newsletter-desc {
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 18px;
    line-height: 1.5;
}
.allnews-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.allnews-newsletter-input {
    width: 100%;
    padding: 11px 16px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 0.88rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s ease;
}
.allnews-newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}
.allnews-newsletter-input:focus {
    border-color: var(--veye-green);
}
.allnews-newsletter-btn {
    width: 100%;
    padding: 11px;
    border: none;
    border-radius: 10px;
    background: var(--veye-green);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: background 0.2s ease;
}
.allnews-newsletter-btn:hover {
    background: #15956e;
}

/* ── Mobile Offcanvas ───────────────────────────────────────── */
.allnews-offcanvas {
    max-width: 340px;
}
.allnews-offcanvas-header {
    background: var(--primary-color);
    color: #fff;
    padding: 18px 20px;
}
.allnews-offcanvas-header .btn-close {
    filter: invert(1);
}
.allnews-offcanvas-body {
    padding: 16px;
    background: #f8f9fb;
}

/* =============================================================
   Responsive – Tablet (768px+)
   ============================================================= */
@media (min-width: 768px) {
    .allnews-hero {
        padding: 36px 0 22px;
    }
    .allnews-hero-icon {
        width: 64px;
        height: 64px;
    }
    .allnews-hero-icon i {
        font-size: 1.75rem;
    }
    .allnews-hero-title {
        font-size: 1.7rem;
    }
    .allnews-hero-subtitle {
        font-size: 1rem;
    }
    .allnews-card-img {
        height: 200px;
    }
}

/* =============================================================
   Responsive – Desktop (992px+)
   ============================================================= */
@media (min-width: 992px) {
    .allnews-hero {
        padding: 44px 0 28px;
        gap: 22px;
    }
    .allnews-hero-icon {
        width: 72px;
        height: 72px;
        border-radius: 18px;
    }
    .allnews-hero-icon i {
        font-size: 2rem;
    }
    .allnews-hero-title {
        font-size: 1.9rem;
    }
}

/* =============================================================
   Responsive – Large Desktop (1200px+)
   ============================================================= */
@media (min-width: 1200px) {
    .allnews-hero-title {
        font-size: 2.1rem;
    }
}

/* =============================================================
   Responsive – Small (< 576px)
   ============================================================= */
@media (max-width: 575.98px) {
    .allnews-hero {
        gap: 14px;
        padding: 20px 0 14px;
    }
    .allnews-hero-icon {
        width: 46px;
        height: 46px;
        border-radius: 12px;
    }
    .allnews-hero-icon i {
        font-size: 1.2rem;
    }
    .allnews-hero-title {
        font-size: 1.2rem;
    }
    .allnews-hero-subtitle {
        font-size: 0.85rem;
    }
    .allnews-active-filters {
        padding: 10px 14px;
    }
    .allnews-search-bar {
        flex-direction: column;
    }
    .allnews-search-btn {
        width: 100%;
    }
    .allnews-card-body {
        padding: 14px 14px;
    }
    .allnews-card-img {
        height: 160px;
    }
    .allnews-filter-card {
        margin-bottom: 12px;
    }
    .allnews-filter-header {
        padding: 14px 16px;
    }
    .allnews-filter-body {
        padding: 0 16px 14px;
    }
}
