/* Bendri stiliai */
.subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* Filtravimo forma */
.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    background-color: var(--bg-surface);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.filter-group {
    flex: 1 1 220px;
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-size: 0.95rem;
    margin-bottom: 6px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
}

.filter-group label i {
    color: var(--text-accent);
}

.filter-group input, .filter-group select {
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.filter-group input:focus, .filter-group select:focus {
    border-color: var(--accent);
    outline: none;
}

.filter-form button {
    align-self: flex-end;
    padding: 10px 20px;
    background-color: var(--accent);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 1rem;
}

.filter-form button:hover {
    background-color: var(--hover-bg);
}

/* Naujienų grid (sąrašas) */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.news-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.news-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.news-header .type-icon {
    font-size: 1.5rem;
    color: var(--text-accent);
    flex-shrink: 0;
}

.news-title-link {
    text-decoration: none;
    flex-grow: 1;
}

.news-header h3 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--text-primary);
    transition: color 0.2s;
}

.news-title-link:hover h3 {
    color: var(--text-accent);
}

.type-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    background-color: var(--bg-surface);
    padding: 4px 8px;
    border-radius: 20px;
    white-space: nowrap;
}

.news-content-preview {
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.7;
    flex-grow: 1;
    margin-bottom: 15px;
}

.news-card-media {
    display: block;
    margin: 0 0 17px;
    overflow: hidden;
    border-radius: 9px;
    border: 1px solid var(--border-color);
}

.news-card-media img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.32s ease;
}

.news-card:hover .news-card-media img {
    transform: scale(1.025);
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.news-footer span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-footer i {
    font-size: 0.9rem;
}

/* Puslapiavimas */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    font-size: 1rem;
}

.pagination a {
    padding: 10px 15px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    text-decoration: none;
    color: var(--text-primary);
    transition: background-color 0.2s, color 0.2s;
}

.pagination a:hover {
    background-color: var(--hover-bg);
    color: var(--text-accent);
}

.pagination a.active {
    background-color: var(--accent);
    color: white;
    border-color: var(--accent);
}

.pagination .prev, .pagination .next {
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Vienos naujienos puslapis */
.single-news-content {
    background-color: var(--bg-secondary);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.news-rich {
    color: var(--text-primary);
}

.news-rich h2,
.news-rich h3,
.news-rich h4 {
    margin: 1.65em 0 0.55em;
    line-height: 1.25;
    color: var(--text-primary);
}

.news-rich h2:first-child,
.news-rich h3:first-child {
    margin-top: 0;
}

.news-rich p {
    margin: 0 0 1.1em;
}

.news-rich ul,
.news-rich ol {
    margin: 0 0 1.3em;
    padding-left: 1.6em;
}

.news-rich li {
    margin-bottom: 0.45em;
}

.news-rich blockquote {
    margin: 1.5em 0;
    padding: 16px 22px;
    border-left: 4px solid var(--accent-purple);
    border-radius: 0 10px 10px 0;
    background: rgba(147, 112, 219, 0.1);
    color: var(--text-secondary);
}

.news-rich hr {
    margin: 2em 0;
    border-top-color: rgba(147, 112, 219, 0.35);
}

.news-rich a {
    color: var(--accent-blue);
    font-weight: 500;
}

.news-image {
    margin: 1.8em 0;
    text-align: center;
}

.news-inline-image {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 680px;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.news-image figcaption {
    margin-top: 9px;
    color: var(--text-secondary);
    font-size: 0.88em;
}

.news-style-highlight {
    padding: 24px 26px;
    border-left: 4px solid var(--accent-purple);
    border-radius: 12px;
    background: linear-gradient(130deg, rgba(147, 112, 219, 0.12), transparent 46%);
}

.news-style-announcement {
    padding: 26px;
    border-top: 4px solid var(--accent-blue);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(0, 123, 255, 0.12), transparent 34%);
}

.news-style-release {
    padding: 26px;
    border-top: 4px solid var(--accent-green);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(40, 167, 69, 0.12), transparent 34%);
}

.back-btn {
    display: inline-block;
    margin-bottom: 20px;
}

/* Šviesios temos koregavimas */
.light-theme .news-card {
    background-color: #f9f9f9;
    border-color: #e0e0e0;
}

.light-theme .filter-form {
    background-color: #fff;
    border-color: #e0e0e0;
}

.light-theme .news-header {
    border-bottom-color: #e0e0e0;
}

.light-theme .news-footer {
    border-top-color: #e0e0e0;
}

.light-theme .type-label {
    background-color: #f0f0f0;
}

.light-theme .single-news-content {
    background-color: #f9f9f9;
    border-color: #e0e0e0;
}

/* Viešos naujienų skilties pateikimas */
.news-public-page {
    position: relative;
    overflow: hidden;
    padding: clamp(24px, 4vw, 42px);
}

.news-public-page::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: -190px;
    right: -180px;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(147, 112, 219, 0.15), transparent 67%);
    pointer-events: none;
}

