/* =============================================================================
   BANKS SECTION - Стили для блока Банки
   ============================================================================= */

/* Основные стили блока */
.itx-banks-section {
  background: #f8f9fa;
  padding: 40px 0;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
}

.itx-banks-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.itx-banks-title {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 30px 0;
  color: #2c3e50;
  font-family: 'pf_dindisplay_proregular', Arial, sans-serif;
}

.itx-banks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Плавные переходы для контейнера */
.itx-banks-grid.transitioning {
  opacity: 0.3;
  transform: translateY(20px) scale(0.98);
  filter: blur(2px);
}

.itx-banks-grid.loading {
  opacity: 0.6;
  pointer-events: none;
  transform: scale(0.99);
}

/* Стили карточек */
.itx-banks-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  height: 100%;
  opacity: 0;
  transform: translateY(30px) scale(0.95);
}

.itx-banks-card.animate-in {
  animation: slideInUpSmooth 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.itx-banks-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Анимация появления карточек */
@keyframes slideInUpSmooth {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    filter: blur(3px);
  }
  50% {
    opacity: 0.7;
    transform: translateY(15px) scale(0.98);
    filter: blur(1px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* Стили изображений */
.itx-banks-section .post-card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.itx-banks-section .post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  filter: brightness(1) saturate(1);
}

.itx-banks-card:hover .post-card-image img {
  transform: scale(1.08);
  filter: brightness(1.1) saturate(1.1);
}

/* Стили контента */
.itx-banks-section .post-card-content {
  padding: 20px;
}

.itx-banks-section .post-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 15px 0;
  font-family: 'pf_dindisplay_proregular', Arial, sans-serif;
}

.itx-banks-section .post-title a {
  color: #2c3e50;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: inline-block;
}

.itx-banks-section .post-title a:hover {
  color: #146eb3;
  transform: translateY(-2px);
  text-shadow: 0 2px 4px rgba(20, 110, 179, 0.2);
}

/* Стили для категорий */
.itx-banks-section .post-category a {
  color: #454242 !important;
  text-decoration: none;
  font-weight: 500;
}

.itx-banks-section .post-category a:hover {
  color: #146eb3 !important;
  text-decoration: underline;
}

/* Пагинация */
.itx-banks-section .pagination-container {
  position: relative;
  padding: 20px 0;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.itx-banks-section .pagination-dots {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
}

.itx-banks-section .pagination-dot {
  width: 8px;
  height: 8px;
  background: rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  opacity: 0;
  animation: fadeInDot 0.6s ease forwards;
  transform: scale(1);
}

/* Анимация появления точек с задержкой */
.itx-banks-section .pagination-dot:nth-child(1) { animation-delay: 0.1s; }
.itx-banks-section .pagination-dot:nth-child(2) { animation-delay: 0.2s; }
.itx-banks-section .pagination-dot:nth-child(3) { animation-delay: 0.3s; }
.itx-banks-section .pagination-dot:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInDot {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.itx-banks-section .pagination-dot:hover {
  background: rgba(0, 0, 0, 0.4);
  transform: scale(1.2);
}

.itx-banks-section .pagination-dot.active {
  background: #F7A600;
  transform: scale(1.3);
  box-shadow: 0 0 0 2px rgba(247, 166, 0, 0.3), 0 0 8px rgba(247, 166, 0, 0.4);
}

.itx-banks-section .pagination-dot.loading {
  background: #F7A600;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1.3);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.7;
  }
}

/* =============================================================================
   АДАПТИВНОСТЬ
   ============================================================================= */

/* Планшеты и маленькие десктопы (до 768px) */
@media (max-width: 768px) {
  .itx-banks-section {
    padding: 30px 0;
  }
  
  .itx-banks-title {
    font-size: 24px;
  }
  
  .itx-banks-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .itx-banks-section .post-card-image {
    height: 180px;
  }
  
  .itx-banks-section .post-card-content {
    padding: 15px;
  }
  
  .itx-banks-section .post-title {
    font-size: 16px;
  }
  
  .itx-banks-section .pagination-container {
    padding: 15px 0;
    gap: 15px;
  }
  
  .itx-banks-section .pagination-dots {
    gap: 16px;
  }
  
  .itx-banks-section .pagination-dot {
    width: 8px;
    height: 8px;
  }
}

/* Мобильные устройства (до 480px) */
@media (max-width: 480px) {
  .itx-banks-section {
    padding: 20px 0;
  }
  
  .itx-banks-title {
    font-size: 20px;
  }
  
  .itx-banks-grid {
    gap: 15px;
    padding: 0 10px;
    max-width: 350px;
    margin: 0 auto;
  }
  
  .itx-banks-section .post-card-image {
    height: 160px;
  }
  
  .itx-banks-section .post-card-content {
    padding: 12px;
  }
  
  .itx-banks-section .post-title {
    font-size: 15px;
  }
  
  .itx-banks-section .pagination-container {
    padding: 12px 0;
    gap: 12px;
  }
  
  .itx-banks-section .pagination-dots {
    gap: 14px;
  }
  
  .itx-banks-section .pagination-dot {
    width: 7px;
    height: 7px;
  }
}

/* Очень маленькие экраны (до 360px) */
@media (max-width: 360px) {
  .itx-banks-section {
    padding: 15px 0;
  }
  
  .itx-banks-grid {
    gap: 12px;
    padding: 0 8px;
    max-width: 320px;
    margin: 0 auto;
  }
  
  .itx-banks-section .post-card-image {
    height: 140px;
  }
  
  .itx-banks-section .post-card-content {
    padding: 10px;
  }
  
  .itx-banks-section .post-title {
    font-size: 14px;
  }
  
  .itx-banks-section .pagination-container {
    padding: 10px 0;
    gap: 10px;
  }
  
  .itx-banks-section .pagination-dots {
    gap: 12px;
  }
  
  .itx-banks-section .pagination-dot {
    width: 6px;
    height: 6px;
  }
}

