.news-archive-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Flex container for main and sidebar */
.news-content-wrapper {
    display: flex;
    gap: 2rem;
}

/* Main content */
.news-main {
    flex: 1 1 70%;
}

.news-sidebar {
    flex: 0 0 280px;
    background: var(--lavender-bg);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(110, 15, 121, 0.1);
    position: sticky;
    top: 70px; /* 50px header height + 20px spacing */
    height: fit-content;
    /* No padding here */
}


.news-sidebar-inner {
    padding: 1.5rem;
}

/* Filters form */
#news-filter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#news-filter-form input[type="search"],
#news-filter-form select {
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1rem;
    transition: border-color 0.3s;
    width: 100%;
}

#news-filter-form input[type="search"]:focus,
#news-filter-form select:focus {
    border-color: var(--violet-dark);
    outline: none;
}

#news-filter-form button {
    background: var(--violet-dark);
    color: white;
    border: none;
    padding: 0.7rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

#news-filter-form button:hover {
    background: #4a003d;
}

/* News cards grid */
.news-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

.news-card {
    background: var(--lavender-bg);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(110, 15, 121, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.news-card:hover {
    box-shadow: 0 6px 20px rgba(110, 15, 121, 0.3);
    transform: translateY(-4px);
}

.news-card-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.news-category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: var(--violet-dark);
    color: white;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}


.news-card-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.news-card-content {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-card-content h2 {
    margin: 0 0 0.5rem;
    font-size: 1.3rem;
    color: var(--violet-dark);
}

.news-card-content h2 a {
    color: #222;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-card-content h2 a:hover {
    color: var(--violet-dark);
    text-decoration: none;
}

.news-card-content time {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.75rem;
}

.news-card-content p {
    flex-grow: 1;
    font-size: 1rem;
    color: #444;
    margin: 0;
}

.news-archive-container h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--violet-dark);
}

/* Pagination */
.news-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
    padding: 1rem 0;
}

.news-pagination ul {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 10px;
}

.news-pagination a,
.news-pagination span {
    display: inline-block;
    margin: 0 5px;
    padding: 10px 20px;
    background:var(--lavender-bg);
    border: 1px solid #ddd;
    border-radius: 5px;
    color: var(--violet-dark);
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.3s ease, color 0.3s ease;
}

.news-pagination a:hover {
    background: var(--violet);
    color: var(--white-bg);
    border-color: var(--violet-dark);
}

.news-pagination .current {
    background: var(--violet-dark);
    color: var(--white-bg);
    border: none;
    pointer-events: none;
}

.news-pagination .dots {
    pointer-events: none;
    color: #999;
    padding: 10px 20px;
    background: transparent;
    border: none;
}

/* Responsive */
@media (max-width: 992px) {
    .news-list {
        grid-template-columns: repeat(2, 1fr);
    }
    .pagination {
        display: block !important;
    }
}

@media (max-width: 600px) {
    .news-content-wrapper {
        flex-direction: column;
    }
    .news-sidebar {
        width: 100%;
        position: relative;
        top: auto;
        margin-bottom: 1.5rem;
    }
    .news-list {
        grid-template-columns: 1fr;
    }
    .pagination {
        display: block !important;
    }
}

.pagination h2 {
    display: none;
}

.news-list.no-news-message {
    text-align: center;
    padding: 40px 20px;
    background-color: #f9f9f9;
    border: 2px dashed #ccc;
    border-radius: 12px;
    font-family: 'Segoe UI', sans-serif;
    color: #444;
    margin-top: 20px;
    animation: fadeIn 0.5s ease-in;
}

.news-list.no-news-message i {
    font-size: 48px;
    color: #999;
    margin-bottom: 10px;
    display: block;
}

.news-list.no-news-message p {
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .news-archive-container {
        padding: 0 1rem;
        margin: 1.5rem auto;
    }

    .news-archive-container h1 {
        font-size: 1.5rem;
        text-align: center;
        margin-bottom: 1rem;
    }

    .news-content-wrapper {
        flex-direction: column;
        gap: 1.5rem;
    }

    .news-main {
        flex: 1 1 100%;
    }

    .news-sidebar {
        width: 100%;
        position: relative;
        top: unset;
        margin-bottom: 1.5rem;
    }

    .news-sidebar-inner {
        padding: 1rem;
    }

    .news-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .news-card {
        border-radius: 8px;
    }

    .news-card-image img {
        height: 160px;
    }

    .news-card-content h2 {
        font-size: 1.1rem;
    }

    .news-card-content p {
        font-size: 0.95rem;
    }

    .news-card-content time {
        font-size: 0.8rem;
    }

    #news-filter-form input[type="search"],
    #news-filter-form select,
    #news-filter-form button {
        font-size: 0.95rem;
        padding: 0.5rem 0.75rem;
    }

    #news-filter-form button {
        font-weight: 600;
    }

    .news-pagination {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 1rem 0;
    }

    .news-pagination a,
    .news-pagination span {
        font-size: 0.9rem;
        padding: 8px 14px;
    }

    .hero-section {
        padding: 3rem 1rem;
    }

    .hero-section h1 {
        font-size: 2rem;
        letter-spacing: 1px;
    }

    .hero-section p {
        font-size: 1rem;
        line-height: 1.5;
    }
}



@media (max-width: 480px) {
    .news-card-image img {
        height: 140px;
    }

    .news-card-content h2 {
        font-size: 1rem;
    }

    .news-pagination a,
    .news-pagination span {
        font-size: 0.85rem;
        padding: 6px 10px;
    }
}
