.header-home {
  padding-bottom: 40px;
  background-color: #F4F6FF;
  position: relative;
  overflow: hidden;
  z-index: 1;

  background-image: url("../../../../images/mapa-brasil-azul-claro.png");
  background-repeat: no-repeat;
  background-position: top -100px right 300px;
  background-size: 450px;
}

.header-home::before {
  content: "";
  position: absolute;
  top: -99px;
  left: -30px;
  width: 320px;
  height: 320px;
  background-image: url("../../../../images/poligono-verde-claro-preenchido.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  z-index: 20;
  pointer-events: none;
}

.header-home::after {
  content: "";
  position: absolute;
  top: 80px;
  right: -30px;
  width: 300px;
  height: 300px;
  background-image: url("../../../../images/poligono-vermelho-vazio.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  z-index: 20;
  pointer-events: none;
}

.header-home .container {
  position: relative;
}

.hero-bg-color {
  background-color: #F4F6FF;
  padding-bottom: 40px;
  
}

.bg-home-courses {
 position: relative;
  overflow: hidden;
  z-index: 1;
}

.bg-home-logo {
  background: #E7EBFF;
  height: 208px;
  border-radius: 40px 20px 120px 40px;
  margin-bottom: 40px;
  margin-top: 80px!important;
  position: absolute;
  box-shadow: 0px 0px 2px 0px #00000040;
}

.icone-acesso-ava{
  margin-right: 12px;
}

.bg-home-logo h1{
  font-weight: 600;
  font-size: 32px;
  line-height: 120%;
  color: #153CFE;
}

.bg-home-logo h1 strong {
  font-weight: 800;
}

.bg-home-hero {
  background-color: #FFFFFF;
  background-image: url("../../../../images/pattern-geometrico.png");
  background-repeat: no-repeat;
  background-position: top 40px right 40px;
  background-size: 50%;
  border-radius: 40px 20px 120px 40px;
  padding: 50px;
}

.texto-home-hero p{
  font-weight: 500;
  font-size: 16px;
  line-height: 150%;
}

.texto-home-hero p strong{
  font-weight: 700;
}

.tags-home{
  list-style: none;
  padding-left: 0;
}

.tags-home li{
  margin-bottom: 6px;
}

.tags-home li a {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  
  font-weight: 600;
  font-size: 16px;

  color: #fff; 
  border-radius: 8px 4px 8px 4px;
  text-decoration: none;
  padding: 6px;
  cursor: pointer;

  white-space: normal;
  overflow-wrap: break-word;
}

.tags-home li:nth-child(1) a {
  background-color: var(--saude-mental);
  color: #0A0A0A; 
}

.tags-home li:nth-child(1) a:hover  {
  background-color: #CCA000;
}

.tags-home li:nth-child(2) a {
  background-color: var(--saude-idoso);
  color: #fff; 
}

.tags-home li:nth-child(2) a:hover  {
  background-color: #2E7D32;
}

.tags-home li:nth-child(3) a {
  background-color: var(--saude-mulher);
  color: #fff; 
}

.tags-home li:nth-child(3) a:hover  {
  background-color: #9F1515;
}

.tags-home li:nth-child(4) a {
  background-color: var(--doencas-cronicas);
  color: #fff; 
}

.tags-home li:nth-child(4) a:hover  {
  background-color: #00167A;
}

.tags-home li:nth-child(5) a {
  background-color: var(--saude-crianca-adolescente);
  color: #fff; 
}

.tags-home li:nth-child(5) a:hover  {
  background-color: #A00858;
}

.tags-home li:nth-child(2) a:hover,
.tags-home li:nth-child(3) a:hover,
.tags-home li:nth-child(4) a:hover,
.tags-home li:nth-child(5) a:hover {
  color: #fff; 
}

.bg-home-hero .video-home h2 {
  font-weight: 700;
  font-size: 28px;
  color: #000;
  margin-bottom: 30px;
}

.video-home {
  .card {
    border: 2px solid #153CFE;
    border-radius: 8px 24px 48px 24px;
    overflow: hidden; 
  }

  .card-img-top {
    cursor: pointer;
  }

  .accordion-item {
    border: none;
  }

  .accordion {
    border-top: 2px solid #153CFE;
  }

  .accordion-button {
    border-radius: 0 0 48px 24px;
    border: none;
  }

  .accordion-button:not(.collapsed), .accordion-button:focus, .accordion .accordion-button  {
    background-color: #E7EBFF;
    color: #153CFE;
    font-weight: 600;
    font-size: 16px;
    line-height: 100%;
  }

  button:focus {
    outline:  2px solid #153CFE!important;
  }

  .accordion .accordion-body{
    font-weight: 500;
    font-size: 12px;
    color:#0A0A0A;
  }
  
  .texto-transcricao {
    text-align: justify;
    font-weight: 500;
    font-size: 16px;
    line-height: 150%;
  }
}

.descricao-home {
  background-color: #153CFE;
  border: 2px solid #FECE00;
  border-radius: 30px;
  padding: 10px;
  transition: all 0.3s ease-in-out;

  p {
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    margin: 0;
    color: #fff;
  }
}

.descricao-home:hover {
  background: #00CF00;
  box-shadow: inset 0 -2px 3px rgba(0, 0, 0, 0.1), inset 0 -2px 3px rgba(0, 0, 0, 0.2), 0 3px 3px rgba(0, 0, 0, 0.8);
  transform: translateY(-3px);
}

.botao-acesso {
  position: absolute;
  top: -20px;
  right: -20px;

  border: 2px solid #153CFE;
  background-color: #fff;
  padding: 10px 16px;
  border-radius: 60px;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
}

.botao-menu {
  position: absolute;
  top: -20px;
  right: 170px;

  border: 2px solid #153CFE;
  background-color: #fff;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
}

.botao-acesso p {
  margin: 0;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 2%;
  color: #153CFE;
}

.btn-ava:hover {
  background: #00CF00;
  box-shadow: inset 0 -2px 3px rgba(0, 0, 0, 0.1), inset 0 -2px 3px rgba(0, 0, 0, 0.2), 0 3px 3px rgba(0, 0, 0, 0.8);
  transform: translateY(-3px);
}


.bg-home-logo .icon-acesso img{
  margin-right: 0!important;
}

.icon-acesso-menu img {
  margin-right: 0;
}

.titulo-banner {
  color: #153CFE;
  margin-left: 12px;
}

.titulo-banner strong{
  font-weight: 800;
}

.botao-acesso-training {

  .icon-acesso, .icon-acesso-user, .icon-acesso-menu {
    box-shadow: 0px 0px 4px 0px #00000033;
    padding: 16px;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    margin-left: 12px;
    transition: all 0.3s ease-in-out;

    display: flex;
    justify-content: center;
    align-items: center;
  }

  .icon-acesso-menu {
    padding: 22px;
  }

  .icon-acesso:hover, .icon-acesso-menu:hover {
    background: #00CF00;
    box-shadow: inset 0 -2px 3px rgba(0, 0, 0, 0.1), inset 0 -2px 3px rgba(0, 0, 0, 0.2), 0 3px 3px rgba(0, 0, 0, 0.8);
    transform: translateY(-3px);
  }

  .icon-acesso:first-child {
    margin-left: 0;
  }

  .btn-perfil:hover {
    background-color: #fff;
    box-shadow: none;
    transform: none;
  }

  .icon-acesso, .icon-acesso-menu {
    .nav-link:focus, .nav-link:hover {
      outline: none!important;
    }

    .dropdown-menu {
      text-align: center;
      border-radius: 16px;
      text-transform: none;
      inset: 0px auto auto -60px!important;
      margin: 10px 0 0 0!important;
    }

    .dropdown-menu li a{
      text-transform: none;

      font-size: 14px;
      line-height: 100%;
      letter-spacing: 0%;
      color: #324798;
      z-index: 9;
    }
  }
  
}
.icon-acesso {
  position: relative;
  z-index: 30;
}

.logout-dropdown {
  z-index: 9999 !important;
}

.video-container {
  position: relative;
}

video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.controls {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  padding: 10px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: end;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.controls.hide {
  opacity: 0;
  pointer-events: none;
}

#playPauseBtn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  font-size: 35px;
  background: rgba(255, 255, 255, 0.8);
  color: #153CFE;
  border: none;
  border-radius: 50%;
  width: 82px;
  height: 82px;
  cursor: pointer;
  box-shadow: 0px 4px 8px 0px #00000040;
}

#playPauseBtn.hide{
  opacity:0;
  pointer-events:none;
  transition:opacity .3s;
}

#fullscreen {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255,255,255,1);
  border: none;
  border-radius: 5px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  box-shadow: 0px 1.05px 2.11px 1.05px #00000033;
  z-index: 2;
}

