/*!
==========================================================
LINKS DO CURSO LIVRE
==========================================================
*/

.stbg-links-curso {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 15px;
}

.stbg-link-curso,
.stbg-inscricao-fechada {
  position: relative;

  &::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #8f1519;
    border-radius: 8px 8px 0 0;
  }
}

/* ==========================================================
   PROGRAMAÇÃO E REQUERIMENTO
========================================================== */

.stbg-link-curso {
  background: #f7f7f7;
  color: #292929;
  text-decoration: none;
  cursor: pointer;

  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;

  i {
    flex-shrink: 0;
    font-size: 22px;
    color: #8f1519;
  }

  &:hover {
    color: #8f1519;
    border-color: #8f1519;
    transform: translateY(-2px);
  }
}

/* ==========================================================
   BOTÃO DE INSCRIÇÃO
========================================================== */

.stbg-botao-inscricao,
.stbg-botao-inscricao:focus,
.stbg-botao-inscricao:active,
.stbg-botao-inscricao:visited {
  background: #8f1519 !important;
  border-color: #8f1519 !important;
  color: #fff !important;

  i {
    color: #fff !important;
  }
}

.stbg-botao-inscricao:hover {
  background: #721114 !important;
  border-color: #721114 !important;
  color: #fff !important;
}

.stbg-botao-inscricao:focus-visible {
  outline: 3px solid rgba(143, 21, 25, 0.3);
  outline-offset: 3px;
}

/* ==========================================================
   INSCRIÇÕES FECHADAS
========================================================== */

.stbg-inscricao-fechada {
  background: #f7f7f7;
  color: #666;

  i {
    flex-shrink: 0;
    font-size: 22px;
    color: #8f1519;
  }
}

/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 1024px) {
  .stbg-links-curso {
    gap: 12px;
    margin-top: 15px;
  }

  .stbg-link-curso,
  .stbg-inscricao-fechada {
    min-height: 68px;
    padding: 18px 20px;
    font-size: 16px;
  }
}

/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 600px) {
  .stbg-links-curso {
    gap: 10px;
    margin-top: 12px;
  }

  .stbg-link-curso,
  .stbg-inscricao-fechada {
    justify-content: flex-start;
    min-height: 64px;
    padding: 16px 20px;
    font-size: 15px;
  }

  .stbg-link-curso i,
  .stbg-inscricao-fechada i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
    border-radius: 50%;
    background: #f3e5e5;
    color: #8f1519;
  }
}
