.updates-page {
    background: #f8fafc;
    min-height: 100vh;
    margin: 0;
}

.page-topbar {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 18px;
    padding: 14px 18px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}

.page-topbar .back-link {
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.page-topbar .back-link:hover {
    color: #0d6efd;
}

.page-topbar .current-page {
    color: #0f172a;
    font-weight: 600;
}

.section-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.section-card-header.compact-header {
    padding: 0.5rem 1rem 0.35rem;
    border-bottom: 1px solid #eef2f7;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.section-card-header.compact-header h2 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: #0d6efd;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    line-height: 1.2;
}

.section-card-header.compact-header h2 i {
    font-size: 1.05rem;
}

.section-card-body {
    padding: 0.95rem 1.25rem 1.25rem;
}

.compact-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 0;
    padding: 0;
    border-bottom: none;
}

.compact-tabs .nav-item {
    margin: 0;
}

.compact-tabs .nav-link {
    border: 1px solid #dbe7f3;
    background: #ffffff;
    color: #64748b;
    border-radius: 999px;
    padding: 0.52rem 1rem;
    font-weight: 600;
    font-size: 0.93rem;
    line-height: 1.2;
    transition: all 0.2s ease;
}

.compact-tabs .nav-link:hover {
    color: #0d6efd;
    background: #f4f9ff;
    border-color: #cfe2ff;
}

.compact-tabs .nav-link.active {
    background: #0d6efd;
    color: #ffffff;
    border-color: #0d6efd;
}

.tab-content,
.tab-pane {
    margin: 0;
    padding: 0;
}

.updates-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.update-card {
    display: flex;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem;
    background: #fbfdff;
    border: 1px solid #e8eef5;
    border-radius: 18px;
    transition: all 0.25s ease;
}

.update-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.update-date {
    min-width: 95px;
    border-radius: 16px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 0.6rem;
    text-align: center;
    font-weight: 700;
    line-height: 1.1;
}

.update-date-primary {
    background: #0d6efd;
}

.update-date-warning {
    background: #f4b400;
}

.update-date-success {
    background: #16a34a;
}

.update-date .day {
    font-size: 1.55rem;
    margin-bottom: 0.2rem;
}

.update-date .month {
    font-size: 0.95rem;
    letter-spacing: 0.4px;
}

.update-date .year {
    font-size: 0.9rem;
    margin-top: 0.15rem;
}

.update-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.update-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 0.7rem;
}

.badge-primary {
    background: #eff6ff;
    color: #0d6efd;
    border: 1px solid #cfe2ff;
}

.badge-warning {
    background: #fff8e1;
    color: #c58a00;
    border: 1px solid #fde68a;
}

.badge-success {
    background: #ecfdf3;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.update-title {
    margin: 0 0 0.45rem 0;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
}

.update-title a {
    color: #0f172a;
    text-decoration: none;
}

.update-title a:hover {
    color: #0d6efd;
}

.update-description {
    margin: 0;
    color: #475569;
    line-height: 1.7;
    font-size: 0.96rem;
}

@media (max-width: 768px) {
    .updates-page {
        padding-top: 1rem;
    }

    .page-topbar {
        padding: 12px 14px;
        border-radius: 16px;
    }

    .section-card-header.compact-header {
        padding: 0.45rem 0.9rem 0.3rem;
        gap: 0.25rem;
    }

    .section-card-header.compact-header h2 {
        font-size: 1.15rem;
    }

    .section-card-body {
        padding: 0.85rem 1rem 1rem;
    }

    .compact-tabs {
        gap: 0.45rem;
    }

    .compact-tabs .nav-link {
        font-size: 0.9rem;
        padding: 0.5rem 0.9rem;
    }

    .update-card {
        flex-direction: column;
        gap: 0.85rem;
    }

    .update-date {
        min-width: auto;
        width: 100%;
        border-radius: 14px;
        padding: 0.75rem;
    }

    .update-date .day {
        font-size: 1.3rem;
    }

    .update-title {
        font-size: 1rem;
    }
}