/* =====================================================
   PARTIAL: TIMELINE — BANCO SOL (COMPLETO AJUSTADO)
   Ficheiro: timeline.css ou styles.css
===================================================== */

/* =====================================================
   FIX: NADA PODE SOBREPOR O MENU AO FAZER SCROLL
===================================================== */

header,
.site-header,
.header,
.navbar,
.topbar,
.header-desktop,
.header-mobile{
  position: sticky;
  top: 0;
  z-index: 999999 !important;
  background: #fff;
  isolation: isolate;
}

/* Secções nunca acima do header */
main,
section,
.bs-timeline{
  position: relative;
  z-index: 0 !important;
}

/* Evita “stacking contexts” que fazem subir camadas */
.hero,
.hero-interno,
.hero-carousel,
.bs-timeline{
  transform: none !important;
  filter: none !important;
}


/* =====================================================
   TIMELINE — BASE
===================================================== */

.bs-timeline{

  --sol-yellow: var(--sol-yellow, #FFD200);
  --sol-dark: #0b1220;
  --sol-muted: rgba(11,18,32,0.68);
  --sol-border: rgba(15,28,46,0.10);

  padding: 80px 0;
  background: #ffffff;

}


/* HEADER */

.bs-tl-head{
  max-width: 760px;
  margin-bottom: 40px;
}

.bs-tl-kicker{
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(11,18,32,0.70);
}

.bs-tl-head h2{
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 900;
  margin-top: 8px;
  margin-bottom: 10px;
  color: var(--sol-dark);
}

.bs-tl-head p{
  color: var(--sol-muted);
  line-height: 1.6;
  margin: 0;
}

.bs-tl-line{
  width: 70px;
  height: 4px;
  background: var(--sol-yellow);
  margin-top: 14px;
  border-radius: 2px;
}


/* WRAPPER */

.bs-tl-wrap{
  position: relative;
  padding-left: 40px;
}


/* LINHA VERTICAL */

.bs-tl-wrap::before{
  content: "";
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--sol-yellow),
    rgba(15,28,46,0.10),
    var(--sol-yellow),
    transparent
  );
  pointer-events: none;
}


/* ITEM (base) */

.bs-tl-item{
  position: relative;
  margin-bottom: 30px;
}


/* DOT */

.bs-tl-dot{
  position: absolute;
  left: 14px;
  top: 28px;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  background: var(--sol-yellow);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(255,210,0,0.18);
  pointer-events: none;
}


/* CARD */

.bs-tl-card{
  background: #ffffff;
  border: 1px solid var(--sol-border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(15,28,46,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.bs-tl-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(15,28,46,0.12);
  border-color: rgba(255,210,0,0.40);
}


/* TOP */

.bs-tl-top{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}


/* YEAR */

.bs-tl-year{
  font-weight: 900;
  color: var(--sol-yellow);
  font-size: 16px;
}


/* TAG */

.bs-tl-tag{
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,210,0,0.15);
  border: 1px solid rgba(255,210,0,0.40);
  font-weight: 800;
  color: rgba(11,18,32,0.85);
}


/* TITLE */

.bs-tl-card h3{
  font-size: 18px;
  margin: 0 0 6px;
  font-weight: 900;
  color: var(--sol-dark);
}


/* TEXT */

.bs-tl-card p{
  margin: 0;
  color: var(--sol-muted);
  line-height: 1.6;
}


/* ANIMAÇÃO (quando visível) */

.bs-reveal{
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.bs-reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}


/* =====================================================
   VER MAIS — MOSTRAR SÓ 4 ITENS (CORRIGIDO)
===================================================== */

/* Por defeito: esconder todos os itens */
.bs-tl-wrap .bs-tl-item{
  display: none;
}

/* Mostrar apenas os 4 primeiros */
.bs-tl-wrap .bs-tl-item:nth-of-type(-n+4){
  display: block;
}

/* Expandido: mostrar todos */
.bs-timeline.expanded .bs-tl-wrap .bs-tl-item{
  display: block;
}


/* BOTÃO */

.bs-tl-more-wrap{
  text-align: center;
  margin-top: 40px;
}

.bs-tl-more-btn{
  background: var(--sol-yellow, #FFD200);
  border: none;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
}

.bs-tl-more-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 768px){

  .bs-timeline{
    padding: 50px 0;
  }

  .bs-tl-wrap{
    padding-left: 30px;
  }

  .bs-tl-top{
    flex-direction: column;
    align-items: flex-start;
  }

}