.story{background-color:#fff;padding:0px 0px;width:750px;border-radius: 5px;font-family:Inter Medium;}
.story.lefticons .text{margin-left:0px;height:350px;border-radius: 3px;}
.story.lefticons .text.full{margin-left:0px;height:inherit!important;}
.story.lefticons .title{margin:0px 0px 15px 0px;text-shadow: 0px 1px 10px rgb(0 0 0 / 100%);letter-spacing: 0.5px;}
.story.lefticons .text{margin-left:0px;height:286px;}
.shadow{position:relative;margin:10px 0px 12px;margin-top:0px;width:780px;}
.shadow:after{position:absolute;z-index:1;left:0;top:100%;width:100%;height:7px;content:"";background-image:-webkit-linear-gradient(top, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0) 100%);background-image:-moz-linear-gradient(top, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0) 100%);background-image:-o-linear-gradient(top, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0) 100%);background-image:-ms-linear-gradient(top, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0) 100%);background-image:linear-gradient(top, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0) 100%);}
.shadow-full{position:relative;margin:10px 0px 0px;margin-top:0px;width:750px;}
.shadow-full:after{position:absolute;z-index:1;left:0;top:100%;width:100%;height:7px;content:"";background-image:-webkit-linear-gradient(top, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0) 100%);background-image:-moz-linear-gradient(top, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0) 100%);background-image:-o-linear-gradient(top, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0) 100%);background-image:-ms-linear-gradient(top, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0) 100%);background-image:linear-gradient(top, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0) 100%);}
.story_info{float:right;margin-right:0;font-size:.92em;}
.grid_1_5{width:22%;}
.storyinfo_link{cursor:pointer;position:relative;padding-left:30px;padding-bottom:1.5em;margin-bottom:1.5em;border-bottom:1px solid #e3e4e6;}
.storyinfo_link > .icon{float:left;margin:2px 0 0 -30px;}
.storyinfo_link .arrow{position:absolute;right:0;top:0;margin:.75em 3px 0 0;width:12px;}
.storyinfo_link .arrow:after, .storyinfo_link .arrow:before{content:"";position:absolute;width:9px;height:1px;background-color:#ae5151;border-radius:2px;-webkit-transition:all ease .3s;transition:all ease .3s;}
.storyinfo_link .arrow:after{margin-left:6px;}
.storyinfo_link.collapsed .arrow:after,
.storyinfo_link.collapsed .arrow:before{background-color:#c7c9cc;}
.storyinfo_link.collapsed .arrow:after{-webkit-transform:rotate(-45deg);transform:rotate(-45deg);}
.storyinfo_link.collapsed .arrow:before{-webkit-transform:rotate(45deg);transform:rotate(45deg);}
.icon{display:inline-block;height:1em;fill:#ae5151;vertical-align:middle;}
.icon-meta_date{width:17px;height:17px;}
.grid_3_5{width:100%;}
.story .text:after{content:"";display:block;clear:both;}
.story .text > img[style*="left"],
.story .text > .highslide img[style*="left"]{margin:4px 20px 20px 0;}
.story .text > img[style*="right"],
.story .text > .highslide img[style*="right"]{margin:4px 0 20px 20px;}
.story .text img{max-width:100%;}
.bg-short{position:absolute;top:0;left:0;width:100%;height:100%;background:linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(20, 30, 40, 1) 90%);}
/*.news-desc{width:50%;float:right;margin-top:20px; color: white;}*/
/*2024 .news-desc{width:50%;float:right; padding-top: 15px; padding-left: 20px; padding-right:20px; color: white; background: rgba(0,0,0,0.5); height: 335px; border-radius: 0px 3px 3px 0px;} */
.news-desc{width:50%;float:right; padding-top: 15px; padding-left: 20px; padding-right:20px; color: white; background: rgba(0,0,0,0.45); height: 271px; border-radius: 0px 3px 3px 0px;backdrop-filter: blur(2px);}
.meta{list-style:none;padding:0 0 0 0px; height: 15px; color: white;}
.meta > li{margin:0 0 .6em 0;}
.meta > li > .icon{float:left;margin:2px 0 0 -30px;}
.meta > li.meta_date a{color:inherit;}
.meta-item{display:inline-block;vertical-align:top;margin:0 10px;}
.text-news{margin-top:10px;}
.story .head .title{margin-top:32;margin-bottom:0;}
.story .head .title > a{display:block;color:inherit;text-decoration:none !important;}
.story .head .title > a:hover{color:#969fa7;-webkit-transition:color ease .2s;transition:color ease .2s;}
.story_left_icons .edit_btn > a{margin-bottom:14px;border-color:#404549;}
.story_icons{position:absolute;top:0;left:0;margin-left:20px;}
.margin_icon {margin-right: 10px;}
.color_black{color: #464646;}
.color_white{color: white}
.short_text_overflow{height:104px;overflow:hidden;text-shadow: 0px 1px 3px rgb(0 0 0 / 70%);color:#f1f1f1;}

/* ============================================
   NEWS SECTION
   ============================================ */

.news-section {
    padding: 3rem 0;
    position: relative;
}

@media (min-width: 1920px) {
    .news-section {
        padding: 5rem 0;
    }
}

.news-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .news-header {
        flex-direction: row;
        align-items: flex-start;
    }
}

@media (min-width: 1920px) {
    .news-header {
        margin-bottom: 1rem;
    }
}

/* News Slider */
.news-slider {
    position: relative;
    margin: 0 auto;
    max-width: 100%;
    overflow: hidden;
    padding: 0 3rem;
}

.news-slider-container {
    overflow: visible;
    border-radius: 1rem;
    position: relative;
    padding: 2.5rem 0; 
}

.news-slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 1.5rem;
}

/* News Card Base */
.news-card {
    flex: 0 0 100%;
    max-width: 100%;
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .news-card {
        flex: 0 0 calc(33.333% - 1rem);
        max-width: calc(33.333% - 1rem);
    }
}

/* Slider Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--foreground);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.slider-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--primary-foreground);
    box-shadow: 0 0 20px rgba(226, 1, 205, 0.4);
}

.slider-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.slider-prev {
    left: -1.5rem;
}

.slider-next {
    right: -1.5rem;
}

@media (max-width: 768px) {
    .slider-prev {
        left: 0.5rem;
    }

    .slider-next {
        right: 0.5rem;
    }
}

/* Slider Dots */
.slider-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.slider-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    width: 1.5rem;
    border-radius: 0.25rem;
    background: var(--primary);
}

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

    .news-slider-track {
        gap: 1rem;
    }
}


/* ============================================
   LASTNEWS PAGE STYLES
   ============================================ */

/* === PAGE LAYOUT === */
.news-page {
  padding: 2rem 0;
  min-height: calc(100vh - 160px);
}

/* === HEADER === */
.lastnews-header {
  padding: 6rem 0 4rem;
  text-align: center;
}

.lastnews-header-content {
  margin-bottom: 0;
}

@media (max-width: 1023px) {
  .lastnews-header {
    padding: 2rem 0 1rem;
  }
}

@media (max-width: 1920px) {
  .lastnews-header {
    padding: 4rem 0 2rem;
  }
}

.lastnews-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.lastnews-title-normal {
  color: var(--foreground);
}

.lastnews-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--muted-foreground);
  margin: 0;
}

/* === NEWS GRID === */
.lastnews-grid-section {
  padding-bottom: 4rem;
}

.lastnews-grid {
  margin: 0 auto;
  max-width: 1400px;
}

/* DLE wraps content in #dle-content, so we apply grid there */
.lastnews-grid #dle-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

/* Pagination stays outside grid */
.lastnews-grid #dle-content .navigation {
  grid-column: 1 / -1;
}

