.cardContainer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

.card {
    background-color: #fff;
    border: 1px solid #ddd;
    margin: 10px;
    width: calc(100% / 3 - 20px);
    height: 550px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    overflow: hidden;
}

.card img {
    width: 100%;
    height: 240px;
}

.card-content {
    display: flex;
    flex-direction: column;
    max-height: 180px;
}

.card-content h2 {
    font-size: 20px;
    color: #2c3e50;
    margin: 16px 24px;
}

.card-content p {
    font-size: 15px;
    color: #7f8c8d;
    margin: 0px 24px;
}

.card-content .read-more {
    color: #f10909;
    cursor: pointer;
}

.video {
    display: flex;
    position: relative;
    top: 40px;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
}

.video-container {
    position: relative;
    width: 20%;
    background-color: #cec2c2;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto 24px;
    border-radius: 8px;
}

.video-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Adjust the color and transparency */
    border-radius: 8px; /* Match the border radius of the container */
    z-index: 1; /* Ensure it appears above the thumbnail but below the play button */
}

.video-container img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    z-index: 0;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-size: cover;
    width: 30px;
    height: 30px;
    display: block;
    cursor: pointer;
    z-index: 2;
}



.video-link {
    text-align: left;
    margin: 10px;
}

.video-link a {
    color: #3498db;
    text-decoration: none;
    font-size: 0.9em;
}

.video-link a:hover {
    text-decoration: underline;
}

@media (max-width: 1024px) {
    .card {
        flex: 1 1 calc(50% - 25px);
        max-width: calc(50% - 25px);
    }
    .cardContainer {
        display: flex;
        justify-content: flex-start;
    }
    
}

@media (max-width: 768px) {
    .card {
        flex: 1 1 100%;
        max-width: 100%;
    }
}