/* ══════════════════════════════════════
   competencias.css — Wagner Gonçalves Costa
   ══════════════════════════════════════ */

/*     <div class="competencias-main">
        <h4 class="certificados-titulo">Cursos Realizados</h4>

/* ── Layout principal ── */
section.content {
  background-color: #e6e3e3;
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  padding-bottom: 0;
  position: relative;
}

section.content > header {
  margin-bottom: 0;
  padding-bottom: 0;
}

section.content > header h2 {
  margin-bottom: 10px;
}

.competencias-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* ── Área principal (cursos) ── */
.competencias-main {
  flex: 1;
  padding: 0 60px;
  overflow-y: auto;
  padding-right: 240px;
}

.container {
  padding-top: 8px;
  padding-bottom: 0;
  margin-bottom: 0;
}

/* ── Títulos ── */
.certificados-titulo {
  color: #086aeb;
  font-weight: bold;
  margin-bottom: 15px;
  text-align: left;
  font-size: 18px;
  text-transform: uppercase;
}

/* ── Cards de certificados ── */
.contact-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 2px solid #ccc;
  padding: 8px;
  border-radius: 12px;
  background: #f9f9f9;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 340px;
}

.contact-box:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.projeto-img {
  width: 100%;
  height: 220px;
  margin-bottom: 8px;
  border-radius: 8px;
  object-fit: cover;
  cursor: pointer;
}

.contact-box h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: bold;
  color: #086aeb;
  text-align: center;
}

.contact-box p {
  font-size: 12px;
  color: #555;
  text-align: justify;
  line-height: 1.6;
  margin-top: 4px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.btn-certificado {
  margin-top: auto;
  background-color: #086aeb;
  border: none;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 13px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-certificado:hover {
  background-color: #064db5;
  transform: translateY(-2px);
}

/* ── Sidebar ferramentas ── */
.competencias-sidebar {
  width: 200px;
  flex-shrink: 0;
  background: #99bdec4f;
  border: 2px solid #ccc;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
}

.ferramentas-titulo {
  color: #086aeb;
  font-weight: bold;
  font-size: 18px;
  text-transform: uppercase;
  text-align: center;
  margin: 0;
  padding: 12px 8px;
  background: #99bdec4f;
  position: sticky;
  top: 0;
  z-index: 2;
}

.ferramentas-sidebar-scroll {
  overflow: hidden;
  flex: 1;
}

.ferramentas-sidebar-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 12px 0;
  animation: scroll-vertical 20s linear infinite;
}

.competencias-sidebar:hover .ferramentas-sidebar-grid {
  animation-play-state: paused;
}

@keyframes scroll-vertical {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

.ferramentas-sidebar-row {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* ── Badge circular ── */
.ferramenta-box {
  flex: 0 0 auto;
  width: 70px;
  height: 70px;
  border: 2px solid #dad5d5;
  border-radius: 50%;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ferramenta-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.ferramenta-box img {
  width: 35px;
  height: 35px;
  object-fit: contain;
  margin-bottom: 2px;
}

.ferramenta-box p {
  margin: 0;
  font-weight: bold;
  font-size: 10px;
  text-align: center;
}

/* ── Lightbox ── */
.lightbox {
  display: none;
  position: fixed;
  z-index: 999;
  inset: 0;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 15px #000;
}

.fechar {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.fechar:hover {
  transform: scale(1.2);
  color: #ccc;
}

@media (max-width: 768px) {
  .projeto-img { height: 100px; }

  /* ── Centraliza área de cursos ── */
  .competencias-layout {
    flex-direction: column;
    align-items: center;
  }

  .competencias-main {
    width: 100%;
    padding: 0 20px;
  }

  .certificados-titulo {
    text-align: center;
  }

  .contact-box {
    align-items: center;
    min-height: 220px;
  }

  /* ── Sidebar vira carrossel automático ── */
  .competencias-sidebar {
    position: static;
    width: 100%;
    height: auto;
    border: none;
    border-top: 2px solid #ccc;
  }

  .ferramentas-sidebar-scroll {
    overflow: hidden;
  }
 
  .ferramentas-sidebar-grid {
    flex-direction: row;
    flex-wrap: nowrap;
    padding: 10px 0;
    gap: 12px;
    width: max-content;
    animation: scroll-horizontal 35s linear infinite;
  }

  .competencias-sidebar:hover .ferramentas-sidebar-grid {
    animation-play-state: paused;
  }

  .ferramentas-sidebar-row {
    flex-direction: row;
    gap: 10px;
  }

  /* ── Badges menores ── */
  .ferramenta-box {
    width: 50px;
    height: 50px;
  }

  .ferramenta-box img {
    width: 25px;
    height: 25px;
  }

  .ferramenta-box p {
    font-size: 7px;
  }
}

@keyframes scroll-horizontal {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}