/* ==========================================================
   PROFQUI/UFPB — Matriz Curricular
   Versão 1.0.3
   ========================================================== */

#profqui-matriz {
  --pq-mat-azul-escuro: #10384e;
  --pq-mat-azul: #174a66;
  --pq-mat-azul-vivo: #2a7fff;
  --pq-mat-turquesa: #00d4aa;
  --pq-mat-ciano: #00ccff;
  --pq-mat-fundo: #f2fafd;
  --pq-mat-borda: #cfe0e8;
  --pq-mat-texto: #172b36;
  --pq-mat-suave: #526b78;

  width: 100%;
  margin: 0 0 64px;
  color: var(--pq-mat-texto);
  font-family: "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

#profqui-matriz,
#profqui-matriz *,
#profqui-matriz *::before,
#profqui-matriz *::after {
  box-sizing: border-box;
}

#profqui-matriz h1,
#profqui-matriz h2,
#profqui-matriz h3,
#profqui-matriz p,
#profqui-matriz ul {
  margin-top: 0;
}

#profqui-matriz h1,
#profqui-matriz h2,
#profqui-matriz h3 {
  color: inherit;
  font-family: inherit;
  text-transform: none;
}

#profqui-matriz a:focus-visible,
#profqui-matriz button:focus-visible {
  outline: 3px solid var(--pq-mat-turquesa);
  outline-offset: 4px;
}

.profqui-matriz__hero {
  position: relative;
  display: grid;
  min-height: 360px;
  margin: 0 0 32px;
  padding: clamp(38px, 5vw, 66px);
  grid-template-columns: minmax(0, 1.4fr) minmax(270px, .72fr);
  gap: clamp(30px, 5vw, 58px);
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 88% 16%, rgba(0, 204, 255, .20), transparent 29%),
    radial-gradient(circle at 74% 94%, rgba(0, 212, 170, .17), transparent 35%),
    linear-gradient(135deg, #f7fcff 0%, #edfaff 52%, #f2fffb 100%);
  border: 1px solid var(--pq-mat-borda);
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(23, 74, 102, .10);
}

.profqui-matriz__hero::before {
  position: absolute;
  top: -150px;
  right: -75px;
  z-index: -1;
  width: 355px;
  height: 355px;
  content: "";
  border: 1px solid rgba(42, 127, 255, .14);
  border-radius: 50%;
  box-shadow:
    0 0 0 48px rgba(0, 212, 170, .045),
    0 0 0 96px rgba(0, 204, 255, .032);
}

.profqui-matriz__eyebrow,
.profqui-matriz__card-kicker,
.profqui-matriz__periodo-kicker,
.profqui-matriz__resumo-kicker {
  display: inline-flex;
  align-items: center;
  margin: 0 0 12px;
  color: #087d69;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .10em;
  line-height: 1.2;
  text-transform: uppercase;
}

.profqui-matriz__eyebrow::before,
.profqui-matriz__card-kicker::before {
  width: 8px;
  height: 8px;
  margin-right: 8px;
  content: "";
  background: var(--pq-mat-turquesa);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(0, 212, 170, .12);
}

#profqui-matriz .profqui-matriz__titulo {
  max-width: 720px;
  margin: 0 0 18px;
  color: var(--pq-mat-azul-escuro);
  font-size: clamp(40px, 5vw, 62px);
  font-weight: 850;
  letter-spacing: -.045em;
  line-height: 1.03;
}

.profqui-matriz__lead {
  max-width: 790px;
  margin: 0;
  color: var(--pq-mat-suave);
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.72;
}

.profqui-matriz__lead strong {
  color: var(--pq-mat-azul-escuro);
}