#progress,
#volume {
  accent-color: #153CFE;
}

#progress {
  width: 100%;
  cursor: pointer;
}

.controls-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 5px;
}

.volume-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

#volume {
  width: 120px;
}

#volumeBtn {
  background: transparent;
  border: none;
}

#iconVolume {
  width: 20px;
  height: 20px;
}

#speed {
  background: white;
  border: none;
  padding: 4px;
  border-radius: 10px;
}

.ad-video-apresentacao {
  margin-right: 10px;
}

.time {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  font-size: 14px;
  margin-top: 6px;
}

.uv-card-user-info {
  text-align: justify;
  color: #757575;
  text-decoration: none;
  position: absolute;
    top: 16px;
    left: 16px;
}

.uv-card-user-info:hover {
  text-decoration: none;
}

.uv-card-user-info p {
  color: #0A0A0A;
  background-color: var(--bg-titulo);
}

.uv-matriculado {
  color: #0A0A0A!important;
  font-weight: 600!important;
  font-size: 12px;
  padding: 10px;
  border-radius: 12px 6px 12px 6px;
  text-align: center;
  width: 110px;
}

.uv-matriculado-tag {
  color: #0A0A0A!important;
  font-weight: 600!important;
  font-size: 12px;
  padding: 10px;
  border-radius: 12px 6px 12px 6px;
  text-align: center;
  width: 130px;
}

