#nav-about {
    color: var(--color1) !important;
}

.home-section-1 {
    width: 100%;
    padding-top: 90px;
}

.about-intro {
    height: 100%;
    width: 100%;
    background-color: var(--color8);
    color: var(--color4);
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.about-intro h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.about-section {
    padding: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}

.about-content {
    width: 100%;
    min-height: 450px;
    display: grid;
    grid-template-columns: 50% 50%;
    grid-template-rows: auto;
}

.about-content-heading {
    width: 100%;
    height: 100%;
    background-color: var(--color8);
    border-radius: 15px 80px;
    padding: 15px;
    /* overflow: hidden; */
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-content h1{
    width: max-content;
    height: max-content;
    color: var(--color4);
    font-size: 45px;
    text-align: center;

}

.about-content img {
    width: 100%;
    height: 100%;
    border-radius: 70px 5px;

}

.about-content:nth-child(odd) p {
    grid-column: 1/span 1;
    grid-row: 1/span 1;

}

.about-content:nth-child(odd) .about-content-heading {
    grid-column: 2/span 1;
    grid-row: 1/span 1;

}


.about-content p, .about-section p {
    font-size: 24px;
    color: var(--color3);
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: justify;
}


.values-container {
    display: flex;
    flex-wrap: wrap;  /* Allow items to wrap onto new lines */
    gap: 20px;  /* Increase gap between items */
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    list-style: none;
}

.value {
    height: fit-content;
    min-width: 150px;
    opacity: 0;
    font-size: 18px;  /* Adjusted font size for better fit */
    color: var(--color3);
    padding: 10px;
    border-left: 4px solid var(--color2);  /* Adding a border for emphasis */
    background-color: rgba(255, 255, 255, 0.6);
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease, background-color 0.3s ease, color 0.3s ease;
    border-radius: 5px;
    flex-basis: calc(50% - 15px);  /* Allow items to take up half the width of the container */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.value:hover {
    background-color: var(--color2);
    color: var(--color4);
}

.value.show {
    opacity: 1;
    transform: translateY(0);
}



@media screen and (max-width: 900px) {

    .about-content {
        grid-template-columns: 100%;
        grid-template-rows: auto auto;
        min-height: fit-content;
    }

    .about-content p, .about-section p {
        font-size: 18px;
    }

    .about-content-heading, .about-content p
    {
        height: fit-content;
        min-height: fit-content;
    }

    .about-content:nth-child(odd) p {
        grid-column: 1/span 1;
        grid-row: 2/span 1;
    }

    .about-content:nth-child(odd) .about-content-heading {
        grid-column: 1/span 1;
        grid-row: 1/span 1;

    }
}


@media screen and (max-width: 500px) {

    .values-container {
        flex-wrap: nowrap;
        flex-direction: column;
    }


}