.profqui-matriz__resumo {
  position: relative;
  padding: 28px 26px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(145deg, #10384e 0%, #174a66 56%, #216d8e 100%);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 22px;
  box-shadow: 0 20px 38px rgba(16, 56, 78, .20);
}

.profqui-matriz__resumo::before,
.profqui-matriz__resumo::after {
  position: absolute;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
}

.profqui-matriz__resumo::before {
  top: -74px;
  right: -62px;
  width: 180px;
  height: 180px;
}

.profqui-matriz__resumo::after {
  bottom: -48px;
  left: -38px;
  width: 112px;
  height: 112px;
  background: rgba(0, 212, 170, .07);
}

.profqui-matriz__resumo > * {
  position: relative;
  z-index: 1;
}

.profqui-matriz__resumo-kicker {
  color: var(--pq-mat-turquesa);
}

.profqui-matriz__resumo-numeros {
  display: grid;
  margin-bottom: 18px;
  gap: 2px;
}

.profqui-matriz__resumo-numeros strong {
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1.08;
}

.profqui-matriz__resumo-numeros span {
  color: #d6e7ee;
  font-size: 18px;
  font-weight: 700;
}

.profqui-matriz__resumo-divisor {
  height: 1px;
  margin: 0 0 17px;
  background: rgba(255, 255, 255, .18);
}

.profqui-matriz__resumo-item + .profqui-matriz__resumo-item {
  margin-top: 13px;
}

.profqui-matriz__resumo-item strong,
.profqui-matriz__resumo-item span {
  display: block;
}

.profqui-matriz__resumo-item strong {
  color: #fff;
  font-size: 16px;
}

.profqui-matriz__resumo-item span {
  margin-top: 2px;
  color: #d7e7ed;
  font-size: 14px;
}

.profqui-matriz__bloco,
.profqui-matriz__cards {
  max-width: 1080px;
  margin-right: auto;
  margin-left: auto;
}

.profqui-matriz__bloco {
  margin-bottom: 26px;
  padding: clamp(28px, 4vw, 42px);
  background: #fff;
  border: 1px solid var(--pq-mat-borda);
  border-radius: 20px;
  box-shadow: 0 13px 34px rgba(23, 74, 102, .075);
}

#profqui-matriz .profqui-matriz__bloco h2,
#profqui-matriz .profqui-matriz__card h2 {
  margin: 0 0 13px;
  color: var(--pq-mat-azul-escuro);
  font-size: clamp(27px, 3.6vw, 38px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.12;
}

.profqui-matriz__bloco > p,
.profqui-matriz__card > p,
.profqui-matriz__apoio {
  margin-bottom: 0;
  color: var(--pq-mat-suave);
  line-height: 1.74;
}

/* ---------- Timeline ---------- */

.profqui-matriz__bloco--timeline {
  max-width: 1180px;
  padding-bottom: clamp(30px, 4vw, 46px);
}

.profqui-matriz__bloco-head {
  display: block;
  margin-bottom: 26px;
}

.profqui-matriz__bloco-head > div:first-child {
  max-width: 860px;
}

.profqui-matriz__timeline {
  position: relative;
}

.profqui-matriz__timeline-shell {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  gap: 8px;
  align-items: start;
  margin-bottom: 30px;
}

.profqui-matriz__timeline-rail {
  position: relative;
  min-width: 0;
  padding-top: 0;
}

.profqui-matriz__timeline-track {
  position: absolute;
  top: 10px;
  left: 12.5%;
  right: 12.5%;
  height: 4px;
  overflow: hidden;
  background: #d7e3ea;
  border-radius: 999px;
  z-index: 1;
}

.profqui-matriz__timeline-progress {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--pq-mat-turquesa), var(--pq-mat-ciano), var(--pq-mat-azul-vivo));
  border-radius: inherit;
  transition: width 360ms cubic-bezier(.22, 1, .36, 1);
}

