/* Tailwind preflight resets some base styles set by navigation.css.
   This file restores them so the header/nav render correctly alongside Tailwind content. */

/* Keep header layout from navigation.css intact */
#head {
    display: flex !important;
}

/* Scope all Tailwind-styled content below the header */
.tw-content * {
    box-sizing: border-box;
}

/* Filter buttons */
.filter-btn {
    background: #f3f4f6;
    color: #374151;
    border: 1.5px solid transparent;
    cursor: pointer;
    font-family: inherit;
}

.filter-btn--active {
    background: #006684;
    color: #fff;
    border-color: #006684;
}

.filter-btn:hover:not(.filter-btn--active) {
    background: #e5e7eb;
    border-color: #d1d5db;
}

/* Card styles */
.news-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.14);
}

.news-card__image-wrap {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, #006684 0%, #a4326d 100%);
    flex-shrink: 0;
}

.news-card__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card__image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
}


.news-card__body {
    padding: 1rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.news-card__category {
    font-size: 0.75rem;
    font-weight: 700;
    color: #006684;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.news-card__title {
    font-size: 1rem;
    font-weight: 800;
    color: #111;
    line-height: 1.35;
}

.news-card__desc {
    font-size: 0.875rem;
    color: #555;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.news-card__date {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.25rem;
}

/* Empty / error state */
.news-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #6b7280;
    grid-column: 1 / -1;
}

.news-state__icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.news-state__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 0.5rem;
}

.news-state__text {
    font-size: 0.95rem;
}
