/* =========================================================
   COMPONENTE: HERO SECUNDÁRIO (MODULAR)
   ========================================================= */
.hero-secundario {
  padding: 44px 0 18px 0;
}

.hero-shell {
  position: relative;
  background: linear-gradient(135deg, #1A0B2E 0%, #0B1B4D 50%, #063170 100%);
  border-radius: 24px;
  overflow: hidden;
  color: #FFFFFF;
  padding: 40px;
  min-height: 280px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .40);
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  width: 100%;
  background-color: hotpink;
}

/* Fundo (Imagem/Pattern) */
.hs-bg-pattern {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center left;
  opacity: 0.4;
  pointer-events: none;
  mask-image: linear-gradient(to right, black 20%, transparent 80%);
  -webkit-mask-image: linear-gradient(to right, black 20%, transparent 80%);
}

/* --- A MAGIA DO GRID DE 2 COLUNAS --- */
.hs-container {
  position: relative;
  z-index: 2;
  display: grid;
  width: 100%;
  flex: 1;
  /* Estica para preencher toda a altura do shell */

  /* Cria 2 colunas: A da esquerda (botões) e a da direita (textos e pills) */
  grid-template-columns: 1fr 1.5fr;
  /* Cria 2 linhas virtuais para empurrar as pills para o fundo */
  grid-template-rows: auto 1fr;
  gap: 24px 40px;
}

/* --- COLUNA ESQUERDA (Topo) --- */
.hs-topbar {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  align-self: start;
  /* Crava no topo absoluto */
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hs-breadcrumb {
  display: inline-flex;
  align-items: center;
  backdrop-filter: blur(4px);
  white-space: nowrap;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  color: #EAF0FF;
  border: 1px solid rgba(234, 240, 255, .14);
  background: rgba(234, 240, 255, .04);
}

.hs-top-btn {
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  background: #1CBDE0;
  color: #111827;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
}

.hs-breadcrumb:hover,
.hs-top-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

/* --- COLUNA DIREITA (Topo - Textos) --- */
.hs-content {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  align-self: start;
  /* Crava no topo, perfeitamente alinhado com os botões da esquerda */
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.hs-kicker {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 8px;
  font-weight: 500;
}

.hero-secundario h1 {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 16px 0;
  color: #FFFFFF;
}

.hs-highlight {
  color: #FFFFFF;
  background: transparent;
  padding: 0;
}

.hs-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  margin: 0;
  max-width: 500px;
}

/* --- COLUNA DIREITA (Fundo - Pills) --- */
.hs-actions,
.hs-pills {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  align-self: end;
  /* Força as pills a irem para o fundo da caixa */
  display: flex;
  justify-content: flex-end;
  /* Alinha à direita com os textos */
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.hs-pill {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(4px);
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 980px) {
  .hero-shell {
    padding: 32px 24px;
  }

  /* No Mobile, voltamos a empilhar tudo numa única coluna */
  .hs-container {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 24px;
  }

  .hs-topbar {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .hs-content {
    grid-column: 1 / -1;
    grid-row: 2;
    align-items: flex-start;
    /* Passa a alinhar à esquerda no telemóvel */
    text-align: left;
  }

  .hs-actions,
  .hs-pills {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-content: flex-start;
  }
}