/* Seção Convênios */
.convenios-section {
  background: linear-gradient(135deg, #1a2a3a 0%, #2c3e50 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.convenios-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.convenios-container {
  max-width: 1270px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.convenios-header {
  text-align: center;
  margin-bottom: 60px;
}

.convenios-icon {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.convenios-favicon {
  width: 50px;
  height: 50px;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
  transition: transform 0.3s ease;
}

.convenios-favicon:hover {
  transform: scale(1.1);
}

.convenios-title {
  color: #ffffff;
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.convenios-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
  align-items: center;
}

.convenio-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80px;
  transition: transform 0.3s ease;
}

.convenio-logo:hover {
  transform: translateY(-5px);
}

.convenio-image {
  max-width: 120px;
  max-height: 60px;
  width: auto;
  height: auto;
  filter: brightness(0) invert(1);
  transition: all 0.3s ease;
  object-fit: contain;
}

.convenio-logo:hover .convenio-image {
  filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(74, 158, 255, 0.5));
  transform: scale(1.05);
}

.convenios-cta {
  text-align: center;
}

.convenios-question {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 20px;
  opacity: 0.9;
}

.convenios-button {
  background: linear-gradient(135deg, #4a9eff 0%, #357abd 100%);
  border: none;
  border-radius: 8px;
  padding: 15px 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(74, 158, 255, 0.3);
}

.convenios-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 158, 255, 0.4);
}

.convenios-button a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
}

/* Responsividade */
@media (max-width: 768px) {
  .convenios-section {
    padding: 60px 0;
  }

  .convenios-title {
    font-size: 2rem;
  }

  .convenios-logos {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
  }

  .convenio-logo {
    min-height: 60px;
  }

  .convenio-image {
    max-width: 100px;
    max-height: 50px;
  }
}

@media (max-width: 480px) {
  .convenios-logos {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  /* Centralizar o último ícone de convênio em mobile */
  .convenios-logos .convenio-logo:last-child {
    grid-column: 1 / -1;
    justify-self: center;
  }

  .convenios-title {
    font-size: 1.8rem;
  }

  .convenio-image {
    max-width: 80px;
    max-height: 40px;
  }

  .convenios-button {
    padding: 12px 25px;
  }

  .convenios-button a {
    font-size: 0.9rem;
  }
}
