.grid {
    display: grid;
    width: 80%;
    grid-template-columns: repeat(3, 1fr);
    /* Three items per row */
    gap: 3rem;
    /* Space between items */
    justify-content: center;
    margin-inline: auto;
}

/* @media (max-width: 60em) {
    .grid {
        grid-gap: 3rem;
    }
} */

.grid .card {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 1.4rem;
    overflow: hidden;
    box-shadow: 0 3rem 6rem rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: 0.2s;
    border: 1px solid;
}

.card_footer {
    position: relative;
    display: block;
    flex-wrap: wrap;
    align-items: stretch;
    width: 90%;
    justify-content: space-between;
    justify-items: center;
    margin-inline: auto;
}

.grid .card:hover {
    transform: translateY(-0.5%);
    box-shadow: 0 4rem 8rem rgba(0, 0, 0, 0.2);
}

.card_title_session {
    font-size: 17px;
    font-weight: 900;
    color: black;
    line-height: 25px;
}


.grid .card__img {
    display: block;
    width: 100%;
    height: 18rem;
    object-fit: cover;
}

.grid .card__content {
    display: grid;
    grid-template-rows: auto 1fr auto;
    /* grid-row-gap: 2rem; */
    padding: 1rem;
}

.grid .card__header {
    font-size: 3rem;
    font-weight: 500;
    color: #0d0d0d;
}

.grid .card__btn {
    display: block;
    width: 100%;
    padding: 1.5rem;
    font-size: 2rem;
    text-align: center;
    color: #3363ff;
    background-color: #e6ecff;
    border: none;
    border-radius: 0.4rem;
    transition: 0.2s;
    cursor: pointer;
}

.grid .card__btn span {
    margin-left: 1rem;
    transition: 0.2s;
}

.grid .card__btn:hover,
.grid .card__btn:active {
    background-color: #dce4ff;
}

.grid .card__btn:hover span,
.grid .card__btn:active span {
    margin-left: 1.5rem;
}

.card_footer .card_button {
    padding-block: 5px;
    padding-inline: 30px;
    border-radius: 7px;
    background-color: rgb(0, 48, 168);
    color: white;
}

.card_footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Ensures price is on the left, button on the right */
    width: 90%;
    margin-inline: auto;
    padding: 10px 0;
    flex-wrap: nowrap;
    max-width: 100%;
}

.card_footer .price_area {
    font-size: 11px;
    width: 100%;
    height: 100%;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: -20px;
    color: rgb(133, 186, 44);
}

.card_footer .price_area .oldPrice {
    text-decoration: line-through;
    color: #bbb;
    font-weight: 500;
}

.card_footer .card_button {
    padding: 4px 25px;
    border-radius: 7px;
    background-color: rgb(0, 48, 168);
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    flex-shrink: 0;
    margin-left: 65px;
    /* Adds space between price and button */
}

.card_footer .card_button:hover {
    background-color: rgb(0, 38, 130);
}

.course-stars-and-rating-container {
    display: flex;
}

.totalReviews {
    display: inline-block;
    margin-right: .5rem;
    color: #999;
    font-weight: 500;
}

/* Stars container */
.starsContainer {
    display: inline-flex;
    gap: 1px;
    /* Optional spacing between stars */
    font-size: 24px;
}

.course-stars-and-rating-container {
    padding-block: 10px;
}
@media (max-width: 900px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
        /* Two items per row on medium screens */
    }
}

@media (max-width: 600px) {
    .grid {
        grid-template-columns: repeat(1, 1fr);
        /* One item per row on small screens */
    }
}
