.container--portfolio {
    display: block;
    padding-top: 10px;
}

.portfolio {
    background-color: #ffffff;
    padding: 100px 0 0px;
    text-align: center;
}

.portfolio .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0px;
}

.portfolio .section-title {
    font-size: 2.5em;
    font-weight: 500;
}

.portfolio .section-description {
    max-width: 800px;
}

.portfolio-text-wrapper {
    margin: 0 auto;
    padding: 0 15px;
}

.portfolio-description {
    /*margin-bottom: 20px; /* Adds space between paragraphs */
    color: #666; /* Adjust text color as needed */
    font-size: 1em; /* Adjust font size as needed */
    line-height: 1.6; /* Adjust line height for readability */
}

/* Portfolio Logos Section */
.portfolio-logos-section {
    background-color: #ffffff;
    padding-top: 0px;
    margin-top: 0;
}

.portfolio-logos-section p {
    margin-left: 15px;
    color: grey;
    font-size: 0.9em;
}

.portfolio-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    /*margin-top: 30px;*/
}

.portfolio-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #ffffff;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    height: auto;
}

.portfolio-logo img {
    max-width: 100%;
    height: 100px;
    object-fit: contain;
    margin-bottom: 10px;
}

.portfolio-logo-text {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    align-items: center;
}

.portfolio-logo h3 {
    font-size: 1.2em;
    color: #333;
    margin: 10px 0;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-logo p {
    font-size: 0.9em;
    color: #666;
    margin: 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Container for the toggle */
.portfolio-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #e0e0e0;
    border-radius: 50px;
    padding: 5px;
    width: 400px; /* Adjust the width as needed */
    margin: 20px auto;
    position: relative;
}

/* Hide the actual radio buttons */
.portfolio-toggle input[type="radio"] {
    display: none;
}

/* Styling the labels to look like buttons */
.toggle-label {
    flex: 1;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 50px;
    transition: background-color 0.3s, color 0.3s;
    color: black; /* Default text color */
}

.past-label {
    background-color: transparent;
    color: black;
}

.existing-label {
    background-color: transparent;
    color: black;
}

/* When the 'Past' option is checked */
input#past:checked + .past-label {
    background-color: #dae8fc;
    color: black;
}

input#existing:checked + .past-label {
    background-color: transparent;
    color: black;
}

/* When the 'Existing' option is checked */
input#existing:checked + .existing-label {
    background-color: #dae8fc;
    color: black;
}

input#past:checked + .existing-label {
    background-color: transparent;
    color: black;
}

.existing {
    display: none;
}

sup {
    font-size: 0.25em;
    font-weight: normal;
}

/* MOBILE STYLES */

@media (max-width: 768px) {

    .portfolio-logos {
        grid-template-columns: 1fr;
    }

    .portfolio-logo {
        width: 90%;
        margin-bottom: 20px;
    }

    .portfolio .section-description {
        margin-left: 20px;
        margin-right: 20px;
    }

    .portfolio-toggle {
        width: 350px;
    }

    .portfolio .section-title {
        font-size: 2em;
    }

    .portfolio .section-description {
        font-size: 1.1em;
    }

    .portfolio-logo p {
        font-size: 1em;
    }
}