
:root {
  --black: #101010;
  --darkGray: #191919;
  --lightWhite: #eeeeee;
  --lightYellow: #f7d154;
  --green: rgb(47, 172, 102);
  --lightBlue: #1b8fcf;
  --carmesin: #e94362;
}
.project-page {
    background-color: #f0f0f0;
    padding: 50px;
    text-align: center;
}

.project-page-title h2{
    font-size: 40px;
    font-weight: 400;
    color: #333;
    text-align: center;
    margin-top: 20px;
   
}
.project-page-title p{
    font-size: 15px;
    margin-top: 10px;
    text-align: left;
    padding: 0 10px;
    max-width: 50%;
    margin: 0 auto;
    margin-bottom: 10px;
}
.cor{
  background: #f8f5f5;
}
.project-title h2{
    margin-top: 50px;
    font-weight: 400;
    font-size: 35px;
    color: #333;
    text-align: center;
    margin-bottom: 15px;
}
.project-page-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.project-page-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 300px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-page-card:hover {
    transform: translateY(-10px) scale(1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.project-page-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.project-page-card-title {
    font-size: 20px;
    font-family: "Poppins", sans-serif;
    color: #444;
    margin: 15px 0 10px 0;
    font-family: "Poppins", sans-serif;
}

.project-page-card-description {
    font-size: 15px;
    color: #666;
}
/* Estilo para a seção de oficinas */
.workshops-section {
  background-color: #f5f5f5;
  padding: 40px 0;
}

.workshops-content {
  display: flex;
  justify-content: space-between; /* Mantém o texto à esquerda e os cards à direita */
  align-items: flex-start; /* Alinha os itens ao topo */
}

.texto-direita {
  max-width: 600px;
  padding: 20px;
}
.texto-direita h2{
  font-size: 30px;
  color: var(--darkGray);
  font-family: "Poppins", sans-serif;
}
.texto-direita p{
  font-size: 15px;
}

.workshops-list {
  display: flex;
  gap: 20px; /* Espaçamento entre os cards */
  margin-right: 20px;
}

/* Card interativo */
.card {
  position: relative;
  width: 180px; /* Largura dos cards */
  background: var(--lightWhite); /* Cor de fundo dos cards */
  border: 1px solid #1b90cf41; /* Borda dos cards */
  display: flex;
  flex-direction: column; /* Organiza o conteúdo verticalmente */
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  border-radius: 15px;
  cursor: pointer;
  padding: 15px; 
  transition: transform 0.5s;
  overflow: hidden; 
  border: 1px solid lightblue;
}

.card::before,
.card::after {
  position: absolute;
  content: "";
  width: 1px;
  height: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgb(118, 166, 238);
  transition: all 0.5s;
}

.card::before {
  top: 0;
  right: 0;
  border-radius: 0 15px 0 100%;
}

.card::after {
  bottom: 0;
  left: 0;
  border-radius: 0 100% 0 15px;
}

.card:hover::before,
.card:hover::after {
  width: 100%;
  height: 100%;
  border-radius: 15px;
}

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

/* Descrição da oficina */
.workshop-description {
  position: absolute; /* Posiciona a descrição em relação ao card */
  left: 0;
  right: 0;
  color: var(--darkGray); 
  text-align: center; 
  opacity: 0; 
  transition: opacity 0.3s;
}

/* Mostra a descrição no hover */

.card h3{
  font-family: "Poppins", sans-serif;
  color: var(--darkGray);
  font-weight: 500;
  font-size: 20px;
  
}
.card p {
  margin: 0; 
  text-align: center; 
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--lightWhite);
  z-index: 3;
  margin-top: 0;
 
}
.card:hover .workshop-description {
  opacity: 1; /* Torna visível ao passar o mouse */
  color: var(--darkGray);

}
/* Estilo para a imagem do card */
.card img {
  width: 100%; /* Ajusta a largura da imagem */
  height: auto; /* Mantém a proporção da imagem */
  border-radius: 8px; /* Bordas arredondadas na imagem */
}

/* Responsividade para telas muito pequenas (celulares menores) */
@media (max-width: 520px) {
  .project-page-title{
    text-align: left;
  }
  .project-page-title h2{
    font-size: 25px;
  }
  .project-page-title p{
    font-size: 12px;
    max-width: 100%;
  }
  .project-title h2{
    font-size: 25px;
  }
  .project-page-card {
    width: 60%;
  }
  .workshops-list{
    flex-direction: column;
  }
  .workshops-text h2 {
      font-size: 18px;
  }

  .workshop h3 {
      font-size: 1.2rem;
  }

  .workshop p {
      font-size: 0.9rem;
  }
}
@media (min-width: 680px) and (max-width: 768px) {
  .workshops-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Duas colunas de igual largura */
    gap: 20px; /* Espaçamento entre os cards */
  }
}
@media (max-width: 768px) {
  .project-page-title p {
    font-size: 15px;
    margin-top: 10px;
    text-align: left;
    padding: 0 10px;
    max-width: 90%;
    margin-bottom: 10px;
}
  .workshops-content {
      flex-direction: column; /* Empilha o texto e a lista de oficinas */
      align-items: center;
  }

  .workshops-list {
      flex-direction: column; 
      max-width: 100%;
  }
  
  .workshops-text {
      max-width: 100%; /* Garante que o texto ocupe toda a largura disponível */
      text-align: center; /* Centraliza o texto */
  }

  .workshops-text h2 {
      font-size: 1.8rem;
  }

  .workshops-text p {
      font-size: 1rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .workshops-list{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-right: 20px;
  }
}