.profqui-matriz__timeline-points {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.profqui-matriz__timeline-point {
  position: relative;
  display: grid;
  min-width: 0;
  padding: 0 4px;
  place-items: center;
  gap: 9px;
  color: var(--pq-mat-suave);
  background: transparent !important;
  border: 0 !important;
  border-radius: 18px;
  box-shadow: none !important;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  font: inherit;
  text-align: center;
  text-decoration: none;
  overflow: visible;
}

.profqui-matriz__timeline-point:hover,
.profqui-matriz__timeline-point:focus,
.profqui-matriz__timeline-point:active,
.profqui-matriz__timeline-point.is-active {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.profqui-matriz__timeline-point:focus-visible {
  background: transparent !important;
  box-shadow: none !important;
}

.profqui-matriz__timeline-point::-moz-focus-inner {
  border: 0;
  padding: 0;
}

.profqui-matriz__timeline-point::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -12px;
  transform: translateX(-50%) scale(.65);
  width: 138px;
  height: 56px;
  border-radius: 999px;
  background: radial-gradient(circle at center, rgba(0, 212, 170, .28) 0%, rgba(0, 212, 170, .16) 34%, rgba(0, 212, 170, .06) 58%, rgba(0, 212, 170, 0) 74%);
  opacity: 0;
  filter: blur(11px);
  transition: opacity 220ms ease, transform 280ms ease;
  pointer-events: none;
  z-index: -1;
}

.profqui-matriz__timeline-point.is-active::before {
  opacity: 1;
  transform: translateX(-50%) scale(1);
  animation: pqMatPulseGlow 1.85s ease-in-out infinite;
}

@keyframes pqMatPulseGlow {
  0%, 100% {
    opacity: .82;
    transform: translateX(-50%) scale(.96);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.05);
  }
}

.profqui-matriz__timeline-dot {
  position: relative;
  display: block;
  width: 22px;
  height: 22px;
  background: #fff;
  border: 4px solid #adc9d7;
  border-radius: 50%;
  box-shadow: 0 0 0 5px #fff;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
  z-index: 2;
}

.profqui-matriz__timeline-dot::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
  transform: translate(-50%, -50%);
  transition: background-color 180ms ease, width 180ms ease, height 180ms ease;
}

.profqui-matriz__timeline-label {
  display: block;
  color: var(--pq-mat-suave);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  transition: color 180ms ease, transform 180ms ease;
}

.profqui-matriz__timeline-point:hover .profqui-matriz__timeline-dot {
  border-color: var(--pq-mat-turquesa);
}

.profqui-matriz__timeline-point.is-active .profqui-matriz__timeline-dot {
  border-color: var(--pq-mat-azul);
  transform: scale(1.02);
  box-shadow:
    0 0 0 5px #fff,
    0 0 0 9px rgba(0, 212, 170, .16);
}

.profqui-matriz__timeline-point.is-active .profqui-matriz__timeline-dot::after {
  width: 10px;
  height: 10px;
  background: var(--pq-mat-turquesa);
}

.profqui-matriz__timeline-point.is-active .profqui-matriz__timeline-label {
  color: var(--pq-mat-azul-escuro);
  transform: translateY(1px);
}

.profqui-matriz__nav {
  position: relative;
  display: inline-grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  transition: transform 160ms ease, opacity 160ms ease;
}

.profqui-matriz__nav::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 10px;
  width: 22px;
  height: 22px;
  transform: translate(-50%, -50%);
  background: rgba(0, 212, 170, 0);
  border-radius: 50%;
  filter: blur(8px);
  transition: background-color 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.profqui-matriz__nav-icon {
  position: relative;
  top: 0;
  display: block;
  width: 0;
  height: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
}

.profqui-matriz__nav--prev .profqui-matriz__nav-icon {
  border-right: 16px solid #9ab2bd;
}

.profqui-matriz__nav--next .profqui-matriz__nav-icon {
  border-left: 16px solid #9ab2bd;
}

.profqui-matriz__nav:hover:not(:disabled)::before,
.profqui-matriz__nav:focus-visible::before {
  background: rgba(0, 212, 170, .25);
  transform: translate(-50%, -50%) scale(1.15);
}

.profqui-matriz__nav--prev:hover:not(:disabled) .profqui-matriz__nav-icon,
.profqui-matriz__nav--prev:focus-visible .profqui-matriz__nav-icon {
  border-right-color: var(--pq-mat-turquesa);
}

.profqui-matriz__nav--next:hover:not(:disabled) .profqui-matriz__nav-icon,
.profqui-matriz__nav--next:focus-visible .profqui-matriz__nav-icon {
  border-left-color: var(--pq-mat-turquesa);
}

.profqui-matriz__nav:hover:not(:disabled) {
  transform: scale(1.03);
}

.profqui-matriz__nav:disabled {
  opacity: .34;
  cursor: default;
}

.profqui-matriz__nav--prev:disabled .profqui-matriz__nav-icon {
  border-right-color: #c8d7de;
}

