/*Banner */
.header-banner {
  position: relative;
  background-image: url('../img/img_cursos/fundo_cursos.jpg'); 
  background-position: center;
  height: 400px; 
  display: flex;
  align-items: center;
  justify-content: center;
  background-repeat: no-repeat;     
  background-size: cover; 
}

.header-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4); 
  z-index: 1;
}
  
.overlay-banner {
  background-color: transparent; 
  color: white;
  text-align: center;
  padding: 2rem;
  width: 100%;
  max-width: 1000px;
  position: relative;
  z-index: 2; 
}

/*Banner- Texto*/ 
.overlay-banner h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
  
.breadcrumb-nav {
  font-size: 1rem;
  margin-top: 0.5rem;
}
  
.breadcrumb-nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
}
  
.breadcrumb-nav span {
  margin: 0 0.3rem;
  color: #dac187;
}
  
.breadcrumb-nav .active {
  color: #dac187; /* ou outra cor de destaque */
  font-weight: 700;
}

/*Linha da caixa do texto*/
.caixa-guia {
  border: 1px solid #e2d9c4; 
  padding: 2rem;
  position: relative;
  background-color: #fff;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
  border: 4px solid #e2d9c4;  
}

.card-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 por linha */
  gap: 4rem 0rem;
  padding-top: 2rem;
  padding-right: 8rem;
  padding-left: 8rem;
  margin-bottom: 4rem;
  justify-items: center;
  width: 100%;
  box-sizing: border-box;
}

/* Cartões individuais */
.card {
  position: relative;
  background-color: #0e0f2c;
  color: white;
  width: 300px;
  height: 300px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card .mais-info {
  color: #dac187;
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3);
}

/* Conteúdo dos cartões */
.card-content {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  padding: 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease;
}

.card-content.default {
  opacity: 1;
  z-index: 1;
}

.card-content.hover {
  opacity: 0;
  z-index: 2;
}

.card:hover .card-content.default {
  opacity: 0;
}

.card:hover .card-content.hover {
  opacity: 1;
}

.card h2 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.card a {
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
}

/* Efeito hover cor */
.card1:hover{
  background-color: #dac187;
  transition: background-color 0.3s ease;
}



.card3 .card-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 33.33%;
  width: 100%;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  color: white;
  transition: background-color 0.3s;
}

.card3 .divider {
  height: 2px;
  background-color: #dac187;
  width: 100%;
}

.card3 .card-link:hover {
  background-color: #dac187;
  color: white;
}

.card-content.hover.grid4 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  width: 100%;
  height: 100%;
  padding: 0; /* remove o padding para encaixar bem */
}

.card-content.hover.grid4 .card-link {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
  color: white;
  margin: 0;       /* remove espaçamentos internos */
  text-align: center;
  text-decoration: none;
  transition: background 0.3s;
  height: 100%;
  width: 100%;
}

/* Cada quadrado ocupa exatamente 25% */
.card-content.hover.grid4 a:nth-child(1) { background-color: #0e0f2c; }
.card-content.hover.grid4 a:nth-child(2) { background-color: #0e0f2c; }
.card-content.hover.grid4 a:nth-child(3) { background-color: #0e0f2c; }
.card-content.hover.grid4 a:nth-child(4) { background-color: #0e0f2c; }

.card-content.hover.grid4 .card-link:hover {
  background-color: #dac187;;
}
/* RESPONSIVO GERAL PARA cursos.css */

/* Tablets (≤ 992px) */
@media (max-width: 992px) {
  .header-banner {
    height: 320px;
  }

  .overlay-banner h1 {
    font-size: 2rem;
  }

  .breadcrumb-nav {
    font-size: 0.95rem;
  }

  .caixa-guia {
    padding: 1.5rem;
  }

  .card-container {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
  }
}

/* Telemóveis (≤ 768px) */
@media (max-width: 768px) {
  .header-banner {
    height: 260px;
  }

  .overlay-banner {
    padding: 1.5rem;
  }

  .overlay-banner h1 {
    font-size: 1.6rem;
  }

  .breadcrumb-nav {
    font-size: 0.9rem;
    margin-top: 0.3rem;
  }

  .caixa-guia {
    padding: 1rem;
  }

  .card-container {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  .card {
    width: 100%;
    height: auto;
    min-height: 280px;
  }

  .card h2 {
    font-size: 1.1rem;
  }

  .card a {
    font-size: 0.85rem;
  }
}

/* Telemóveis pequenos (≤ 480px) */
@media (max-width: 480px) {
  .header-banner {
    height: 220px;
  }

  .overlay-banner h1 {
    font-size: 1.4rem;
  }

  .breadcrumb-nav {
    font-size: 0.85rem;
  }

  .caixa-guia {
    padding: 0.8rem;
    border-width: 3px;
  }

  .card h2 {
    font-size: 1rem;
  }

  .card a {
    font-size: 0.8rem;
  }
}

.botao-centro {
  text-align: center;
  margin-top: 2rem;
}

.btn-curso {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
  border: 2px solid #0e0f2c;
  border-radius: 10px;
  padding: 10px 20px;
  color: #0e0f2c;
  background-color: white;
  transition: all 0.3s ease;
}

.btn-curso:hover {
  background-color: #0e0f2c;
  color: white;
}