.news-public-page > * {
    position: relative;
    z-index: 1;
}

.news-landing-header {
    max-width: 720px;
    margin-bottom: 34px;
}

.news-section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 13px;
    margin-bottom: 17px;
    border: 1px solid rgba(147, 112, 219, 0.34);
    border-radius: 999px;
    color: #cbb9f4;
    background: rgba(147, 112, 219, 0.1);
    font-size: 0.83rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.news-landing-header h1 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 4vw, 2.7rem);
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.news-landing-header .subtitle {
    max-width: 600px;
    margin: 0;
}

.news-list-page .filter-form {
    padding: 19px;
    margin-bottom: 33px;
    border-radius: 15px;
    background: rgba(30, 30, 30, 0.72);
    backdrop-filter: blur(7px);
}

.news-list-page .filter-group input,
.news-list-page .filter-group select {
    margin-bottom: 0;
    border-radius: 9px;
}

.news-list-page .filter-form button {
    border-radius: 9px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
}

.news-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 315px), 1fr));
    gap: 23px;
    align-items: start;
}

.news-card {
    --news-tone: #b6bdca;
    --news-tone-rgb: 182, 189, 202;
    position: relative;
    padding: 21px 23px 20px;
    border-radius: 17px;
    border-color: rgba(var(--news-tone-rgb), 0.22);
    background: linear-gradient(160deg, rgba(var(--news-tone-rgb), 0.075), rgba(30, 30, 30, 0.96) 35%);
    box-shadow: 0 13px 33px rgba(0, 0, 0, 0.14);
}

.news-card:hover {
    border-color: rgba(var(--news-tone-rgb), 0.55);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.3), 0 0 25px rgba(var(--news-tone-rgb), 0.1);
}

.news-card-style-standard {
    --news-tone: #b6bdca;
    --news-tone-rgb: 182, 189, 202;
}

.news-card-style-highlight {
    --news-tone: var(--accent-purple);
    --news-tone-rgb: 147, 112, 219;
}

.news-card-style-announcement {
    --news-tone: var(--accent-blue);
    --news-tone-rgb: 0, 123, 255;
}

.news-card-style-release {
    --news-tone: var(--accent-green);
    --news-tone-rgb: 40, 167, 69;
}

.news-card-accent {
    position: absolute;
    top: 0;
    left: 22px;
    right: 22px;
    height: 3px;
    border-radius: 0 0 8px 8px;
    background: linear-gradient(90deg, var(--news-tone), rgba(var(--news-tone-rgb), 0.08));
    box-shadow: 0 0 17px rgba(var(--news-tone-rgb), 0.42);
}

.news-card-topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin: 10px 0 19px;
}

.news-card .type-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 10px;
    color: var(--news-tone);
    border: 1px solid rgba(var(--news-tone-rgb), 0.28);
    background: rgba(var(--news-tone-rgb), 0.09);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.news-date {
    color: var(--text-secondary);
    font-size: 0.78rem;
    white-space: nowrap;
}

.news-card-media {
    margin: 0 -23px 19px;
    border: 0;
    border-radius: 0;
}

.news-card-media img {
    height: 196px;
}

.news-title-link {
    display: block;
    margin-bottom: 11px;
}

.news-card .news-title {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.34rem;
    line-height: 1.28;
    letter-spacing: -0.018em;
    transition: color 0.2s ease;
}

.news-title-link:hover .news-title {
    color: var(--news-tone);
}

.news-content-preview {
    margin: 0 0 20px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.62;
}

