footer {
    background-color: #282828;
    color: #f0f0f0;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Ensures responsiveness */
}

.footer-content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Ensures the content can wrap */
}

.footer-section {
    flex: 1 1 100%; /* Makes sure each section can take the full width on smaller screens */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10px;
}

.social-media, .qr-code {
    flex: 0 0 auto; /* Prevents these sections from growing or shrinking */
    justify-content: center; /* Centers the images */
    position: absolute; /* Absolute positioning to keep them in place */
    width: 0px; /* Defines a fixed width for the image containers */
}

.social-media {
    width: 25px;
    left: 25px; /* Positions the social media section at the left edge */
}

.qr-code {
    width: 25px;
    right: 25px; /* Positions the QR code section at the right edge */
}

.social-media img, .qr-code img {
    width: 50px;
}

.contact-info {
    flex: 1 1 auto; /* Allows the text section to adjust freely within available space */
    padding: 0 80px; /* Adds padding to prevent text from overlapping images */
    position: relative; /* Ensures this section respects positioning relative to its normal flow */
    text-align: center;
    overflow-wrap: break-word;
}

.contact-info a {
    color: #FFD700;
    text-decoration: none;
    font-size: 0.8em;
    margin: 10px;
}

.contact-info h4 {
    font-style: inherit;
    font-size: 0.9em;
}

.contact-info a:hover {
    text-decoration: underline; /* Gold color for hover */
}

@media (max-width: 768px) {
    .footer-content {
        position: relative; /* Allows absolute positioned elements to align relative to this container */
    }

    .footer-section {
        flex: 1 1 100%; /* Stacks the sections vertically */
        justify-content: center; /* Ensures content is centered */
    }
}