/* General body styling */
html, body {
    height: 100%;
    margin: 0;
    font-family: Arial, sans-serif;
}

body {
    display: flex;
    flex-direction: column;
}

/* Footer styling to keep it at the bottom */
footer {
    text-align: center;
    padding: 10px 0;
    background-color: #f4f4f4;
    width: 100%;
    margin-top: auto;
}

/* Top navigation bar styling */
.top-nav ul {
    display: flex;
    justify-content: flex-end; /* Moves links to the right */
    list-style: none;
    background-color: #f8f9fa;
    margin: 0;
    padding: 10px 20px;
}

.top-nav ul li {
    margin-left: 20px;
}

.top-nav ul li a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease; /* Smooth hover effect */
}

.top-nav ul li a:hover {
    color: #007bff; /* Highlight color on hover */
    text-decoration: underline;
}

/* Container layout */
.container {
    display: flex;
    margin: 20px;
    flex: 1; /* Ensures content expands and footer stays at the bottom */
}

/* Sidebar styling */
.sidebar {
    flex: 0 0 300px; /* Fixed sidebar width */
    padding: 20px;
    background-color: #f4f4f4;
    border-radius: 10px;
}

.sidebar .profile-image {
    width: 100%;
    border-radius: 50%;
}

.sidebar h2 {
    margin: 20px 0 10px;
}

.sidebar p {
    margin: 0;
    line-height: 1.5;
}

.contact-links {
    list-style: none;
    padding: 0;
}

.contact-links li {
    margin-bottom: 10px;
}

/* Main content styling */
main.content {
    flex: 1; /* Allows content to grow */
    margin-left: 20px;
}

main.content h2 {
    font-size: 1.5em;
}

main.content p {
    line-height: 1.6;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .container {
        flex-direction: column; /* Stack sidebar and content vertically */
    }

    .sidebar {
        flex: none;
        width: 100%; /* Full width for the sidebar */
        margin-bottom: 20px;
    }

    main.content {
        margin-left: 0; /* Remove margin for full-width content */
    }

    .top-nav ul {
        justify-content: center; /* Center navigation links on small screens */
        padding: 10px 0;
    }
}