.card_link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.card_grid_container {
    display: grid;
    gap: 2rem;
    padding: 0 1rem;
    justify-content: center; 
    grid-template-columns: repeat(auto-fit, minmax(0, 410px));
}

.card_base {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
    max-width: 410px;
    height: 400px;
    background: var(--card-base-color);
    border-radius: 15px;
    margin: 0 auto;
}

.image_section {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.image {
    width: calc(100% - 10px);
    height: calc(100% - 10px);
    border-radius: 12px;
    object-fit: cover;
    display: block;
}

.inner_card_base {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 30%;
    max-height: 60%;
    width: 100%;
    overflow: visible;
}


.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: calc(100% - 10px);
    height: calc(100% - 5px);
    padding: 10px;
    box-sizing: border-box; 
    background: var(--card-color);
    border-radius: 12px;
    box-shadow: var(--card-box-shadow);
    text-align: center;
    transition: 0.3s ease;
    position: relative;
    text-decoration: none;
}

.card_base:hover .card  {
    box-shadow: 0 6px 16px var(--glow-color);
}

.card_title {
    text-align: center;
    margin: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    color: var(--title-text-color);
}

.card_short_text {
    text-align: center;
    margin: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    color: var(--paragraph-text-color)
}

/* Handle mobile devices */
@media (max-width: 475px) {
    .card_base {
        height: 490px;
    }
}