.is-news-page .article-cover {
    min-height: clamp(300px, 32vw, 430px);
}

.ist-news-board {
    --news-primary: #1b3f97;
    --news-accent: #7437d8;
    --news-text: #17243a;
    --news-muted: #63708a;
    --news-border: #dfe7f5;
    margin: 0 auto;
    padding: clamp(18px, 3vw, 32px);
    border: 1px solid var(--news-border);
    border-radius: 20px;
    background: linear-gradient(180deg, #fff 0%, #f7f9fe 100%);
}

.ist-news-head h2 {
    margin: 0 0 5px;
    color: var(--news-text);
    font-size: clamp(1.65rem, 3vw, 2.15rem);
    font-weight: 650;
}

.ist-news-head p,
.ist-news-results-status {
    color: var(--news-muted);
}

.ist-news-head p {
    margin: 0;
}

.ist-news-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 8px;
}

.ist-news-filters {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

.ist-news-filter-btn,
.ist-news-page-btn,
.ist-news-search-clear,
.ist-news-empty-reset {
    min-width: 44px;
    min-height: 44px;
}

.ist-news-filter-btn {
    padding: 9px 16px;
    border: 1px solid #cad6ee;
    border-radius: 999px;
    background: #fff;
    color: #263b68;
    font: inherit;
    font-size: .88rem;
    font-weight: 550;
    line-height: 1.25;
    white-space: nowrap;
    transition: border-color .18s ease, background-color .18s ease, color .18s ease, transform .18s ease;
}

.ist-news-filter-btn:hover {
    border-color: #8ea6da;
    transform: translateY(-1px);
}

.ist-news-filter-btn.active,
.ist-news-filter-btn[aria-pressed="true"] {
    border-color: transparent;
    background: linear-gradient(135deg, var(--news-primary), var(--news-accent));
    color: #fff;
}

.ist-news-search {
    position: relative;
    flex: 0 1 290px;
    min-width: 220px;
}

.ist-news-search-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    z-index: 1;
    color: #78859d;
    transform: translateY(-50%);
    pointer-events: none;
}

.ist-news-search-input {
    width: 100%;
    min-height: 44px;
    padding: 9px 48px 9px 42px;
    border: 1px solid #cad6ee;
    border-radius: 999px;
    background: #fff;
    color: var(--news-text);
    font: inherit;
    font-size: .92rem;
}

.ist-news-search-clear {
    position: absolute;
    top: 0;
    right: 0;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #63708a;
}

.ist-news-search-clear:hover {
    background: #edf1f8;
    color: #17243a;
}

.ist-news-results-status {
    min-height: 24px;
    margin: 0 0 14px;
    font-size: .9rem;
}