.uv-card-matriculado {
  position: static;
  p {
    font-size: 12px;
  }
  
}

.uv-card-user-info:hover p {
  color: #757575;
}

@media (max-width: 1200px) {
 .header-home::after {
    top: 120px;
  }
}

@media (max-width: 992px) {
 .header-home::after {
    top: 200px;
  }
}

@media (max-width: 768px) {
  /* .botao-acesso-training {
    & .icon-acesso, & .icon-acesso-menu {
      .dropdown-menu {
        inset: 0px auto auto -60px !important;
      }
    }
  } */

  .header-home::after {
    top: 280px;
  }

  .bg-home-logo {
    height: auto;
   
    text-align: center;
    padding: 40px 0;
  }

  .logo-med-header {
    margin: 0 auto;   
    display: block;  
  }

  .bg-home-logo h1 {
    margin-top: 20px;
  }

  .header-interna::after {
    top: 380px;
  }

  video {
    aspect-ratio: 4 / 3;
    overflow: hidden;
  }
}

@media (max-width: 575.98px) {
  .header-home::after  {
    width: 250px;
    height: 250px;
    top: 320px;
  }
  .header-home::before {
    width: 250px;
    height: 250px;
    top: -80px;
  }

  .header-interna::after {
    top: 420px;
    width: 250px;
    height: 250px;
  }
}

@media (max-width: 430px) {
  .header-home::after  {
    width: 200px;
    height: 200px;
    top: 350px;
  } 

  .header-home::before {
    width: 200px;
    height: 200px;
    top: -60px;
  }

  .header-interna::after {
    top: 450px;
    width: 200px;
    height: 200px;
  }

  video {
    aspect-ratio: 1 / 1;
    overflow: hidden;
  }
}

.dark-mode {
  #accessibility-bar, #page-topbar {
    background-color: var(--background-color-dark);
    color: var(--text-color-dark);

    a {
      text-decoration: underline;
      color: #ffff00;
    }

    .keyboard-options {
      background-color: var(--background-color-dark);
      color: var(--text-color-dark);
    }

    .accessibility-number {
      background-color: #ffff00;
      color: #000;
    }
  }
  .header-home, .bg-home-courses, .hero-bg-color {
    background-color: var(--background-color-dark);
    color: var(--text-color-dark);
  }

  .bg-home-hero, .bg-home-logo {
    background-color:#1e1e1e;
  }

  .bg-home-logo h1 {
    color: var(--text-color-dark);
  }

  .video-home {
    .card, .accordion  {
      border: 2px solid var(--background-color-dark);
    }

    .accordion-header {
      background-color: var(--background-color-dark);
    }
    .accordion-button:not(.collapsed), .accordion-button:focus, .accordion .accordion-button, .accordion .accordion-body  {
      background-color: var(--background-color-dark);
      color: var(--text-color-dark);
    }

    .accordion-button:not(.collapsed) {
      box-shadow: none; 
    }
  }

  button p {
    color: var(--text-color-light);
  }

  .botao-acesso p {
    color: #153CFE;
  }
  
  .img-qtd-cursos {
    filter: invert(1);
  }

  .bg-home-hero .video-home h2 {
    color: var(--text-color-dark);
  }
}

@media (max-width: 768px) {
  .botao-acesso-training {
    & .icon-acesso, & .icon-acesso-menu {
      .dropdown-menu {
        inset: 0px auto auto -80px !important; 
      }
    }
  }
}

@media (max-width: 576px) {
  .botao-acesso-training {
    & .icon-acesso, & .icon-acesso-menu {
      .dropdown-menu {
        inset: 0px auto auto -100px !important; 
      }
    }
  }
}