@media (max-width: 768px) {
  .lastnews-grid #dle-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (min-width: 1920px) {
  .lastnews-grid {
    max-width: 1600px;
  }
  
  .lastnews-grid #dle-content {
    gap: 2.5rem;
  }
}

/* === NEWS CARD === */
.lastnews-card-wrapper {
  opacity: 0;
  position: relative;
  z-index: 1;
}

.lastnews-card {
  /* height: 420px; */
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  padding: 0;
  border-radius: var(--radius);
}

.lastnews-card:hover {
  transform: translateY(-4px);
  border-color: rgba(226, 1, 205, 0.3);
  box-shadow: 0 0 20px rgba(226, 1, 205, 0.15);
}

.lastnews-card:hover .lastnews-name a {
  color: var(--primary);
}

/* === NEWS BANNER === */
.lastnews-banner {
  position: relative;
  height: 280px;
  overflow: hidden;
  flex-shrink: 0;
}

.lastnews-banner-link {
  display: block;
  width: 100%;
  height: 100%;
}

.lastnews-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.lastnews-card:hover .lastnews-banner-img {
  transform: scale(1.1);
}

.lastnews-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, var(--background) 100%);
  opacity: 0.8;
}

/* === CATEGORY BADGE === */
.lastnews-category-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.375rem 0.75rem;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-secondary, 8px);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--foreground);
  z-index: 10;
  white-space: nowrap;
}

/* === NEWS CONTENT === */
.lastnews-content {
  padding: 3rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  margin-top: -2rem;
  z-index: 2;
}

/* === NEWS HEADER === */
.lastnews-header-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.lastnews-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  margin: 0;
  line-height: 1.3;
  flex: 1;
  
  /* Ограничиваем до 2 строк */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-clamp: 2;
}

.lastnews-name a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.lastnews-name a:hover {
  color: var(--primary);
}

.lastnews-date {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  flex-shrink: 0;
  font-weight: 500;
  white-space: nowrap;
}

.lastnews-date svg {
  flex-shrink: 0;
}

