/* Product Updates / News page styling */

.news-section {
    padding: 48px 0 96px;
}

.news-container {
    max-width: 860px;
    margin: 0 auto;
}

.news-crumbs {
    display: flex;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 20px;
}

.news-crumbs a {
    color: var(--indigo);
    text-decoration: none;
    transition: color 0.15s ease;
}

.news-crumbs a:hover {
    color: var(--indigo-d);
    text-decoration: underline;
}

.news-header {
    position: static !important;
    margin-bottom: 40px;
}

.news-header h1 {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 0 0 12px;
}

.news-intro {
    font-size: 16.5px;
    line-height: 1.6;
    color: var(--muted);
    margin: 0;
    max-width: 640px;
}

/* Month header block */
.news-month-wrap {
    margin: 40px 0 24px;
}

.news-month-wrap:first-of-type {
    margin-top: 16px;
}

.news-month-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--lav);
    color: var(--indigo-d);
    font-size: 14.5px;
    font-weight: 800;
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid rgba(79, 70, 229, 0.18);
    box-shadow: var(--shadow-sm);
    letter-spacing: -0.01em;
}

/* News Item Layout */
.news-item {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 28px;
    align-items: start;
}

.news-item--no-cover {
    grid-template-columns: 1fr;
}

.news-item__cover {
    position: relative;
    border-radius: var(--r);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--lav-2);
    box-shadow: var(--shadow-sm);
    aspect-ratio: 16/10;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-item__cover:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.news-item__cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-item__body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.news-item__title {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -0.015em;
    color: var(--ink);
    margin: 0 0 12px;
}

.news-item__text {
    font-size: 15px;
    line-height: 1.65;
    color: var(--ink-2);
    word-break: break-word;
}

.news-item__text p {
    margin: 0 0 12px;
}

.news-item__text p:last-child {
    margin-bottom: 0;
}

.news-item__text a {
    color: var(--indigo);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.15s ease;
}

.news-item__text a:hover {
    color: var(--indigo-d);
}

.news-item__text ul,
.news-item__text ol {
    margin: 0 0 12px;
    padding-left: 1.4em;
}

.news-item__text li {
    margin-bottom: 4px;
}

.news-item__text img {
    max-width: 100%;
    height: auto;
    border-radius: var(--r);
    margin: 10px 0;
    border: 1px solid var(--line);
}

.news-item__text code {
    background: var(--lav-2);
    color: var(--indigo-d);
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 0.9em;
}

.news-item__text pre {
    background: var(--lav-2);
    padding: 12px 16px;
    border-radius: var(--r);
    overflow: auto;
    font-size: 13px;
    margin: 10px 0;
}

.news-item__footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 14px;
}

.news-item__date {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* User-defined separator */
.news-divider {
    border: none;
    border-top: 2px dashed var(--indigo-d);
    margin: 32px 0;
}

/* Empty state */
.news-empty {
    text-align: center;
    padding: 64px 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
}

.news-empty__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--lav);
    color: var(--indigo);
    margin-bottom: 16px;
}

.news-empty__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 6px;
}

.news-empty__text {
    font-size: 14px;
    color: var(--muted);
    margin: 0;
}

/* Pagination */
.news-pagination {
    margin-top: 48px;
    display: flex;
    justify-content: center;
}

.news-pagination .pagination {
    display: inline-flex;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
}

.news-pagination .page-item .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ink-2);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r);
    text-decoration: none;
    transition: all 0.15s ease;
}

.news-pagination .page-item .page-link:hover {
    background: var(--lav-2);
    border-color: var(--indigo);
    color: var(--indigo);
}

.news-pagination .page-item.active .page-link {
    background: var(--indigo);
    border-color: var(--indigo);
    color: #fff;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
}

.news-pagination .page-item.disabled .page-link {
    opacity: 0.5;
    pointer-events: none;
    background: var(--lav-2);
}

/* Responsive */
@media (max-width: 768px) {
    .news-section {
        padding: 32px 0 64px;
    }

    .news-header h1 {
        font-size: 28px;
    }

    .news-intro {
        font-size: 15px;
    }

    .news-item {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .news-item__cover {
        max-width: 100%;
        aspect-ratio: 16/9;
    }

    .news-item__title {
        font-size: 20px;
    }
}
