.section_titles {
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
    color: var(--title-text-color);
}

.mini_title {
    font-size: 1.3rem;
    font-weight: bold;
    margin: 0;
    margin-left: 20px;
    color: var(--title-text-color);
}

.specialities_section {
    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: center;
    align-items: center;

    width: 100%;
    max-width: 410px;
    height: 200px;

    background: var(--card-base-color);
    border-radius: 15px;
    margin: 0 auto;
}

.card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    width: calc(100% - 10px);
    height: calc(100% - 10px);
    border-radius: 12px;
    margin: 0;

    background: var(--card-color);
}

.card_title {
    color: var(--title-text-color);
    font-weight: bold;
    text-align: left;
    width: calc(100% - 15px);
    margin: 0;
}

.card_text {
    color: var(--paragraph-text-color);
    width:calc(100% - 15px);
    height: calc(100% - 15px);
    margin: 0;
    overflow: hidden;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    position: relative;
}

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