/* =========================================================
   blog.css — blog list (blog.html)
   Article cards, pagination, badges are shared in main.css
   ========================================================= */

/* ---------- CATEGORY TABS ---------- */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.tab {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 16px;
    border: 1px solid #c9d8e8;
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--navy);
    font-size: 13px;
    font-weight: 600;
    transition: transform var(--transition), border-color var(--transition);
}

.tab:hover {
    transform: translateY(-1px);
    border-color: #7fa4c8;
}

.tab.is-active {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
}


/* ---------- FEATURED ARTICLE ---------- */
.blog-heading {
    margin-bottom: 18px;
}

.featured-card {
    display: grid;
    grid-template-columns: 1fr 45%;
    min-height: 320px;
    max-height: 480px;
}

.featured-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 32px;
    max-height: 480px;
}

.featured-body h3 {
    max-width: 500px;
    font-size: clamp(22px, 2.6vw, 28px);
    letter-spacing: -.02em;
}

.featured-body h3 a:hover {
    color: var(--blue-bright);
}

.featured-body > p:not(.meta) {
    max-width: 480px;
    color: var(--muted);
    font-size: var(--fs-md);
    line-height: 1.6;
}

.featured-body .meta {
    margin-top: auto;
    padding-top: 6px;
}

.featured-media {
    display: block;
    min-height: 260px;
    max-height: 480px;
}


/* ---------- EVENTS ---------- */
.blog-events {
    padding-bottom: 55px;
}

.event-card {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 14px 12px;
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 72px;
    border-radius: 8px;
    background: var(--tint);
    color: var(--blue);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-transform: uppercase;
}

.event-date strong {
    margin-bottom: 3px;
    font-size: 15px;
    line-height: 1;
}

.event-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
}

.event-info strong {
    margin-bottom: 2px;
    color: var(--navy);
    font-size: var(--fs-base);
}

.event-info > span:not(.tag) {
    display: flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    overflow: hidden;
    color: var(--muted);
    font-size: var(--fs-sm);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-info .icon {
    width: 13px;
    height: 13px;
}

.event-info .tag {
    min-height: 22px;
    margin-top: 5px;
    font-size: var(--fs-xs);
}


/* ---------- RESPONSIVE ---------- */
@media (max-width: 680px) {
    .featured-card {
        grid-template-columns: 1fr;
    }

    .featured-media {
        order: -1;
        min-height: 220px;
    }

    .featured-body {
        padding: 22px;
    }
}
