/*Banner */
.header-banner {
  position: relative;
  background-image: url('../img/img_cursos_efa/img_banner.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;  
}

/*Texto*/
.texto {
  text-align: justify;
  line-height: 2.0; 
  font-size: 1.1rem;
  padding-left: 90px;
  padding-right: 90px;
  color: #333;
  padding-top: 30px;
}

/*Cards cursos*/
.curso-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
  justify-items: center;
}

.curso-card {
  width: 300px;
  min-height: 300px;
  height: auto;
  background-color: #fff;
  border-radius: 12px;
  padding: 0 0 20px 0;
  margin: 20px;
  display: inline-block;
  vertical-align: top;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.curso-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.curso-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}

.curso-card h3 {
  font-size: 1.4rem;
  margin: 15px 0 5px;
  font-weight: 600;
  color: #333;
  min-height: 50px; /* para títulos curtos não reduzirem a altura */
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.curso-card p {
  margin: 5px 0;
  font-size: 0.95rem;
  color: #555;
}

.curso-card p strong {
  font-weight: 600;
  color: #222;
}

.curso-card a {
  background-color: #005cbf;
  color: white;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
  display: inline-block;
  margin-top: 15px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color 0.3s ease;
}

.curso-card a:hover {
  background-color: #004a9f;
}

.alinhamento {
  align-items: center;
  text-align: center;
}


/*Logos Financiamento*/
.logos-financiamento {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px; /* Espaço entre logótipos */
  flex-wrap: wrap; /* Permite quebrar linha em ecrãs pequenos */
  padding: 20px 0;
}

.logos-financiamento img {
  max-height: 60px; /* Ajusta a altura conforme necessário */
  height: auto;
  width: auto;
}

.botao-sobre {
  display: inline-flex; 
  align-items: center;
  justify-content: center;
  background-color: #dac187;
  color: white;
  padding: 12px 24px;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 30px 30px 30px 5px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  width: auto;               
  max-width: 250px;         
  white-space: nowrap;       
  margin-top: 20px;
}
  
.botao-sobre i {
  margin-left: 10px;
  transition: transform 0.2s ease;
}
  
.botao-sobre:hover {
  background-color: #dcc592;
  transform: scale(1.08); 
}
  
.botao-sobre:hover i {
  transform: translateX(4px);
}

/* RESPONSIVO GERAL PARA cursos_de_aprendizagem.css */

/* Tablets (≤ 992px) */
@media (max-width: 992px) {
  .header-banner {
    height: 320px;
  }

  .overlay-banner h1 {
    font-size: 2rem;
  }

  .breadcrumb-nav {
    font-size: 0.95rem;
  }

  .texto {
    padding: 20px 40px;
    font-size: 1rem;
  }

  .caixa-guia {
    padding: 1.5rem;
  }

  .botao-sobre {
    font-size: 0.85rem;
    padding: 10px 20px;
  }

  .logos-financiamento img {
    max-height: 60px;
  }
}

/* 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;
  }

  .texto {
    padding: 15px;
    font-size: 0.95rem;
  }

  .caixa-guia {
    padding: 1rem;
  }

  .curso-card {
    margin: 10px auto;
    width: 90%;
  }

  .botao-sobre {
    font-size: 0.8rem;
    max-width: 90%;
    padding: 10px 18px;
  }

  .logos-financiamento {
    gap: 1rem;
  }

  .logos-financiamento img {
    max-height: 50px;
  }
}

/* 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;
  }

  .texto {
    padding: 10px;
    font-size: 0.9rem;
  }

  .caixa-guia {
    padding: 0.8rem;
    border-width: 3px;
  }

  .curso-card h3 {
    font-size: 1.2rem;
  }

  .curso-card p {
    font-size: 0.85rem;
  }

  .botao-sobre {
    font-size: 0.75rem;
    padding: 8px 14px;
  }
}

