.bac-img {
    background-image: url("../users/assets/image\ 14.png");
    background-size: cover;
    height: 940px;
    background-repeat: no-repeat;
    color: white;
    font-size: 64px;
    font-weight: 700;
    text-align: center;
    width: 100%;
    padding-top: 340px;
    font-family: "Inria Sans", sans-serif;
}

.title {
    color: white;
    font-size: 3vw;
    font-weight: 400;
    font-family: "Inria Sans", sans-serif;
}

.card {
    background: linear-gradient(136.21deg, #12103f 8.93%, #007ab9 88.5%);
    background-color: #141313;
    padding-bottom: 10px;
    padding-left: 14px;
    padding-right: 14px;
    padding-top: 10px;
    color: white;
}

.row {
    color: #f2ecec;
}

.col {
    color: #f2ecec;
}

.class-card-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr); /* Change to a single column by default */
    grid-gap: 10px; /* Adjust the gap between columns if needed */
}

/* Media query for tablets */
@media (min-width: 768px) {
    .class-card-grid {
        /* Change to two columns for tablets */
        grid-template-columns: repeat(1, 1fr);
    }
}

.card-class {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.card-class img {
    border: 3px solid #000000;
    border-radius: 12px;
    margin-bottom: 14px;
    height: auto;
    width: 94%;
    max-width: 500px; /* Set a maximum width for larger screens */
}

.card-class figcaption {
    color: aliceblue;
    text-align: center;
    margin-top: 10px; /* Adjust the margin as desired */
    font-weight: bold;
    font-family: "Inria Sans", sans-serif;
    font-size: 25px;
    width: 94%;
}

@media (min-width: 1024px) {
    .class-card-grid {
        /* Change to four columns for desktop screens */
        grid-template-columns: repeat(2, 1fr);
    }
}

.card-class {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.card-class img {
    border: 3px solid #000000;
    border-radius: 12px;
    margin-bottom: 14px;
    height: auto;
    width: 94%;
    max-width: 500px; /* Set a maximum width for larger screens */
}

.card-class figcaption {
    color: aliceblue;
    text-align: center;
    margin-top: 10px; /* Adjust the margin as desired */
    font-weight: bold;
    font-family: "Inria Sans", sans-serif;
    font-size: 25px;
    width: 95%;
}
