/*
Theme Name: Eduval Child
Theme URI: https://educar-valores.pt
Template: eduval
Author: Digital Solutions - EDUGEP
Author URI: https://digitalsolutions.edugep.pt
Description: Child theme do tema Eduval.
Version: 1.0.0
Requires at least: 6.9.1
Requires PHP: 8.4
Text Domain: eduval-child
License: Proprietary / Private
License URI: https://digitalsolutions.edugep.pt
Domain Path: /languages
*/

/* 
 * HOMEPAGE : VCARDS / BOX
 * 	> EDUGEP - ALFREDO LEITE
 * 
 */

.custom-cards-wrapper {
  display: flex;
  gap: 36px;
  justify-content: center;
  align-items: stretch;
  position: relative;

  width: 100%;
  max-width: 100%; /* remover limite */
  margin: 0 0; /* sem auto = sem centragem artificial */
  padding: 0 0; /* controla o “respiro” lateral */
}

.custom-card {
  position: relative;
  flex: 1 1 0;
  background: #fdfdfd;
  border-radius: 22px;
  padding: 42px 38px 36px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
  min-height: 520px;

  display: flex;
  flex-direction: column;
  align-items: center;
}

.custom-card-logo {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
}

.custom-card-logo img {
  width: 100%;
  max-width: 280px; /* tamanho fixo visual */
  height: auto;
  display: block;
}

.custom-card-content {
  width: 100%;
  text-align: justify;
}

.custom-card-content p {
  margin: 0;
  color: #1f1f1f;
  font-size: 19px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: 0;
  word-break: normal;
  overflow-wrap: break-word;
  text-align: justify;
  text-justify: inter-word;
}

.custom-card-content p + p {
  margin-top: 28px;
}

/* Ícone do meio */
.custom-cards-wrapper::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background-color: #ffffff;
  background-image: url("/wp-content/uploads/IMG4-150x150.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 70px 70px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  z-index: 5;
}

/* divider escondido no desktop */
.custom-divider {
  display: none;
  justify-content: center;
  align-items: center;
}

/* estilo do ícone */
.custom-divider img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

/* Tablet */
@media (max-width: 1024px) {
  .custom-cards-wrapper {
    gap: 24px;
    max-width: 980px;
  }

  .custom-card {
    padding: 34px 28px 30px;
    min-height: auto;
  }

  .custom-card-logo img {
    max-width: 220px;
  }

  .custom-card-content p {
    font-size: 17px;
    line-height: 1.5;
  }

  .custom-cards-wrapper::after {
    width: 82px;
    height: 82px;
    background-size: 58px 58px;
  }

  .custom-card + .custom-card {
    margin-top: 15px; /* ajusta aqui: 20–40px */
  }
}

/* Mobile */
@media (max-width: 767px) {
  .custom-cards-wrapper {
    flex-direction: column;
    gap: 22px;
    margin: 30px auto;
    padding: 0 14px;
  }

  .custom-card {
    padding: 28px 22px 26px;
    border-radius: 18px;
    margin: 0;
    transition:
      transform 0.2s ease,
      box-shadow 0.2s ease;
  }

  .custom-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
  }

  .custom-card-logo {
    margin-bottom: 20px;
  }

  .custom-card-logo img {
    max-width: 200px;
  }

  .custom-card-content p {
    font-size: 16px;
    line-height: 1.55;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
  }

  .custom-cards-wrapper::after {
    margin-top: 5px;
  }

  .custom-card + .custom-card {
    margin-top: 15px;
  }
}

/* 
 * HOMEPAGE : PROMOTIONAL VIDEO
 * 
 */

/* TABLET */
@media (max-width: 767px) {
  .homepage-video {
    border-top: 5px solid #261e50;
    border-bottom: 5px solid #261e50;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .homepage-video {
    border-top: 4px solid #261e50;
    border-bottom: 4px solid #261e50;
  }
}

/*
 * 
 * MODELO ELEMENTOR
 * 		> CONTACT US FORM
 * 
 */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-icon {
  width: 28px;
  min-width: 28px;
  height: 28px;
  color: #2b2563;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.contact-text {
  font-size: 22px;
  line-height: 1.35;
  font-weight: 500;
  color: #3a3a3a;
}

.contact-text a {
  color: inherit;
  text-decoration: none;
}

.contact-text a:hover {
  text-decoration: underline;
}

@media (max-width: 767px) {
  .contact-info {
    gap: 16px;
  }

  .contact-item {
    gap: 12px;
    align-items: flex-start;
  }

  .contact-icon {
    width: 24px;
    min-width: 24px;
    height: 24px;
    margin-top: 2px;
  }

  .contact-text {
    font-size: 18px;
  }
}

.contact-note {
  font-size: 13px;
  color: #6b6b6b;
  margin-top: 4px;
  line-height: 1.3;
}

/* EBOOK PDF */
.pdf-container iframe {
  width: 100%;
  height: 600px; /* ocupa quase o ecrã */
  border: none;
}

/* ACADEMY CARD */

/* CARD BASE (igual ao estilo anterior) */
.academy-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 35px 45px;
  max-width: 900px;
  margin: 40px auto;

  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

/* TÍTULO */
.academy-title {
  text-align: center;
  font-size: 30px;
  font-weight: 800;
  color: #f07c00;
  margin-bottom: 25px;
}

/* LISTA */
.academy-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ITEMS */
.academy-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 14px;
  font-size: 19px;
  color: #4a4a4a;
  line-height: 1.45;
}

/* BULLET */
.academy-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 9px;
  height: 9px;
  background-color: #2c2c54;
  border-radius: 50%;
}

/* MOBILE */
@media (max-width: 767px) {
  .academy-card {
    padding: 25px 20px;
    margin: 20px auto;
  }

  .academy-title {
    font-size: 22px;
  }

  .academy-list li {
    font-size: 16px;
    margin-bottom: 10px;
  }
}

/*
 * 
 * CURSO PARENTALIDADE : MODULES
 * 
 */
.modules-wrapper {
  display: flex;
  gap: 30px;
  overflow-x: auto; /* permite scroll tipo carousel */
  padding: 20px 10px;
}

/* CARD */
.module-card {
  min-width: 320px;
  max-width: 360px;
  background: #ffffff;
  border-radius: 20px;
  padding: 35px 30px;
  text-align: center;

  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  flex: 0 0 auto;
}

/* ÍCONE */
.module-icon img {
  width: 60px;
  margin-bottom: 15px;
}

/* MÓDULO */
.module-number {
  color: #f07c00;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 10px;
}

/* TÍTULO */
.module-title {
  font-size: 26px;
  font-weight: 800;
  color: #4a4a4a;
  margin-bottom: 15px;
}

/* DESCRIÇÃO */
.module-desc {
  font-size: 17px;
  color: #666;
  line-height: 1.4;
}