.ist-news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.ist-news-card {
    position: relative;
    overflow: hidden;
    min-width: 0;
    border: 1px solid var(--news-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(23, 36, 58, .04);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.ist-news-card:hover {
    border-color: #c5d3ef;
    box-shadow: 0 14px 30px rgba(23, 36, 58, .1);
    transform: translateY(-3px);
}

.ist-news-card-link {
    display: flex;
    height: 100%;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

.ist-news-card-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: linear-gradient(140deg, #e9edf5, #d7deea);
}

.ist-news-card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.ist-news-card:hover .ist-news-card-thumb {
    transform: scale(1.025);
}

.ist-news-tags {
    position: absolute;
    right: 10px;
    bottom: 9px;
    left: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.ist-news-tag {
    padding: 4px 8px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 999px;
    background: rgba(15, 23, 42, .62);
    color: #fff;
    font-size: .7rem;
    line-height: 1.2;
    backdrop-filter: blur(4px);
}

.ist-news-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 15px 16px 18px;
}

.ist-news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
    color: var(--news-muted);
    font-size: .82rem;
}

.ist-news-title {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 8px;
    color: var(--news-text);
    font-size: 1.08rem;
    font-weight: 650;
    line-height: 1.42;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.ist-news-summary {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: #52617a;
    font-size: .92rem;
    line-height: 1.58;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.ist-news-admin-tools {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    display: flex;
    gap: 7px;
}

.ist-news-admin-chip,
.ist-news-admin-btn {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 999px;
    background: rgba(15, 23, 42, .84);
    color: #fff;
    box-shadow: 0 6px 16px rgba(15, 23, 42, .18);
    backdrop-filter: blur(6px);
}

.ist-news-admin-chip.is-linked { background: rgba(22, 140, 70, .94); }
.ist-news-admin-chip.is-missing { background: rgba(85, 96, 117, .94); }

.ist-news-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.ist-news-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 14px;
    border: 1px solid #cad6ee;
    border-radius: 999px;
    background: #fff;
    color: #27407a;
    font: inherit;
    font-size: .92rem;
    line-height: 1;
    white-space: nowrap;
}

.ist-news-page-btn:hover:not(:disabled) { border-color: #8ea6da; }
.ist-news-page-btn[aria-current="page"] { border-color: transparent; background: var(--news-primary); color: #fff; }
.ist-news-page-btn:disabled { opacity: .48; cursor: not-allowed; }
.ist-news-page-ellipsis { padding: 0 4px; color: #78859d; }

.ist-news-empty {
    padding: 38px 20px;
    border: 1px dashed #c5d3ed;
    border-radius: 14px;
    background: #fbfcff;
    text-align: center;
}

.ist-news-empty h3 { margin: 0 0 6px; color: var(--news-text); font-size: 1.2rem; }
.ist-news-empty p { margin: 0 0 16px; color: var(--news-muted); }
.ist-news-empty-reset { padding: 8px 18px; border: 0; border-radius: 999px; background: var(--news-primary); color: #fff; font: inherit; }

.ist-news-skeleton { min-height: 380px; border-radius: 16px; background: linear-gradient(100deg, #eef2f8 20%, #f8faff 40%, #eef2f8 60%); background-size: 220% 100%; animation: news-shimmer 1.25s infinite linear; }

.ist-news-filter-btn:focus-visible,
.ist-news-search-input:focus-visible,
.ist-news-search-clear:focus-visible,
.ist-news-card-link:focus-visible,
.ist-news-page-btn:focus-visible,
.ist-news-empty-reset:focus-visible,
.ist-news-admin-btn:focus-visible {
    outline: 3px solid #f2b84b;
    outline-offset: 3px;
}

@keyframes news-shimmer { to { background-position-x: -220%; } }

@media (max-width: 991.98px) {
    .ist-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ist-news-toolbar { align-items: stretch; flex-direction: column-reverse; }
    .ist-news-search { flex-basis: auto; width: 100%; min-width: 0; }
}

@media (max-width: 640px) {
    .is-news-page .article-cover { min-height: 240px; padding-block: 42px; }
    .is-news-page .article-cover h1 { font-size: clamp(2rem, 10vw, 2.65rem); }
    .is-news-page .article-content-section { padding-top: 24px; }
    .ist-news-board { padding: 16px; border-radius: 16px; }
    .ist-news-head p { font-size: .92rem; }
    .ist-news-filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 2px 16px 8px; scroll-padding-inline: 16px; scroll-snap-type: x proximity; scrollbar-width: thin; }
    .ist-news-filter-btn { flex: 0 0 auto; scroll-snap-align: start; }
    .ist-news-grid { grid-template-columns: 1fr; gap: 14px; }
    .ist-news-summary { -webkit-line-clamp: 2; }
    .ist-news-pagination { gap: 6px; }
    .ist-news-page-btn { padding-inline: 12px; }
    .ist-news-page-btn.is-edge span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .ist-news-card,
    .ist-news-card-thumb,
    .ist-news-filter-btn { transition: none; }
    .ist-news-skeleton { animation: none; }
}
