/* Контейнер секции слайдера */
.post-slider-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
  position: relative;
}

/* Стили для заголовка слайдера */
.category-slider-section .section-title,
.section-header .section-title,
h2.section-title,
.category-slider-section h2,
.section-header h2,
div.container div.section-header h2.section-title {
  color: var(--color-text) !important;
  font-size: var(--h2-size) !important;
  font-family: 'Noto Sans', var(--font-main) !important;
  font-weight: 900 !important;
  letter-spacing: -0.02em !important;
  position: relative !important;
  padding: 0 0 40px 0 !important;
  margin: 1.5rem 0 40px 0 !important;
  direction: ltr !important;
  text-align: left !important;
  unicode-bidi: normal !important;
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  font-feature-settings: "kern" 1, "liga" 1 !important;
  text-rendering: optimizeLegibility !important;
  text-shadow: none !important;
  background: transparent !important;
}

/* Полоса под заголовком */
.category-slider-section .section-title::after,
.section-header .section-title::after,
h2.section-title::after,
.category-slider-section h2::after,
.section-header h2::after,
div.container div.section-header h2.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 215, 0, 0) 0%, rgba(255, 215, 0, 1) 50%, rgba(255, 215, 0, 0) 100%) !important;
}

/* Убираем before */
.category-slider-section .section-title::before,
.section-header .section-title::before,
h2.section-title::before,
.category-slider-section h2::before,
.section-header h2::before,
div.container div.section-header h2.section-title::before {
  display: none !important;
}

/* Адаптивность для заголовка слайдера */
@media (max-width: 768px) {
  .category-slider-section .section-title,
  .section-header .section-title,
  h2.section-title {
    font-size: 1.3rem !important;
    margin: 1.2rem 0 0.8rem 0 !important;
    padding: 0 0 0.4rem 0 !important;
  }
}

/* Контейнер Swiper с отступом для точек */
.swiper-container {
  padding-bottom: 60px !important;
  position: relative;
  overflow: visible !important;
}

.post-slider-section .swiper-container {
  padding-bottom: 60px !important;
  overflow: visible !important;
}

.post-slider-section {
  overflow: visible !important;
}

/* Переопределяем overflow у самого Swiper */
.post-slider-section .swiper,
.swiper-container .swiper {
  overflow: visible !important;
}

.post-slider-section .swiper-wrapper {
  overflow: visible !important;
}

/* Адаптивность слайдера - Swiper сам управляет размерами */
.swiper-slide {
  flex-shrink: 0;
  box-sizing: border-box;
  height: auto !important;
}

/* Карточка слайдера - темный градиент как в дизайне */
.slider-post-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 360px;
  background: linear-gradient(90deg, var(--color-bg-light) 0%, var(--color-bg-light) 100%);
  border-radius: 12px;
  border: 1px solid rgba(255, 215, 0, 0.2);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  margin-bottom: 20px;
}

.slider-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.2);
  border-color: rgba(255, 215, 0, 0.4);
}

/* Миниатюра: фиксированная высота */
.slider-thumb {
  height: 200px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  padding: 0;
}

.slider-thumb img,
.thumb-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #1A1324;
}

/* Контент карточки */
.slider-content {
  padding: 1.5rem 1.5rem 0.5rem 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.slider-content h3 {
  font-size: var(--h4-size);
  font-family: 'Noto Sans', var(--font-main);
  font-weight: 900;
  margin: 0 0 1rem 0;
  line-height: 1.4;
}

.slider-content h3 a {
  color: var(--color-text) !important;
  text-decoration: none;
  transition: color 0.3s ease;
}

.slider-content h3 a:hover {
  color: #FFC107 !important;
}

/* Текст анонса в карточке */
.slider-content .excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text);
  margin: 0;
}

/* Дата внизу карточки */
.slider-footer {
  padding: 0 1.5rem 1.5rem 1.5rem;
  font-size: 14px;
  font-family: 'Noto Sans', var(--font-main);
  font-weight: 400;
  color: var(--color-text);
  margin-top: auto;
}

/* Точки навигации Swiper */
.swiper-pagination {
  position: absolute !important;
  bottom: 15px !important;
  left: 0 !important;
  right: 0 !important;
  text-align: center !important;
  z-index: 10 !important;
}

.post-slider-section .swiper-pagination {
  bottom: -40px !important;
}

.swiper-pagination-bullet {
  width: 10px !important;
  height: 10px !important;
  background: rgba(255, 255, 255, 0.3) !important;
  opacity: 1 !important;
  margin: 0 5px !important;
  border-radius: 50% !important;
  transition: all 0.3s ease !important;
}

.swiper-pagination-bullet-active {
  background: linear-gradient(90deg, #FFD700 0%, #FFC107 100%) !important;
  width: 24px !important;
  border-radius: 5px !important;
}

.swiper-pagination-bullet:hover {
  background: rgba(255, 255, 255, 0.5) !important;
}

/* Адаптивность карточек */
@media (max-width: 768px) {
  .post-slider-section {
    padding: 1.5rem 1rem;
    overflow: visible !important;
  }
  
  .slider-post-card {
    min-height: auto;
    max-height: none;
  }
  
  .slider-thumb {
    height: 200px;
    flex-shrink: 0;
  }
  
  .slider-content {
    padding: 1rem;
    flex-grow: 0;
  }
  
  .slider-content h3 {
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 0.5rem;
  }
  
  .slider-footer {
    font-size: 13px;
    padding: 0 1rem 1rem 1rem;
  }
  
  .swiper-container {
    overflow: visible !important;
    padding-bottom: 60px !important;
  }
}

@media (max-width: 480px) {
  .post-slider-section {
    padding: 1rem 0.5rem;
  }
  
  .slider-post-card {
    min-height: auto;
    max-height: none;
  }
  
  .slider-thumb {
    height: 180px;
    flex-shrink: 0;
  }
  
  .slider-content {
    padding: 0.8rem;
  }
  
  .slider-content h3 {
    font-size: 15px;
    line-height: 1.3;
    margin-bottom: 0.4rem;
  }
  
  .slider-footer {
    font-size: 12px;
    padding: 0 0.8rem 0.8rem 0.8rem;
  }
}