.profqui-matriz__nav--next:disabled .profqui-matriz__nav-icon {
  border-left-color: #c8d7de;
}

/* ---------- Painéis da timeline ---------- */

.profqui-matriz__timeline-panels {
  min-height: 290px;
}

.profqui-matriz__timeline-panel {
  display: none;
  position: relative;
  padding: clamp(25px, 4vw, 38px);
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 12%, rgba(0, 204, 255, .08), transparent 31%),
    #f9fcfd;
  border: 1px solid #c9dfe8;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(23, 74, 102, .055);
}

.profqui-matriz__timeline-panel.is-active {
  display: block;
}

.profqui-matriz__timeline-panel[hidden] {
  display: none !important;
}

.profqui-matriz__timeline-panel:not([hidden]) {
  animation: pqMatPainelEntrada 300ms cubic-bezier(.22, 1, .36, 1);
}

@keyframes pqMatPainelEntrada {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.profqui-matriz__periodo-head {
  display: flex;
  margin-bottom: 24px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.profqui-matriz__periodo-kicker {
  margin-bottom: 7px;
  color: #087d69;
}

#profqui-matriz .profqui-matriz__periodo-head h3 {
  max-width: 690px;
  margin: 0;
  color: var(--pq-mat-azul-escuro);
  font-size: clamp(23px, 3vw, 31px);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.18;
}

.profqui-matriz__periodo-meta {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.profqui-matriz__periodo-meta span {
  display: inline-flex;
  min-height: 32px;
  padding: 6px 10px;
  align-items: center;
  color: var(--pq-mat-azul);
  background: #fff;
  border: 1px solid #bdd6e1;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.profqui-matriz__periodo-meta--duplo {
  max-width: 330px;
}

.profqui-matriz__componentes {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 10px;
  list-style: none;
}

.profqui-matriz__componentes li {
  display: grid;
  padding: 14px 16px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  background: #fff;
  border: 1px solid #d5e5ec;
  border-radius: 12px;
}

.profqui-matriz__componentes li > span {
  min-width: 0;
  color: var(--pq-mat-texto);
  font-weight: 700;
  line-height: 1.45;
}

.profqui-matriz__componentes li > strong {
  color: var(--pq-mat-azul);
  font-size: 14px;
  line-height: 1.35;
  text-align: right;
}

.profqui-matriz__componentes .profqui-matriz__componente-destaque {
  background:
    linear-gradient(135deg, rgba(0, 212, 170, .075), rgba(0, 204, 255, .055)),
    #fff;
  border-color: #a9ddd4;
}

.profqui-matriz__nota-destaque {
  margin-top: 16px;
  padding: 15px 17px;
  color: #24534d;
  background: #eefaf7;
  border: 1px solid #b8e2d9;
  border-radius: 12px;
}

.profqui-matriz__nota-destaque strong {
  color: #087d69;
}

.profqui-matriz__nota-destaque p {
  margin: 3px 0 0;
}

.profqui-matriz__importante {
  display: grid;
  margin-top: 18px;
  padding: 17px 19px;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  color: #314f60;
  background: #f3f9fc;
  border: 1px solid #c6dce6;
  border-radius: 12px;
}

.profqui-matriz__importante > strong {
  display: inline-flex;
  padding: 5px 9px;
  color: #fff;
  background: var(--pq-mat-azul);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.profqui-matriz__importante p {
  margin: 0;
}

.profqui-matriz__importante a {
  color: var(--pq-mat-azul) !important;
  font-weight: 800;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}

.profqui-matriz__cards {
  display: grid;
  margin-bottom: 26px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.profqui-matriz__card {
  position: relative;
  padding: clamp(25px, 3.5vw, 34px);
  overflow: hidden;
  background: var(--pq-mat-fundo);
  border: 1px solid var(--pq-mat-borda);
  border-radius: 18px;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.profqui-matriz__card::after {
  position: absolute;
  right: -58px;
  bottom: -65px;
  width: 155px;
  height: 155px;
  content: "";
  border: 1px solid rgba(42, 127, 255, .10);
  border-radius: 50%;
  pointer-events: none;
}

.profqui-matriz__card:hover {
  border-color: #b8d7e4;
  box-shadow: 0 13px 30px rgba(23, 74, 102, .09);
  transform: translateY(-3px);
}

.profqui-matriz__cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  min-height: 44px;
  margin-top: 18px;
  padding: 10px 14px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff !important;
  background: var(--pq-mat-azul);
  border: 1px solid var(--pq-mat-azul);
  border-radius: 9px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none !important;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.profqui-matriz__cta::after {
  content: "→";
  font-size: 17px;
}

.profqui-matriz__cta:hover {
  background: #0f5c7e;
  border-color: #0f5c7e;
  transform: translateX(2px);
}

.profqui-matriz__bloco--prazo {
  margin-bottom: 0;
  background: linear-gradient(135deg, #fff 0%, #f4fbfd 100%);
}

@media (max-width: 900px) {
  .profqui-matriz__hero {
    grid-template-columns: 1fr;
  }

  .profqui-matriz__resumo {
    max-width: none;
  }

  .profqui-matriz__periodo-head {
    align-items: stretch;
    flex-direction: column;
  }

  .profqui-matriz__periodo-meta {
    justify-content: flex-start;
  }

  .profqui-matriz__periodo-meta--duplo {
    max-width: none;
  }
}

@media (max-width: 700px) {
  #profqui-matriz {
    font-size: 16px;
  }

  .profqui-matriz__hero {
    min-height: 0;
    padding: 32px 23px;
    border-radius: 19px;
  }

  .profqui-matriz__bloco {
    padding: 27px 22px;
    border-radius: 17px;
  }

  .profqui-matriz__timeline-shell {
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    gap: 4px;
  }

  .profqui-matriz__timeline-track {
    left: 12.5%;
    right: 12.5%;
  }

  .profqui-matriz__timeline-label {
    font-size: 13px;
  }

  .profqui-matriz__timeline-panel {
    padding: 23px 19px;
  }

  .profqui-matriz__componentes li {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .profqui-matriz__componentes li > strong {
    text-align: left;
  }

  .profqui-matriz__cards {
    grid-template-columns: 1fr;
  }

  .profqui-matriz__importante {
    grid-template-columns: 1fr;
  }

  .profqui-matriz__importante > strong {
    width: fit-content;
  }
}

@media (max-width: 430px) {
  .profqui-matriz__timeline-shell {
    grid-template-columns: 26px minmax(0, 1fr) 26px;
    gap: 2px;
  }

  .profqui-matriz__timeline-track {
    left: 12.5%;
    right: 12.5%;
    top: 9px;
  }

  .profqui-matriz__timeline-point {
    padding: 0 2px;
  }

  .profqui-matriz__timeline-point::before {
    width: 92px;
    height: 42px;
    top: -8px;
  }

  .profqui-matriz__timeline-label {
    max-width: 74px;
    font-size: 12px;
  }

  .profqui-matriz__timeline-dot {
    width: 18px;
    height: 18px;
    border-width: 3px;
    box-shadow: 0 0 0 4px #fff;
  }

  .profqui-matriz__timeline-dot::after {
    width: 6px;
    height: 6px;
  }

  .profqui-matriz__timeline-point.is-active .profqui-matriz__timeline-dot {
    box-shadow: 0 0 0 4px #fff, 0 0 0 8px rgba(0, 212, 170, .15);
  }

  .profqui-matriz__timeline-point.is-active .profqui-matriz__timeline-dot::after {
    width: 8px;
    height: 8px;
  }

  .profqui-matriz__nav {
    width: 26px;
    height: 26px;
  }

  .profqui-matriz__nav::before {
    width: 14px;
    height: 14px;
  }

  .profqui-matriz__nav-icon {
    border-top-width: 8px;
    border-bottom-width: 8px;
  }

  .profqui-matriz__nav--prev .profqui-matriz__nav-icon {
    border-right-width: 12px;
  }

  .profqui-matriz__nav--next .profqui-matriz__nav-icon {
    border-left-width: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #profqui-matriz *,
  #profqui-matriz *::before,
  #profqui-matriz *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .profqui-matriz__card:hover,
  .profqui-matriz__cta:hover,
  .profqui-matriz__nav:hover:not(:disabled) {
    transform: none;
  }
}
