/* Estilos para o container dos cursos */
.techcheckout-courses .card {
    box-sizing: border-box;
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    background-color: #f9f9f9;
}

/* Estilos para a imagem do curso */
.techcheckout-courses .card img {
    width: 100%;
    height: auto;
}

/* Estilos para o conteúdo do curso */
.techcheckout-courses .card-content {
    padding: 10px;
    text-align: center;
}

/* Estilos para o botão */
.techcheckout-courses .card-content a.button {
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    text-align: center;
}

/* Estilos para a mensagem "Sem Cursos" */
.techcheckout-courses .no-courses p {
    margin-top: 10px;
}

/* Remova estilos padrão que possam interferir */
.techcheckout-courses .card,
.techcheckout-courses .card-content,
.techcheckout-courses .card-content a.button {
    border: none;
    background: none;
    color: inherit;
}

.techcheckout-courses-grid {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    margin: -10px; /* Compensate for the padding on course-card */
}

.course-card {
    -webkit-box-flex: 1;
        -ms-flex: 1 0 250px;
            flex: 1 0 250px;
    max-width: calc(33.333% - 20px);
    margin: 10px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
}

.card {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    -webkit-transition: -webkit-box-shadow 0.3s ease;
    transition: -webkit-box-shadow 0.3s ease;
    -o-transition: box-shadow 0.3s ease;
    transition: box-shadow 0.3s ease;
    transition: box-shadow 0.3s ease, -webkit-box-shadow 0.3s ease;
}

.card:hover {
    -webkit-box-shadow: 0 4px 8px rgba(0,0,0,0.1);
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.card-image {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    overflow: hidden;
}

.card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
}

.card-content {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    -webkit-box-flex: 1;
        -ms-flex-positive: 1;
            flex-grow: 1;
    padding: 15px;
}

.card-content strong {
    margin-bottom: 10px;
    font-size: 1.1em;
    line-height: 1.4;
}

.card-content .button {
    -ms-flex-item-align: start;
        align-self: flex-start;
    margin-top: 10px;
    padding: 8px 16px;
    background-color: #007bff;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    -webkit-transition: background-color 0.3s ease;
    -o-transition: background-color 0.3s ease;
    transition: background-color 0.3s ease;
}

.card-content .button:hover {
    background-color: #0056b3;
}

.card-content .button {
    display: inline-block;
    width: 100%; /* Faz o botão ocupar toda a largura disponível */
}

.card-content .button-align-left {
    text-align: left;
}

.card-content .button-align-center {
    text-align: center;
}

.card-content .button-align-right {
    text-align: right;
}

/* Se você quiser que o botão tenha uma largura fixa, mas ainda mantenha o alinhamento do texto, você pode fazer algo assim: */
.card-content .button {
    display: block; /* Muda para block para permitir margin auto */
    width: auto; /* ou uma largura fixa, por exemplo, width: 150px; */
    max-width: 100%; /* Garante que não ultrapasse a largura do container */
}

.card-content .button-align-left {
    margin-right: auto;
}

.card-content .button-align-center {
    margin-left: auto;
    margin-right: auto;
}

.card-content .button-align-right {
    margin-left: auto;
}

@media (max-width: 768px) {
    .course-card {
        max-width: calc(50% - 20px);
    }
}

@media (max-width: 480px) {
    .course-card {
        max-width: 100%;
    }
}