.updates-hero {
    padding: 100px 0 76px;
    color: #fff;
    background:
        linear-gradient(120deg, rgba(0, 47, 39, 0.94), rgba(0, 77, 64, 0.78)),
        url("https://images.unsplash.com/photo-1523575708161-ad0fc2a9b951?auto=format&fit=crop&w=1950&q=80") center/cover;
}

.updates-hero h1 {
    color: #fff;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 700;
}

.updates-hero p {
    max-width: 720px;
    color: rgba(255,255,255,0.84);
}

.updates-demo-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid rgba(255,255,255,0.34);
    border-radius: 999px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 0.85rem;
}

.updates-filter-panel {
    position: relative;
    z-index: 1;
    margin-top: -32px;
    padding: 24px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.updates-filter-panel .form-label {
    color: #263b37;
    font-size: 0.86rem;
    font-weight: 600;
}

.updates-result-count {
    color: #65736f;
    font-size: 0.9rem;
}

.update-card {
    overflow: hidden;
    border: 1px solid #e8eeeb;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.update-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0, 77, 64, 0.12);
}

.update-card-image {
    display: block;
    height: 220px;
    overflow: hidden;
    background: #e9f1ee;
}

.update-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.update-card:hover .update-card-image img {
    transform: scale(1.04);
}

.update-card-content {
    display: flex;
    flex-direction: column;
    height: calc(100% - 220px);
    padding: 24px;
}

.update-category,
.update-status {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.update-category-news { background: #e7f3ef; color: #00594b; }
.update-category-events { background: #fff0e4; color: #a74b00; }
.update-category-projects { background: #e9efff; color: #304c9b; }
.update-category-activities { background: #f0eafa; color: #644399; }

.update-status {
    background: #f2f4f3;
    color: #4a5b56;
}

.update-date {
    margin-bottom: 10px;
    color: #6b7773;
    font-size: 0.83rem;
}

.update-card h2 {
    margin-bottom: 12px;
    font-size: 1.18rem;
    line-height: 1.45;
}

.update-card h2 a {
    color: var(--dark);
    text-decoration: none;
}

.update-card h2 a:hover { color: var(--primary); }

.update-excerpt {
    margin-bottom: 22px;
    color: #66716e;
    font-size: 0.92rem;
    line-height: 1.7;
}

.update-read-more {
    margin-top: auto;
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.update-read-more:hover { color: var(--secondary); }

.updates-empty {
    padding: 56px 24px;
    border: 1px dashed #cbd7d2;
    border-radius: 16px;
    color: #65736f;
    text-align: center;
}

.update-detail {
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.update-detail-image {
    display: block;
    width: 100%;
    max-height: 520px;
    object-fit: cover;
}

.update-detail-content {
    padding: clamp(24px, 5vw, 56px);
}

.update-detail-content h1 {
    margin: 18px 0;
    color: var(--dark);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.25;
}

.update-detail-meta {
    margin: 24px 0;
    padding: 18px 20px;
    border-radius: 12px;
    background: #f5f8f6;
}

.update-detail-meta p:last-child { margin-bottom: 0; }
.update-detail-body { color: #4e5d58; line-height: 1.85; }
.update-detail-body p { margin-bottom: 20px; }

@media (max-width: 767.98px) {
    .updates-hero { padding: 78px 0 62px; }
    .updates-filter-panel { margin-top: -24px; padding: 18px; }
    .update-card-image { height: 205px; }
    .update-card-content { height: calc(100% - 205px); }
}
