/* ═══════════════════════════════════════════════════════════════
   FORMATIONS CSS — Estilos Específicos para Páginas de Formações
   ═══════════════════════════════════════════════════════════════ */

/* ─────── FORMATIONS TABS HEADER ─────── */

.formacoes-tabs-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 60px;
  background: linear-gradient(135deg, rgba(31,134,255,0.05) 0%, rgba(19,191,159,0.05) 100%);
  padding: 16px 24px;
  border-radius: 12px;
  border: 1px solid rgba(31,134,255,0.1);
}

/* ─────── FORMATIONS TAB BUTTON ─────── */

.formacoes-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #a5bdd8;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.formacoes-tab:hover {
  border-color: var(--blue);
  color: #e2e8f0;
  background: rgba(31,134,255,0.1);
}

.formacoes-tab.active {
  border-color: var(--blue);
  background: rgba(31,134,255,0.15);
  color: #1f86ff;
  box-shadow: 0 0 0 3px rgba(31,134,255,0.1);
}

.formacoes-tab svg {
  width: 18px;
  height: 18px;
}

/* ─────── FORMATIONS RELATED CARDS (OUTRAS FORMAÇÕES) ─────── */

.service-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.service-related-card {
  background: linear-gradient(135deg, rgba(14, 34, 63, 0.9) 0%, rgba(10, 25, 47, 0.95) 100%);
  border: 1px solid var(--border2);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.service-related-card:hover {
  border-color: var(--blue);
  box-shadow: 0 20px 48px rgba(31, 134, 255, 0.2);
  transform: translateY(-8px);
}

.service-related-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.service-related-card:hover img {
  transform: scale(1.05);
}

.service-related-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #e2e8f0;
  padding: 16px 16px 8px;
  margin: 0;
  line-height: 1.3;
  flex-grow: 0;
}

.service-related-card p {
  font-size: 13px;
  color: #a5bdd8;
  padding: 0 16px 12px;
  margin: 0;
  line-height: 1.5;
  flex-grow: 1;
}

.service-related-card .service-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  padding: 10px 16px 16px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  border-bottom: 2px solid transparent;
}

.service-related-card .service-link:hover {
  border-bottom-color: var(--blue);
  transform: translateX(4px);
}

.service-related-card .service-link span {
  transition: transform 0.3s ease;
}

.service-related-card:hover .service-link span {
  transform: translateX(4px);
}

/* ─────── FORMATIONS RESPONSIVE ─────── */

@media (max-width: 1024px) {
  .service-related-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .service-related-card h3 {
    font-size: 15px;
  }

  .service-related-card p {
    font-size: 12px;
  }

  .service-related-card img {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .formacoes-tabs-header {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 48px;
  }

  .formacoes-tab {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 13px;
  }

  .service-related-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .service-related-card h3 {
    font-size: 14px;
    padding: 14px 14px 6px;
  }

  .service-related-card p {
    font-size: 12px;
    padding: 0 14px 10px;
  }

  .service-related-card .service-link {
    padding: 8px 14px 14px;
    font-size: 11px;
  }

  .service-related-card img {
    height: 150px;
  }
}

/* ─────── FORMATIONS DETAIL SECTION STYLES ─────── */

.formation-detail-section {
  padding: 80px 20px;
  background: var(--bg1);
}

.formation-detail-animated-bg {
  position: relative;
  overflow: hidden;
}

/* Network Background */
.formation-detail-network-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  opacity: 0.5;
}

.formation-detail-network-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.formation-network-lines {
  mix-blend-mode: screen;
}

.formation-network-lines line {
  stroke-linecap: round;
  stroke-linejoin: round;
}

.formation-network-lines line:nth-child(1) {
  animation: formation-line-flow 8s ease-in-out infinite;
}

.formation-network-lines line:nth-child(2) {
  animation: formation-line-flow 10s ease-in-out infinite 1s;
}

.formation-network-lines line:nth-child(3) {
  animation: formation-line-flow 12s ease-in-out infinite 0.5s;
}

.formation-network-lines line:nth-child(4) {
  animation: formation-line-flow 9s ease-in-out infinite 1.5s;
}

.formation-network-lines line:nth-child(5) {
  animation: formation-line-flow 11s ease-in-out infinite 0.8s;
}

.formation-network-lines line:nth-child(6) {
  animation: formation-line-flow 10s ease-in-out infinite 1.2s;
}

.formation-network-lines line:nth-child(7) {
  animation: formation-line-flow 9s ease-in-out infinite 0.3s;
}

.formation-network-lines line:nth-child(8) {
  animation: formation-line-flow 11s ease-in-out infinite 1.8s;
}

