﻿.discovery-container {
    max-width: 858px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 56px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 40px;
}

.discovery-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

    .discovery-header .header-title {
        margin: 0px;
        font-size: 36px;
    }

    .discovery-header .header-description {
        margin: 0px;
        font-size: 16px;
        font-family: Lato;
    }

.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}

.card {
    width: 409px;
    border: 1px solid #8B93A1;
    border-radius: 8px;
    padding: 24px;
}

    .card:hover {
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

.card-content {
    display: flex;
    flex-direction: row;
    gap: 32px;
    height: 100%;
    text-decoration: none;
}

    .card-content:hover .title-text {
        text-decoration: underline;
        text-decoration-color: #873899;
    }

    .card-content:hover .card-description {
        text-decoration: underline;
        text-decoration-color: black;
    }

.card-dynamic-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card-title {
    display: flex;
    flex-direction: row;
    gap: 8px;
    color: #873899;
    font-size: 24px;
}

.card-description {
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    font-size: 16px;
    color: black;
    font-family: Lato;
}

.card-arrow {
    display: flex;
    align-items: center;
    height: 100%
}


@media (max-width: 900px) {
    .discovery-container {
        width: 100%;
        padding: 0 16px;
    }

    .card-container {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-start; /* override space-between */
        gap: 24px;
    }

    .card {
        width: 100%;
        max-width: 409px;
    }
}