.news-footer {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 11px 16px;
    padding-top: 15px;
    border-top-color: rgba(var(--news-tone-rgb), 0.18);
}

.news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    color: var(--news-tone);
    font-weight: 700;
}

.news-read-more:hover i {
    transform: translateX(3px);
}

.news-read-more i {
    transition: transform 0.2s ease;
}

/* Atskiros naujienos puslapis */
.news-detail-page {
    max-width: 940px;
    margin-left: auto;
    margin-right: auto;
}

.news-back-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 24px;
    color: var(--text-secondary);
    font-weight: 600;
}

.news-back-link:hover {
    color: var(--text-primary);
}

.news-article {
    --news-tone: #b6bdca;
    --news-tone-rgb: 182, 189, 202;
}

.news-article-style-highlight {
    --news-tone: var(--accent-purple);
    --news-tone-rgb: 147, 112, 219;
}

.news-article-style-announcement {
    --news-tone: var(--accent-blue);
    --news-tone-rgb: 0, 123, 255;
}

.news-article-style-release {
    --news-tone: var(--accent-green);
    --news-tone-rgb: 40, 167, 69;
}

.news-article-header {
    position: relative;
    overflow: hidden;
    padding: clamp(25px, 5vw, 42px);
    margin-bottom: 19px;
    border: 1px solid rgba(var(--news-tone-rgb), 0.25);
    border-radius: 18px;
    background:
        radial-gradient(circle at 100% 0%, rgba(var(--news-tone-rgb), 0.22), transparent 45%),
        linear-gradient(135deg, rgba(var(--news-tone-rgb), 0.1), rgba(30, 30, 30, 0.94) 42%);
}

.news-article-header::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--news-tone), rgba(var(--news-tone-rgb), 0.12));
    box-shadow: 0 0 24px rgba(var(--news-tone-rgb), 0.55);
}

.news-kind {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--news-tone);
    border: 1px solid rgba(var(--news-tone-rgb), 0.3);
    background: rgba(var(--news-tone-rgb), 0.1);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.news-article-header h1 {
    max-width: 760px;
    margin: 0 0 22px;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.12;
    letter-spacing: -0.045em;
}

.news-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
    color: var(--text-secondary);
    font-size: 0.91rem;
}

.news-article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.news-article-meta i {
    color: var(--news-tone);
}

.news-detail-page .single-news-content {
    padding: clamp(22px, 4vw, 36px);
    border-radius: 18px;
    border-color: rgba(var(--news-tone-rgb), 0.19);
    background: rgba(30, 30, 30, 0.75);
}

.news-detail-page .news-rich {
    max-width: 770px;
    margin: 0 auto;
}

html.light-theme .news-section-kicker {
    color: var(--accent-purple);
}

html.light-theme .news-card {
    background: linear-gradient(160deg, rgba(var(--news-tone-rgb), 0.075), #fff 37%);
}

html.light-theme .news-list-page .filter-form,
html.light-theme .news-detail-page .single-news-content {
    background: #fff;
}

html.light-theme .news-article-header {
    background:
        radial-gradient(circle at 100% 0%, rgba(var(--news-tone-rgb), 0.15), transparent 46%),
        linear-gradient(135deg, rgba(var(--news-tone-rgb), 0.07), #fff 43%);
}

@media (max-width: 650px) {
    .news-public-page {
        padding: 20px 16px;
    }

    .news-card {
        padding-left: 18px;
        padding-right: 18px;
    }

    .news-card-accent {
        left: 18px;
        right: 18px;
    }

    .news-card-media {
        margin-left: -18px;
        margin-right: -18px;
    }

    .news-card-topline {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
    }

    .news-read-more {
        flex-basis: 100%;
        margin-left: 0;
    }
}
.news-rich{overflow-wrap:anywhere;line-height:1.75}.news-rich pre{overflow:auto;white-space:pre;padding:16px;border-radius:10px;background:var(--card-bg-secondary,#171b19);max-width:100%}.news-rich code{font-family:ui-monospace,Consolas,monospace}.news-rich img{max-width:100%;height:auto}.news-detail-page .news-article{min-width:0}.news-detail-page .single-news-content{font-size:clamp(1rem,.95rem + .2vw,1.125rem)}
