body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
}

.contact-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px;
    background-color: #fff;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.contact-info {
    flex: 1;
    margin-right: 20px;
    min-width: 300px; /* Ensure proper width on small screens */
}

.contact-info h1 {
    font-size: 36px;
    color: #333;
    margin-bottom: 20px;
}

.contact-info p {
    font-size: 18px;
    color: #555;
    margin-bottom: 10px;
}

.contact-info a {
    color: teal;
    text-decoration: none;
    font-weight: bold;
}

.contact-info a:hover {
    text-decoration: underline;
}

.contact-info .icon {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 18px;
    color: #555;
}

.contact-info .icon span {
    margin-left: 10px;
}

.contact-image {
    flex: 1;
    text-align: center;
    min-width: 300px; /* Ensure proper width on small screens */
}

.contact-image img {
    max-width: 100%;
    border-radius: 10px;
}

/* Media Query for Mobile Screens */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column; /* Stack items vertically */
        align-items: center;
        padding: 20px; /* Reduce padding */
    }

    .contact-info {
        margin-right: 0; /* Remove margin on smaller screens */
        text-align: center; /* Center-align text */
        margin-bottom: 20px; /* Add space below the contact info */
    }

    .contact-info h1 {
        font-size: 28px; /* Reduce heading size */
    }

    .contact-info p {
        font-size: 16px; /* Adjust paragraph font size */
    }

    .contact-image img {
        max-width: 80%; /* Reduce image size */
    }
}

@media (max-width: 480px) {
    .contact-info h1 {
        font-size: 24px;
    }

    .contact-info p {
        font-size: 14px;
    }

    .contact-info .icon {
        font-size: 16px;
    }

    .contact-image img {
        max-width: 100%; /* Use full width for very small screens */
    }
}