 /* Contenedor para la imagen con overlay */
.overlay-img-container {
    position: relative;
    overflow: hidden; /* Asegura que el overlay no se salga de los bordes de la imagen */
    height: 160px;
}

.overlay-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Hace que la imagen cubra el área completa */
    transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out; /* Transición suave para el zoom y el cambio de color */
    filter: grayscale(100%); /* Inicialmente la imagen está en blanco y negro */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Sombra alrededor de la imagen */
}

.overlay-img-container:hover .overlay-img {
    transform: scale(1.05); /* Efecto de zoom cuando se pasa el cursor por encima */
    filter: grayscale(0%); /* Al hacer hover, la imagen se muestra en color */
}

.overlay-img-container:hover::after {
    background: rgba(26, 76, 28, 0); /* Fondo transparente */
}

/* Overlay */
.overlay-img-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgb(26 76 28 / 62%);
    z-index: 1;
}

.card-title{
    color: #224821;
    text-align: center;
    margin-bottom: 6px;
    font-weight: 700;
    font-size: 16px;
}

.divider{
    display: block;
    margin: auto;
    width: 40%;
    height: 2px;
    background-color: #6ea11d;
    margin-bottom:10px;
}

.card-text{
    color: #224821 !important;
    text-align:center;
    font-weight: 700;
}

.info-sesion-started{
    width: 90%;
    margin: 0 auto;
    text-transform:uppercase;
    text-align:center;
    font-weight: 700;
    background-color:#86ad3d !important;
}

.details-cursos {
    overflow: hidden;
}

/* Contenedor de la barra de progreso */
.progress-container {
    display: flex;
    align-items: center;
    position: relative;
    width: 50%;
    height: 30px;
    margin: auto;
}

/* Círculo al principio de la barra */
.progress-circle {
    width: 10px;
    height: 10px;
    background-color: #215b33;
    border-radius: 50%;
    position: absolute;
    left: 16px;
    transition: left 0.5s ease-in-out;
    z-index: 1;
}

.progress-circle::after {
    content: '';
    width: 6px;
    height: 6px;
    background-color:rgb(255, 255, 255);
    border-radius: 50%;
    position: absolute;
    left: 0px;
    top:0;
    z-index: 1;
}

/* Línea de la barra de progreso */
.progress-line {
    width: 100%;
    height: 1px;
    background-color: #215b33;
    margin-left: 25px;
    position: relative;
    z-index: 0;
}

.custom_select_crehana{
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    font-size: 18px;
    position: relative;
}

.custom_select_crehana ul{
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease-in-out;
    position: absolute;
    top: 104%;
    z-index: 2;
    background-color: #ffffff;
    box-shadow: 0px 5px 10px #00000065;
    border-radius: 5px;
    list-style: none;
    padding: 2px;
    overflow: hidden;
}

.custom_select_crehana.opened ul{
    opacity: 1;
    pointer-events: all;
}

.custom_select_crehana ul li label{
    padding: 8px 16px;
    cursor: pointer;
    border: 1px solid transparent;
    margin-bottom: 0;
    cursor: pointer;
    width: 100%;
}

.custom_select_crehana ul li label input{
    display: none;
}

.custom_select_crehana ul li label:hover{
    background-color: #f3f4f6;
    border: 1px solid black;
    border-radius: 4px;

}

.select_item{
    padding: 8px 76px 8px 16px;
    border: 1px solid lightgray;
    border-radius: 5px;
    font-weight: bold;
    width: fit-content;
    position: relative;
    min-width: 350px;
    cursor: pointer;
}

.select_item{
    user-select: none;
}

.select_item::after{
    content: "\f347";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: black;
    font: normal 20px/1 dashicons;
}

.categories_selected_item{
    color: inherit;
    border: 1px solid #212529;
    display: flex;
    flex-direction: row;
    gap: 10px;
    padding: 5px 14px;
    border-radius: 9999px;
    width: fit-content;
    background-color: #dcfce7;
    cursor: pointer;
    user-select: none;

}

.categories_selected_item::after{
    content: "✖";
    font-family: cursive;
}

.categories_selected{
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}


/* Si deseas animar el progreso, ajusta el "left" del círculo */
.progress-container.active .progress-circle {
    left: 50%; /* Ejemplo: el progreso llega al 50% de la barra */
}

#redirect-course{
    padding: 20px;
    border-radius: 10px;
    border: none;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    justify-content: center;
    width: 300px;
    height: 200px;
}

#redirect-course::backdrop{
    background-color: #1a4c1ca1;
}

#redirect-course:open{
    display: flex;
}


#redirect-course:closed{
    display: none;
}

#redirect-course h4{
    font-size: 16px;
    color: #1a4c1c;
    animation: pulse-fade ease-in-out 2s infinite;
}


.redirect-loader {
  width: 96px;
  height: 96px;
  display: inline-block;
  position: relative;
}
.redirect-loader::after,
.redirect-loader::before {
  content: '';  
  box-sizing: border-box;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 2px solid #1a4c1c;
  position: absolute;
  left: 0;
  top: 0;
  animation: animloader 4s linear infinite;
}
.redirect-loader::after {
  animation-delay: 1s;
}

.not-authorized{
    color: #6ea11d;
    text-align: center;
    font-size: larger;
    font-weight: bolder;
    background: #6ea11d40;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #6ea11d;
    margin-top: 20px;
}

.btn_login{
    padding: 10px;
    border: 1px solid #6ea11d;
    border-radius: 5px;
    background: #1a4c1c;
    color: white;
    font-size: large;
}

@keyframes pulse-fade {
    0%{
        opacity: .4;
    }
    50%{
        opacity: 1;
    }
    100%{
        opacity: .4;
    }
}

@keyframes animloader {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}