/* News pages (list & single) */

/* Shared */
.news-date {
    background: var(--primary-color);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.news-icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.news-icon-circle i {
    font-size: 24px;
}

/* Single news */
.page-header {
    display: flex;
    flex-direction: column;
    justify-content: start;
    gap: 15px;
}

.news-show .page-header .breadcrumb-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.news-show .page-header .breadcrumb-icon i {
    font-size: 20px;
}

.news-show .page-header .news-date {
    align-self: start;
}

.page-header-left .page-title-container {
    margin-bottom: 0;
}

/* Prevent icon from shrinking next to long titles */
.page-header-left .breadcrumb-icon,
.page-header-left .news-icon-circle {
    flex: 0 0 auto;
}

.page-header-left .page-title-container,
.page-header-left .page-title {
    flex: 1 1 auto;
    min-width: 0;
}

/* News list */
.news-list {
    display: block;
}

.news-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    margin-bottom: 12px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
}

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

.news-item .news-icon-circle {
    width: 50px;
    height: 50px;
}

.news-item .news-icon-circle i {
    font-size: 20px;
}

.news-item-content {
    flex: 1;
    min-width: 0;
}

.news-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
}

.news-item-date {
    margin-left: 16px;
    white-space: nowrap;
}

.news-item .news-title {
    margin: 0;
}

.news-item .news-description {
    margin: 4px 0 0 0;
}

/* Dark mode tweaks */
[data-theme="dark"] .news-item {
    background: var(--surface-color);
    border-color: var(--border-color);
}