.box {
  margin: 0 auto;
  width: 800px;
  height: 0px;
  display: flex;
  justify-content: space-between;
}
.card {
  position: relative;
  border: 1px solid #bdc3c7;
  width: 180px;
  height: 300px;
  font-family: 'Roboto Slab', serif;
  border-radius: 10px;
  background: #ecf0f1;
  -webkit-box-shadow: 4px 4px 5px 0px rgba(50, 50, 50, 0.45);
  -moz-box-shadow: 4px 4px 5px 0px rgba(50, 50, 50, 0.45);
  box-shadow: 4px 4px 5px 0px rgba(50, 50, 50, 0.45);
  pointer-events: none;
}
.textstars, .symbol {
  position: absolute;
  font-size: 50px;
}
.textstars {
  font-size: 33px;
}
.textstars.top-left {
  top: 6px;
  left: 11px;
}
.textstars.bottom-right {
  bottom: 6px;
  right: 11px;
  transform: rotate(180deg);
}
.symbol.top-heart, .symbol.top-diamond, .symbol.top-club, .symbol.top-spade {
  top: 28px;
}
.symbol.top-heart, .symbol.top-club {
  left: 8px;
}
.symbol.top-diamond {
  left: 11px;
}
.symbol.top-spade {
  left: 10px;
}
.symbol.top-club {
  color: black;
}
.symbol.center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  font-size: 70px;
}
.symbol.bottom-heart, .symbol.bottom-diamond, .symbol.bottom-club, .symbol.bottom-spade {
  bottom: 28px;
  transform: rotate(180deg);
}
.symbol.bottom-heart, .symbol.bottom-club {
  right: 9px;
}
.symbol.bottom-diamond, .symbol.bottom-spade {
  right: 11px;
}
.red {
  color: #D91E18;
}
.black {
  color: #141414;
}

#card-1 {
  -webkit-animation-name: zoomIn;
  animation-name: zoomIn;
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
  animation-delay: 1s;
}

#card-2 {
  -webkit-animation-name: zoomIn;
  animation-name: zoomIn;
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
  animation-delay: 1.5s;
}

#card-3 {
  -webkit-animation-name: zoomIn;
  animation-name: zoomIn;
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
  animation-delay: 2s;
}

#card-4 {
  -webkit-animation-name: zoomIn;
  animation-name: zoomIn;
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
  animation-delay: 2.5s;
}

@keyframes zoomIn {
  0% {
    opacity: 0;
    -webkit-transform: scale3d(.1, .1, .1) translate3d(0, -1000px, 0);
    transform: scale3d(.1, .1, .1) translate3d(0, -1000px, 0);
    -webkit-animation-timing-function: cubic-bezier(0.550, 0.055, 0.675, 0.190);
    animation-timing-function: cubic-bezier(0.550, 0.055, 0.675, 0.190);
  }
  60% {
    opacity: 1;
    -webkit-transform: scale3d(.475, .475, .475) translate3d(0, 60px, 0);
    transform: scale3d(.475, .475, .475) translate3d(0, 60px, 0);
    -webkit-animation-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1);
    animation-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1);
  }
} 

.center-content{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  text-align:center;
  width: 75%;
}
.center-content .job-title {
    font-size: 1rem;
    text-transform: uppercase;
    /* margin: 0 0 6px; */
    line-height: 1.2;
    font-family: sans-serif;
}
.center-content .job-line {
    margin: 2px 0;
    font-size: .7rem;
    border-top: 1px dotted #338b93;
    font-family: monospace;
    color: #dbdbdb;
}

/* --- Cards: interacção/hover --- */
/* --- Cards: interacção/hover com brilho por naipe --- */
#stars .box { gap: 24px; flex-wrap: wrap; }
#stars .card{
/* cor/acento por defeito (preto). Pode ser sobrescrita por classe do naipe */
--accent: #141414;
pointer-events: auto !important; /* anula pointer-events:none do css base */
display: block; text-decoration: none; color: inherit; cursor: pointer;
transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, filter .25s ease;
will-change: transform, box-shadow;
}
/* Naipe define a cor de acento */
#stars .card.hearts, #stars .card.diamonds{ --accent:#D91E18; }
#stars .card.clubs, #stars .card.spades { --accent:#141414; }


/* Certificar que o conteúdo não bloqueia o clique */
#stars .card .textstars, #stars .card .symbol, #stars .card .center-content{ pointer-events: none; }


/* Hover/focus: levanta, brilho e anel na cor do naipe */
#stars .card:hover, #stars .card:focus-visible{
transform: translateY(-6px) scale(1.03);
outline: none;
}
/* Subtil feedback no título */
#stars .card:hover .center-content .job-title, #stars .card:focus-visible .center-content .job-title{ text-decoration: none; }


/* Acessibilidade: focus ring visível em teclados */
#stars .card:focus-visible{ outline: 3px solid var(--accent); outline-offset: 4px; }


/* Respeitar utilizadores com menos motion */
@media (prefers-reduced-motion: reduce){
#stars .card{ transition: none; }
}

/* Container centrado com wrap */
#stars .box{
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
  justify-content: center;  /* <-- centra com 1..4 cartas */
  align-items: stretch;
  margin-left: auto;
  margin-right: auto;
}

/* Cartas */
#stars .card{
  flex: 0 1 200px;          /* base ~200px; quebra para a linha de baixo quando não couber */
  display: block;
  text-decoration: none;
  background: #03515A;
  border: none !important;
  border-radius: 0;
}

.svg-icon-logo-top {
    width: 3rem;
    padding: 1rem;
    position: absolute !important;
    top: 0;
}

.image-morethanbuilders-right {
    position: absolute!important;
    bottom: 0;
    right: .5rem;
    width: 6rem;
}

#stars .job-title{ color: #fff; }

@media (max-width: 768px){
  #stars .card{ flex-basis: 160px; }
}


.svg-bg-card-star svg{
    min-height: 100%;
    opacity: .2;
    z-index: 0;
    position: fixed;
}

.d-none {
    display:none;
}

:root{
  /* relativo ao ficheiro CSS: ../images/...  */
  --card-bg: url('../images/modern-minimalist-office-black-white.jpg') center/cover no-repeat;
}

#stars .card{
  position: relative;
  overflow: hidden;
  background-color: #03515A;
  border: none !important;
  border-radius: 0;
  text-decoration: none;
}

#stars .card .svg-bg-card-star{
  position: absolute;
  inset: 0;
  background: var(--card-bg);
  opacity: .1;
  pointer-events: none;
}

#stars .card > *{ position: relative; z-index: 1; }