<style>
.card-module {
    text-align: center;
    padding: 50px 20px;
}

.cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.card {
    margin-top: 20px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 350px;
    height: 350px;
    max-width: 90%; /* Ensures the card shrinks to fit best on mobile */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.2); /* Added black border with 20% opacity */
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.card-content {
    position: relative;
    z-index: 1;
    padding: 20px;
}

.card-richtext {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.card h3 {
    margin-bottom: 10px;
    font-size: 1.2em;
    
}
.cta-link {
    color: #0073e6;
    text-decoration: none;
    margin-top: auto;
}

.cta-link:hover {
    text-decoration: underline;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
   background: linear-gradient(135deg, rgba(96, 32, 214, 0.7), rgba(255, 255, 255, 0.7));
    transform: scale(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
    border-radius: 15px;
    z-index: 0;
  
}

.card:hover::before {
    transform: scale(1);
}

@media (max-width: 768px) {
    .cards-container {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 100%;
        max-width: 90%; /* Ensures the card shrinks to fit best on mobile */
    }
}
</style>
