/* Estilos para os Cards de Segmentos */
.segments-container {
  width: 100%;
  padding: 20px 0;
}

.segment-card {
  background: #fff;
  border-radius: 20px;
  padding: 30px 20px;
  text-align: center;
  transition: all 0.4s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(18, 76, 15, 0.1);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.segment-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #124c0f, #1a6b14);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.segment-card:hover::before {
  transform: scaleX(1);
}

.segment-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(18, 76, 15, 0.15);
  border-color: #124c0f;
}

.segment-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #124c0f, #1a6b14);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  position: relative;
}

.segment-icon::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #124c0f, #1a6b14);
  opacity: 0;
  transform: scale(1.2);
  transition: all 0.4s ease;
}

.segment-card:hover .segment-icon::after {
  opacity: 0.2;
  transform: scale(1.4);
}

.segment-icon i {
  font-size: 32px;
  color: #fff;
  z-index: 2;
  position: relative;
  transition: all 0.3s ease;
}

.segment-card:hover .segment-icon {
  transform: scale(1.1);
}

.segment-card:hover .segment-icon i {
  transform: scale(1.1);
}

.segment-title {
  font-size: 20px;
  font-weight: 700;
  color: #124c0f;
  margin-bottom: 12px;
  transition: all 0.3s ease;
  line-height: 1.2;
}

.segment-card:hover .segment-title {
  color: #1a6b14;
}

.segment-description {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin: 0;
  transition: all 0.3s ease;
}

.segment-card:hover .segment-description {
  color: #555;
}

/* Responsividade */
@media (max-width: 992px) {
  .segment-card {
    padding: 25px 15px;
    margin-bottom: 20px;
  }

  .segment-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 15px;
  }

  .segment-icon i {
    font-size: 28px;
  }

  .segment-title {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .segment-description {
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .segments-container {
    padding: 15px 0;
  }

  .segment-card {
    padding: 20px 15px;
    border-radius: 15px;
  }

  .segment-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
  }

  .segment-icon i {
    font-size: 24px;
  }

  .segment-title {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .segment-description {
    font-size: 12px;
  }
}

@media (max-width: 576px) {
  .row.g-4 {
    gap: 15px !important;
  }

  .segment-card {
    padding: 18px 12px;
    margin-bottom: 15px;
  }

  .segment-icon {
    width: 55px;
    height: 55px;
    margin-bottom: 12px;
  }

  .segment-icon i {
    font-size: 22px;
  }

  .segment-title {
    font-size: 15px;
    margin-bottom: 6px;
  }

  .segment-description {
    font-size: 11px;
    line-height: 1.4;
  }
}

/* Animação de entrada staggered */
.segment-card {
  opacity: 0;
  animation: slideInUp 0.6s ease forwards;
}

.segment-card:nth-child(1) {
  animation-delay: 0.1s;
}
.segment-card:nth-child(2) {
  animation-delay: 0.2s;
}
.segment-card:nth-child(3) {
  animation-delay: 0.3s;
}
.segment-card:nth-child(4) {
  animation-delay: 0.4s;
}
.segment-card:nth-child(5) {
  animation-delay: 0.5s;
}
.segment-card:nth-child(6) {
  animation-delay: 0.6s;
}
.segment-card:nth-child(7) {
  animation-delay: 0.7s;
}
.segment-card:nth-child(8) {
  animation-delay: 0.8s;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Estados especiais */
.segment-card.featured {
  background: linear-gradient(135deg, #124c0f, #1a6b14);
  color: #fff;
}

.segment-card.featured .segment-title {
  color: #fff;
}

.segment-card.featured .segment-description {
  color: rgba(255, 255, 255, 0.9);
}

.segment-card.featured .segment-icon {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.segment-card.featured:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 50px rgba(18, 76, 15, 0.3);
}
