.about-us {
    background-color: #f9f9f9;
    padding: 50px 0;
}

.container {
    width: 80%;
    margin: 0 auto;
}

.about-us h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 20px;
    color: black;
}

.about-content {
    text-align: center;
    font-size: 1.2em;
    line-height: 1.6;
    margin-top: 20px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* Prevents any overflow */
}

.about-content p {
    margin-bottom: 20px;
}

.about-image {
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image img {
    width: 100%;
    height: auto;
    max-height: 400px; /* Limits the height to avoid overflow */
    display: block;
    object-fit: contain; /* Ensures the image scales without distortion */
}

@media (max-width: 768px) {
    .container {
        width: 90%;
    }

    .about-us h2 {
        font-size: 2em;
    }

    .about-content {
        font-size: 1em;
    }

    .about-image img {
        max-height: 250px; /* Reduce image height for smaller screens */
    }
}
