/*  */
/* :root {
  --glass-bg: rgba(255,255,255,0.30);
  --glass-bg-strong: rgba(255,255,255,0.42);
  --glass-border: rgba(255,255,255,0.45);
  --glass-shadow: 0 8px 28px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.45);
}
[data-theme="dark"] {
  --glass-bg: rgba(20,27,46,0.34);
  --glass-bg-strong: rgba(20,27,46,0.46);
  --glass-border: rgba(255,255,255,0.16);
  --glass-shadow: 0 10px 30px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.12);
}

.news-block{
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(5px) saturate(160%);
  backdrop-filter: blur(5px) saturate(160%);
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.news-carousel {
  position: relative;
  padding: 0 44px;
  background: transparent;
  border: none;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.news-viewport {
  overflow: hidden;
  border-top: none;
  border-bottom: none;
} */
/*  */


.news-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.04);
  overflow: hidden;
}

.news-carousel {
  position: relative;
  padding: 0 44px;
}

.news-viewport {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-news {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
  /* align-items: start; */
}

.news-header {
  padding: 14px 16px 6px 16px;
}

.news-header h2 {
  margin: 0;
}

.news-track {
  display: flex;
  will-change: transform;
  transition: transform 420ms ease;
}

.news-item {
  min-width: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
}

.news-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

.news-desc {
  padding: 5px 2px 5px 2px;
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--text);
}

.news-time {
  color: var(--primary);
  font-size: 0.9rem;
  padding: 0;
  margin: 2px 0 0 0;
  text-align: right;
}

.news-nav {
  position: absolute;
  top: 35%;
  transform: translateY(-35%);
  width: 25px;
  height: 30px;
  border-radius: 8px;
  border: transparent;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  display: grid;
  place-items: center;
  line-height: 1;
  transition: background 150ms ease, transform 150ms ease, border-color 150ms ease;
}

.news-nav:hover {
  color: var(--accent);
}

.news-nav.prev { 
  left: 15px; 
}

.news-nav.next { 
  right: 15px; 
}

.news-nav.prev:hover {
  border-right: none;
}

.news-nav.next:hover {
  border-left: none;
}

.news-nav .chev {
  display: inline-block;
  --chev-offset: -3px;
  transform: translateY(var(--chev-offset));
  line-height: 1;
  pointer-events: none;
  font-size:2.5rem;
}

.news-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 10px 12px 14px 12px;
}

.news-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--primary);
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.news-dot.active {
  background: var(--primary);
}

.news-dot:hover {
  border: var(--accent);
  background: var(--accent);
}

.about-news {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 18px;
  align-items: stretch;
  /* align-items: start; */
}

.about-news > .card,
.about-news > .news-block {
  display: flex;
  flex-direction: column;
  height: 100%;
  /* height: auto; */
}

.news-carousel {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  position: relative;
  padding-bottom: 10px
}

.news-viewport {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.news-track {
  display: flex;
  height: 100%;
  will-change: transform;
  transition: transform 420ms ease;
}

.news-item {
  min-width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.about-news > .card {
  padding: 20px;
  box-sizing: border-box;
}

.about-news > .card .about-block p,
.about-news > .card p {
  margin: 0;
  font-size: 1rem;
  margin-top: auto;
  margin-bottom: auto;
  line-height: 1.5;
}

.about-block h2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.about-block h2 a {
  margin-left: 12px;
  font-size: 1.3rem;
  white-space: nowrap;
}

.about-block ul {
  list-style: none;
  padding-left: 0 !important;
  margin: 0 5px 0 5px;
}

.about-block ul li {
  margin-top: 5px;
}

.about-block ul li a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  width: 100%;
}

.about-block ul li a .news-title-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.about-block ul li a .news-date {
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 980px) {
  .about-news {
    grid-template-columns: 1fr;
  }
  .news-carousel {
    padding: 0 10px;
  }
  .news-img {
    height: 100%;
    max-height: 400px;
  }
  .news-nav {
    display: none;
  }
}

@media (max-width: 640px) {
  .news-img {
    height: 100%;
    max-height: 300px;
  }
}

@media (max-width: 480px) {
  .news-img {
    max-height: 200px;
  }
}