@keyframes formation-line-flow {
  0% {
    stroke-opacity: 0.2;
  }
  50% {
    stroke-opacity: 0.8;
  }
  100% {
    stroke-opacity: 0.2;
  }
}

.formation-network-nodes {
  mix-blend-mode: screen;
}

.formation-network-node {
  animation: formation-node-pulse 3s ease-in-out infinite;
}

.formation-network-node:nth-child(1) {
  animation-delay: 0s;
}

.formation-network-node:nth-child(2) {
  animation-delay: 0.6s;
}

.formation-network-node:nth-child(3) {
  animation-delay: 1.2s;
}

.formation-network-node:nth-child(4) {
  animation-delay: 1.8s;
}

.formation-network-node:nth-child(5) {
  animation-delay: 0.3s;
}

.formation-network-node:nth-child(6) {
  animation-delay: 0.9s;
}

@keyframes formation-node-pulse {
  0% {
    opacity: 0.3;
    r: 4px;
  }
  50% {
    opacity: 1;
    r: 8px;
  }
  100% {
    opacity: 0.3;
    r: 4px;
  }
}

.formation-detail-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.formation-detail-content-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  background: linear-gradient(135deg, rgba(14, 34, 63, 0.8) 0%, rgba(10, 25, 47, 0.95) 100%);
  border: 1px solid var(--border2);
  border-radius: 16px;
  padding: 48px;
}

.formation-detail-text-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.formation-detail-highlights-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.formation-detail-heading {
  font-size: 20px;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 24px;
  line-height: 1.3;
}

.formation-detail-text {
  font-size: 14px;
  color: #a5bdd8;
  line-height: 1.7;
  margin-bottom: 24px;
}

.formation-detail-cta-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.formation-detail-cta-buttons .btn {
  padding: 12px 24px;
  font-size: 14px;
}

.formation-highlights-checklist {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.formation-highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: all 0.3s ease;
}

.formation-highlight-item:hover {
  transform: translateX(12px);
}

.formation-highlight-icon {
  width: 20px;
  min-width: 20px;
  height: 20px;
  background: linear-gradient(135deg, rgba(31, 134, 255, 0.3) 0%, rgba(19, 191, 159, 0.2) 100%);
  border: 1px solid var(--blue);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
}

.formation-highlight-icon svg {
  width: 12px;
  height: 12px;
}

.formation-highlight-item span {
  font-size: 14px;
  color: #c8daf0;
  font-weight: 500;
  line-height: 1.5;
}

/* ─────── FORMATIONS RESPONSIVE ─────── */

@media (max-width: 1024px) {
  .formation-detail-content-card {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px;
  }
}

@media (max-width: 768px) {
  .formation-detail-section {
    padding: 60px 20px;
  }

  .formation-detail-content-card {
    padding: 32px;
    gap: 32px;
  }

  .formation-detail-heading {
    font-size: 18px;
    margin-bottom: 20px;
  }

  .formation-detail-text {
    font-size: 13px;
    margin-bottom: 20px;
  }

  .formation-highlights-checklist {
    gap: 14px;
  }

  .formation-highlight-item {
    gap: 14px;
  }
}

@media (max-width: 480px) {
  .formacoes-tabs-header {
    padding: 12px 16px;
    gap: 10px;
  }

  .formacoes-tab {
    padding: 12px 16px;
    font-size: 12px;
    gap: 6px;
  }

  .formacoes-tab svg {
    width: 16px;
    height: 16px;
  }

  .formation-detail-section {
    padding: 40px 16px;
  }

  .formation-detail-content-card {
    padding: 24px;
    gap: 24px;
  }

  .formation-detail-heading {
    font-size: 16px;
    margin-bottom: 16px;
  }

  .formation-detail-text {
    font-size: 12px;
    margin-bottom: 18px;
  }

  .formation-detail-cta-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .formation-detail-cta-buttons .btn {
    padding: 10px 18px;
    font-size: 13px;
    width: 100%;
  }

  .formation-highlight-icon {
    width: 18px;
    height: 18px;
  }

  .formation-highlight-item span {
    font-size: 12px;
  }

  .formation-highlights-checklist {
    gap: 12px;
  }

  .formation-highlight-item {
    gap: 12px;
  }

  .service-related-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .service-related-card h3 {
    font-size: 13px;
    padding: 12px 12px 4px;
  }

  .service-related-card p {
    font-size: 11px;
    padding: 0 12px 8px;
  }

  .service-related-card .service-link {
    padding: 8px 12px 12px;
    font-size: 10px;
  }

  .service-related-card img {
    height: 140px;
  }
}
