﻿.flex-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.flex-box {
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    flex: 1 1 300px;
    max-width: 500px;
    min-width: 300px;
    box-sizing: border-box;
    text-align: left;
    /* Ensure consistent vertical layout */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    .flex-box h2 {
        margin-top: 0;
        color: #004d40;
        font-size: 1.5rem;
    }

    .flex-box ul, .flex-box p {
        font-size: 0.95rem;
        line-height: 1.5;
        color: #333;
        margin-bottom: 1rem;
    }

.cta-buttons {
    margin-top: auto;
    text-align: center;
}

    .cta-buttons a {
        display: inline-block;
        margin: .5rem;
        padding: .75rem 1.5rem;
        background-color: #004d40;
        color: white;
        border-radius: 6px;
        text-decoration: none;
        transition: background 0.3s;
    }

        .cta-buttons a:hover {
            background-color: #00695c;
        }

@media (max-width: 1024px) {
    .flex-section {
        flex-direction: column;
        align-items: center;
    }

    .flex-box {
        width: 90%;
        max-width: none;
    }
}
