:root {
  --primary-color: #0b1d3a; /* Azul marinho */
  --accent-color: #2ecc71;  /* Verde check */
  --text-light: #ffffff;
}

/* Navbar */
.custom-navbar {
  background-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.custom-navbar .nav-link:hover {
  color: var(--accent-color) !important;
  transition: 0.3s;
}
.logo {
  height: 40px;
  width: auto;
}

/* Hero Banner */
.hero {
  background: linear-gradient(rgba(11,29,58,0.8), rgba(11,29,58,0.8)), url('https://policialaprovado.com.br/img/banner.jpg') center/cover no-repeat;
  min-height: 60vh;
}
.btn-hero {
  background-color: var(--accent-color);
  border: none;
  padding: 12px 24px;
  font-weight: bold;
  border-radius: 8px;
}
.btn-hero:hover {
  background-color: #27ae60;
}

/* Cards Destaques */
.card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease-in-out;
}
.card:hover {
  transform: translateY(-5px);
}
.card-title {
  color: var(--primary-color);
  font-weight: bold;
  font-size: 20px;
}
.btn-primary {
  background-color: var(--primary-color);
  border: none;
}
.btn-primary:hover {
  background-color: var(--accent-color);
}

/* Timeline base */
.timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  gap: 20px;
  flex-wrap: wrap;
}

/* Linha central */
.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: #4bb543; /* verde do check */
  transform: translateX(-50%);
  display: none; /* só aparece no mobile */
}

.timeline-item {
  flex: 1;
  min-width: 280px;
  max-width: 32%;
  display: flex;
  justify-content: center;
}

.timeline-card {
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  width: 100%;
}

/* Mobile: cards em coluna conectados pela linha */
@media (max-width: 991px) {
  .timeline {
    flex-direction: column;
    align-items: center;
  }

  .timeline::before {
    display: block;
  }

  .timeline-item {
    position: relative;
    max-width: 100%;
    margin-bottom: 40px;
  }

  /* Bolinha de cada etapa */
  .timeline-item::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -15px;
    transform: translateX(-50%);
    width: 18px;
    height: 18px;
    background-color: #fff;
    border: 3px solid #4bb543;
    border-radius: 50%;
    z-index: 2;
  }

  .timeline-card {
    text-align: center;
  }
}

/* Footer */
.custom-footer {
  background-color: var(--primary-color);
  color: var(--text-light);
  box-shadow: 0 -2px 8px rgba(0,0,0,0.2);
}
.custom-footer a:hover {
  color: var(--accent-color) !important;
  transition: 0.3s;
}
