/* Cards */
.cards-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.card {
  display: block;
  width: calc(33.33% - 14px);
  height: 180px;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  text-decoration: none;
  transition: all 0.5s ease;
  box-shadow: 0 5px 15px var(--shadow-color);
}

.card:hover {
  transform: translateY(-5px);
  animation: borderGlow 2s infinite;
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Centraliza o conteúdo na vertical */
  align-items: center;
  text-align: center;
  padding: 10px 15px 40px 15px; /* Padding: 10px topo, 15px laterais, 40px base */
  background: linear-gradient(to bottom, 
                            var(--primary-transparent-light), 
                            var(--primary-transparent-dark));
  color: var(--white);
  box-sizing: border-box; /* Garante que o padding seja calculado corretamente */
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-image {
  transform: scale(1.05);
}

/* Box "EM BREVE" */
.em-breve-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(to right, var(--primary-color), var(--primary-light), var(--primary-color));
  color: var(--white);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 5px 10px;
  border-radius: 4px;
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Textos para cards */
.card-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.4rem;
  margin: 0 0 8px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--white);
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  width: 100%;
}

.card-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.8rem;
  margin: 0;
  font-weight: 500;
  color: var(--white);
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  letter-spacing: 0.5px;
  width: 100%;
}

/* Estilo para botões */
.btn-dourado {
  position: absolute; /* Posicionamento absoluto em relação ao .card-overlay */
  bottom: 20px;      /* Fixa a 20px da base */
  left: 50%;         /* Centraliza horizontalmente */
  transform: translateX(-50%); /* Ajuste fino da centralização */
  
  padding: 8px 22px;
  border-radius: 30px;
  background: linear-gradient(to right, var(--accent-color), var(--accent-light), var(--accent-color));
  color: var(--white);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  border: none;
  text-shadow: 0 1px 1px rgba(0,0,0,0.2);
}

.btn-dourado:hover {
  animation: buttonGlow 2s infinite;
  transform: scale(1.05) translateX(-50%); /* Mantém o translate no hover */
}

/* Seção de Vídeo */
.video-section {
  width: 100%;
  margin-top: 0;
  margin-bottom: 30px;
}

.video-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 1.7rem;
  margin-bottom: 15px;
  letter-spacing: 1.2px;
  text-align: center;
  background-image: linear-gradient(90deg, var(--primary-color) 30%, var(--accent-color) 50%, var(--primary-color) 70%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: suaveBrilho 10s linear infinite;
  text-transform: uppercase;
}

.title-wrapper {
  position: relative;
  display: inline-block;
  padding: 0 15px;
}

.title-underline {
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  height: 1px;
  width: 80%;
  background: linear-gradient(to right, transparent, var(--accent-color), transparent);
}

.video-thumbnail-container {
  position: relative;
  width: 100%;
  /* REMOVA a altura fixa para que o container seja flexível */
  /* height: 180px; */

  /* ADICIONE esta linha para forçar a proporção de vídeo (16:9) */
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(205, 164, 94, 0.7);
  transition: all 0.3s ease;
}

.video-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-icon-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.3);
}

.play-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(205, 164, 94, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
  transition: all 0.3s ease;
}

.play-icon:before {
  content: '';
  border-style: solid;
  border-width: 10px 0 10px 20px;
  border-color: transparent transparent transparent var(--white);
  margin-left: 5px;
}

/* Modal de vídeo */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--modal-bg);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal-content {
  position: relative;
  width: 80%;
  max-width: 900px;
}

.modal-close {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 40px;
  height: 40px;
  background-color: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid var(--white);
  z-index: 1001;
}

.modal-close:before,
.modal-close:after {
  content: '';
  position: absolute;
  width: 20px;
  height: 2px;
  background-color: var(--white);
}

.modal-close:before {
  transform: rotate(45deg);
}

.modal-close:after {
  transform: rotate(-45deg);
}

.modal-video-container {
  position: relative;
  padding-bottom: 56.25%; /* Proporção 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  border: 2px solid var(--accent-color);
  box-shadow: 0 0 30px rgba(205, 164, 94, 0.3);
}

.modal-video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}