body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    font-family: Arial, sans-serif;
}

header {
    background: #333; /* Assuming you want a black header but not a black block around the logo */
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center; /* Aligns items vertically to the center */
    padding: 0px 20px;
    position: relative;
}

#logo {
    width: auto; /* Adjusts width automatically based on the height */
    height: 50px; /* You can adjust the height based on your preference */
    display: block;
    background: transparent; /* Ensures no background color is affecting it */
}

header nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

header nav ul li {
    font-size: 16px;
    display: inline;
    padding: 15px 10px;
}

header nav ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

header nav ul li a:hover {
    color: #FFD700; /* Gold color for hover */
}



.container {
    display: flex;
    min-height: 100vh; /* Full viewport height */
}

main {
    flex-grow: 1; /* Takes the remaining space */
    margin-left: 20px; /* Offset by the sidebar width */
    padding: 20px;
    overflow-y: auto;
}

section {
    margin-bottom: 40px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

h2, h3, h4 {
    color: #333;
}

p, li {
    color: #666;
    line-height: 1.5;
}

ul {
    padding-left: 20px;
}

button {
    background-color: #007BFF;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #0056b3;
}

/* Ensure links in the sidebar indicate the current section visually */
#sidebar {
    background-color: #f4f4f4;
    width: 30%;
    padding: 10px 0;
    text-align: center;
    flex-wrap: nowrap;
    box-shadow: 2px 0 5px rgba(0,0,0,0,1);
    position: relative;
    display: block;
}

#sidebar ul {
    list-style-type: none;
    padding-top: 100px;  /* Retains top padding, adjust if necessary */
    padding-right: 20px;
    margin: 0;
    width: 100%;  /* Ensures the ul covers the full width of the sidebar */
    box-sizing: border-box;  /* Ensures padding doesn't affect the width */
    position: relative;  /* Changes from fixed to relative */
    height: calc(100vh - 100px);  /* Adjusts height to take into account the header/footer */
    overflow-y: auto;  /* Allows scrolling within the ul if items exceed the height */
}
#sidebar li {
    display: inline;
    margin-right: 20px;
}

#sidebar a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding: 5px 10px;
    display: block;
    text-align: center;
}

#sidebar a:hover, #sidebar a.active {
    color: #007BFF;
}

main {
    padding: 20px;
}

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: 1em;
    margin: 10px;
}

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

.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 */
    }
    .contact-info {
        padding: 10px 80px; /* Adjusts padding to account for smaller screens */
    }
    #sidebar {
        position: static; /* Keeps the sidebar fixed on small screens */
        width: 100%; /* Full width on smaller screens for better accessibility */
        height: auto; /* Adjust height based on content */
        padding-top: 20px;
        top: 0; /* Align to the top */
        left: 0; /* Align to the left */
        z-index: 1000; /* Ensures it stays on top */
        overflow-y: visible; /* Adjust overflow properties */
    }

    #sidebar ul {
        padding-top: 20px; /* Reduces padding for smaller screens */
        height: auto; /* Let the height be dynamic based on content */
        overflow-y: visible; /* No scrolling necessary if the sidebar is full-screen */
    }
    main {
        margin-left: 0; /* Remove margin offset */
        padding: 10px;
    }
}