.text-justify {
  text-align: justify;
}

.card-style {
  max-width: 235px;
  height: 300px;
  text-align: center;
  margin: 6px 0;
  padding: 45px 15px 45px 15px;
  border: solid 1px transparent;
  border-radius: 10px;
  background-color: #f5f5f5;
  filter: drop-shadow(0 5px 20px #00000020);
}

.section {
  position: relative;
  width: 100%;
  display: block;
  display: -ms-flexbox;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -ms-flex-pack: center;
  justify-content: center;
}

/* ==========================================================================
   BOTÃO HISTÓRICO PROFISSIONAL (CARDS DA EQUIPE) — AÇO ESCOVADO
   ========================================================================== */
.btn-historico-modal {
  position: relative;
  font-family: "Be Vietnam", sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 2;
  height: 50px;
  transition: all 0.25s ease;
  border-radius: 8px;
  width: 240px;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  align-self: center;
  border: 1px solid #4a5160;
  cursor: pointer;
  background: linear-gradient(135deg, #373d48 0%, #22262f 100%);
  color: #fff;
  box-shadow: 0 10px 25px 0 rgba(0, 0, 0, 0.25);
  gap: 8px;
  text-decoration: none;
  outline: none;
}

.btn-historico-modal:hover {
  background: linear-gradient(135deg, #474f5d 0%, #2d323e 100%);
  border-color: #5c6576;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px 0 rgba(0, 0, 0, 0.35);
  color: #fff;
}

.btn-historico-modal .icon-expand {
  display: inline-block;
  vertical-align: middle;
  transition: transform 0.25s ease;
}

.btn-historico-modal:hover .icon-expand {
  transform: scale(1.15);
}

/* ==========================================================================
   MODAL GLOBAL DE HISTÓRICO PROFISSIONAL (TELA CHEIA)
   Ocupa a viewport completa (100vw x 100vh) com backdrop blur e card elegante.
   ========================================================================== */
.nc-modal-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 9999999 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 20px;
  box-sizing: border-box;
}

.nc-modal-overlay.is-active {
  opacity: 1 !important;
  visibility: visible !important;
}

.nc-modal-backdrop {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(18, 22, 28, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1;
}

.nc-modal-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.nc-modal-card {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #cbd2dc;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45), 0 0 1px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow: hidden;
  transform: scale(0.92) translateY(15px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.nc-modal-overlay.is-active .nc-modal-card {
  transform: scale(1) translateY(0);
}

.nc-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f0f3f6;
  color: #2b303a;
  border: 1px solid #d5dbe3;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nc-modal-close:hover {
  background: #2b303a;
  color: #ffffff;
  border-color: #2b303a;
  transform: rotate(90deg) scale(1.05);
}

.nc-modal-scroll {
  padding: 40px 45px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.nc-modal-scroll::-webkit-scrollbar {
  width: 8px;
}

.nc-modal-scroll::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 8px;
}

.nc-modal-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 8px;
}

.nc-modal-scroll::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.nc-modal-header {
  display: flex;
  align-items: center;
  gap: 25px;
}

.nc-modal-avatar-frame {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #cbd2dc;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  background: #f8fafc;
}

.nc-modal-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nc-modal-header-info {
  flex: 1;
}

.nc-modal-title {
  font-family: "Be Vietnam", sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #1e232b;
  margin: 0 0 12px 0;
  line-height: 1.25;
}

.nc-modal-linkedin-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #373d48 0%, #232730 100%);
  color: #ffffff !important;
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid #4a5260;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.nc-modal-linkedin-btn:hover {
  background: linear-gradient(135deg, #474f5d 0%, #2f3440 100%);
  border-color: #5c6576;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  color: #ffffff !important;
}

.nc-modal-linkedin-btn img {
  width: 18px;
  height: 18px;
}

.nc-modal-divider {
  border: 0;
  height: 1px;
  background: #e5e9f0;
  margin: 25px 0 20px 0;
}

.nc-modal-body p {
  font-family: "Be Vietnam", sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: #374151;
  margin: 0 0 16px 0;
  text-align: justify;
}

.nc-modal-body p:last-child {
  margin-bottom: 0;
}

@media screen and (max-width: 640px) {
  .nc-modal-scroll {
    padding: 30px 20px;
  }
  .nc-modal-header {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  .nc-modal-header-info {
    text-align: center;
  }
  .nc-modal-avatar-frame {
    width: 100px;
    height: 100px;
    margin: 0 auto;
  }
  .nc-modal-title {
    font-size: 22px;
  }
  .nc-modal-body p {
    font-size: 14px;
    line-height: 1.65;
  }
}

/* ==========================================================================
   COMPATIBILIDADE RETROATIVA COM A ESTRUTURA LEGADA DE CHECKBOX (SE HOUVER)
   ========================================================================== */
[type=checkbox]:checked,
[type=checkbox]:not(:checked) {
  position: absolute;
  left: -9999px;
}

.modal-toggle:checked+label,
.modal-toggle:not(:checked)+label {
  position: relative;
  font-family: "Be Vietnam", sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 2;
  height: 50px;
  transition: all 0.2s linear;
  border-radius: 8px;
  width: 240px;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  align-self: center;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #373d48 0%, #22262f 100%);
  color: #fff;
  border: 1px solid #4a5160;
  box-shadow: 0 10px 25px 0 rgba(0, 0, 0, 0.25);
}

.modal-toggle:not(:checked)+label:hover {
  background: linear-gradient(135deg, #474f5d 0%, #2d323e 100%);
}

.modal {
  position: fixed;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100000;
  overflow-x: hidden;
  background-color: rgba(31, 32, 41, 0.75);
  pointer-events: none;
  opacity: 0;
  transition: opacity 250ms 0.7s ease;
}

.modal-toggle:checked~.modal {
  pointer-events: auto;
  opacity: 1;
  transition: all 0.3s ease-in-out;
}

.modal-wrap {
  position: relative;
  display: block;
  width: 80vw;
  margin: 20px auto;
  padding: 35px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #fff;
  align-self: center;
  box-shadow: 0 12px 25px 0 rgba(199, 175, 189, 0.25);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 250ms 250ms ease, transform 0.3s 250ms ease;
}

.modal-wrap img {
  display: block;
  width: max(10vw, 250px);
  height: auto;
  margin: 10px auto;
}

.modal-wrap p {
  padding: 10px 20px 0 10px;
}

.modal-toggle:checked~.modal .modal-wrap {
  opacity: 1;
  transform: scale(1);
  transition: opacity 250ms 0.5s ease, transform 350ms 0.5s ease;
}