/* === NEWS DESCRIPTION === */
.lastnews-description {
  color: var(--muted-foreground);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0 0 1rem 0;
  flex: 1;
  
  /* Ограничиваем текст до 3 строк */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-clamp: 3;
  
  /* Минимальная высота для 3 строк */
  min-height: 4rem;
  max-height: 4.5rem;
}

/* === NEWS FOOTER === */
.lastnews-footer {
  display: flex;
  align-items: center;
  /* margin-top: auto; */
  min-height: 1.5rem;
}

/* === DETAILS BUTTON === */
.lastnews-details-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-secondary);
  color: var(--foreground);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
  margin-left: auto;
  white-space: nowrap;
}

.lastnews-details-btn:hover {
  background: rgba(226, 1, 205, 0.1);
  border-color: var(--primary);
  color: var(--primary);
}

.lastnews-details-btn svg {
  transition: transform 0.3s ease;
}

.lastnews-details-btn:hover svg {
  transform: translateX(4px);
}

/* ============================================
   PAGINATION STYLES
   ============================================ */
.lastnews-grid #dle-content .navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 3rem 0 2rem;
  flex-wrap: wrap;
  grid-column: 1 / -1;
}

/* Базовые стили для всех элементов пагинации */
.lastnews-grid #dle-content .navigation a,
.lastnews-grid #dle-content .navigation span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0 0.875rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
}

/* Обычные ссылки страниц - стиль как у .full-server-tag */
.lastnews-grid #dle-content .navigation a {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--foreground);
}

/* Hover эффект - бирюзовый (secondary) как в навбаре */
.lastnews-grid #dle-content .navigation a:hover {
  background: rgba(31, 158, 158, 0.1);
  border-color: var(--secondary);
  color: var(--secondary);
  transform: translateY(-2px);
}

/* Активная страница - розовый (primary) как в навбаре */
.lastnews-grid #dle-content .navigation span:not(.nav_ext) {
  background: rgba(226, 1, 205, 0.15);
  border: 1px solid rgba(226, 1, 205, 0.3);
  color: var(--primary);
  font-weight: 600;
}

/* Активная страница не меняется при hover */
.lastnews-grid #dle-content .navigation span:not(.nav_ext):hover {
  background: rgba(226, 1, 205, 0.15);
  border-color: rgba(226, 1, 205, 0.3);
  color: var(--primary);
  transform: none;
}

/* Многоточие */
.lastnews-grid #dle-content .navigation .nav_ext {
  color: var(--muted-foreground);
  pointer-events: none;
  background: transparent;
  border: none;
  font-weight: 500;
  letter-spacing: 0.1em;
  min-width: auto;
  padding: 0 0.5rem;
}

/* Стрелки навигации (если есть) */
.lastnews-grid #dle-content .navigation a[rel="prev"],
.lastnews-grid #dle-content .navigation a[rel="next"] {
  font-weight: 600;
  padding: 0 1.25rem;
}

/* Первая и последняя страница */
.lastnews-grid #dle-content .navigation a:first-child,
.lastnews-grid #dle-content .navigation a:last-child {
  font-weight: 600;
}

/* Responsive */
@media (max-width: 640px) {
  .lastnews-grid #dle-content .navigation {
    gap: 0.375rem;
    padding: 2rem 0 1.5rem;
  }
  
  .lastnews-grid #dle-content .navigation a,
  .lastnews-grid #dle-content .navigation span {
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.625rem;
    font-size: 0.875rem;
  }
  
  .lastnews-grid #dle-content .navigation a[rel="prev"],
  .lastnews-grid #dle-content .navigation a[rel="next"] {
    padding: 0 1rem;
  }
  
  /* Скрываем некоторые номера страниц на мобильных */
  .lastnews-grid #dle-content .navigation a:nth-child(n+8):nth-last-child(n+4) {
    display: none;
  }
}

/* === ANIMATIONS === */
@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(2rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slide-up {
  animation: slide-up 0.8s ease-out forwards;
  opacity: 0;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .lastnews-header {
    padding: 4rem 0 2rem;
  }
  
  .lastnews-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .lastnews-card {
    height: auto;
    min-height: 380px;
  }
  
  .lastnews-header-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .lastnews-date {
    align-self: flex-end;
  }
}

@media (max-width: 640px) {
  .news-pagination {
    gap: 0.375rem;
  }
  
  .news-pagination a,
  .news-pagination span {
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.5rem;
    font-size: 0.875rem;
  }
  
  .news-pagination a[rel="prev"],
  .news-pagination a[rel="next"] {
    padding: 0 0.75rem;
  }
}

@media (max-width: 480px) {
  .news-page {
    padding: 1rem 0;
  }
  
  .lastnews-header {
    padding: 2rem 0 1rem;
  }
  
  .lastnews-content {
    padding: 0 1rem 1rem;
  }
}

/* === UTILITY CLASSES === */
.text-primary {
  color: var(--primary);
}

.font-semibold {
  font-weight: 600;
}

.text-gradient-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


