/* organizers-section.css - обновленная версия */

.organizer-grid {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 40px 30px;
}

.organizer-item {
  flex: 0 0 calc(33.333% - 30px);
  min-width: 280px;
  max-width: 320px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  background-color: transparent;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.organizer-item:hover {
  transform: translateY(-5px);
}

.organizer-logo-wrapper {
  width: 100%;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.organizer-logo-wrapper img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.organizer-item a img {
  max-width: 100%;
  max-height: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6%;
  margin-bottom: 0;
}

.organizer-name {
  margin: 0;
  flex-grow: 1;
  display: flex;
  align-items: center;
  min-height: 80px;
}

.organizer-name a {
  display: block;
  color: var(--primary);
  text-decoration: none;
  line-height: 1.4;
  padding: 0 5px;
  transition: color 0.2s ease;
  width: 100%;
}

.organizer-name a:hover {
  color: var(--primary-light);
}

/* Новые стили для второго ряда */
.second-row-divider {
  width: 100%;
  height: 1px;
  background-color: #e0e0e0;
  margin: 40px auto;
  max-width: 1200px;
}

.second-organizer-grid {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 20px;
}

.second-organizer-item {
  flex: 0 0 calc(50% - 15px);
  min-width: 280px;
  max-width: 500px;
  display: flex;
  align-items: center;
  padding: 20px;
  background-color: transparent;
  border-radius: 8px;
  transition: transform 0.3s ease;
  gap: 20px;
}

.second-organizer-item:hover {
  transform: translateY(-5px);
}

.sub-organizer-logo-wrapper {
  flex: 0 0 auto;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sub-organizer-logo-wrapper img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6%;
}

.sub-organizer-name {
  margin: 0;
  color: var(--primary);
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.2s ease;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.sub-organizer-name a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.sub-organizer-name a:hover {
  color: var(--primary-light);
}

/* Адаптивность для мобильной версии */
@media (max-width: 768px) {
  .organizer-item,
  .second-organizer-item {
    flex: 0 0 100%;
    max-width: 100%;
    min-width: 250px;
  }

  .organizer-grid,
  .second-organizer-grid {
    gap: 30px;
  }

  .second-row-divider {
    margin: 30px auto;
  }

  .organizer-logo-wrapper,
  .sub-organizer-logo-wrapper {
    height: 120px;
    margin-bottom: 15px;
  }

  .organizer-name,
  .sub-organizer-name {
    min-height: 50px;
  }
}

@media (max-width: 480px) {
  .organizer-item,
  .second-organizer-item {
    padding: 15px;
    flex-direction: column;
    min-width: 200px;
  }

  .organizer-logo-wrapper,
  .sub-organizer-logo-wrapper {
    height: 100px;
    margin-bottom: 10px;
  }
}
