body {
    font-family: Roboto, sans-serif;
    margin: 0;
    padding: 0;
}

.profile-header {
    text-align: center;
    background-color: white;
    padding-top: 150px;
}

.profile-header .follow-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
    font-size: 1rem;
    color: #333;
}

.profile-header .follow-info span {
    text-align: center;
}

.profile-picture {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}

.bio {
    font-style: italic;
    margin-top: 10px;
}

.posts {
    margin: 0 auto;
    max-width: 600px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; /* Ensures posts are centered horizontally */
    overflow: visible; /* Ensure child elements are not clipped */
    box-sizing: border-box; /* Includes padding in width */
}

.post {
    max-width: 600px;
    width: 100%;
    margin: 15px auto; /* Centers each post */
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    position: relative;
    box-sizing: border-box; /* Includes padding in width */
}


.post-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.post-profile-picture {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.post-author {
    font-weight: bold;
    color: #004E98;
    text-decoration: none;
}

.post-author:hover {
    text-decoration: underline;
}

.post-content {
    flex-grow: 1;
    margin-bottom: 10px;
    word-wrap: break-word;
    text-align: left; /* Ensure text and content align to the left */
}

.post-timestamp {
    font-size: 0.9em;
    color: gray;
    text-align: left; /* Ensure text and content align to the left */
}

.button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px; /* Space between Create Post and Follow buttons */
    margin: 20px 0;
}

.post-button,
.follow-button {
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: none;
}

.post-button {
    background-color: black;
    color: white;
}

.post-button:hover {
    background-color: #004E98;
}

.follow-button {
    background-color: #004E98;
    color: white;
}

.follow-button:hover {
    background-color: #002f5f;
}

.post-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: black;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.post-button:hover {
    background-color: #004E98;
}

/* Like Button Style */
.post form button {
    background: none; /* Remove black box */
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s ease;
}

.post form button:hover {
    color: #ff4d4d; /* Add a hover effect for the heart icon */
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4); /* Black background with opacity */
    justify-content: center;
    align-items: center;
}

/* Center Modal Content */
.modal-content {
    position: relative; /* Ensure relative positioning for child elements */
    background-color: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 90%;
    max-width: 500px; /* Ensures modal doesn't exceed this width */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    /*gap: 20px;*/
}

.modal-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}


.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover,
.close-button:focus {
    color: black;
}

.submit-button {
    margin-top: 10px;
    padding: 10px 20px;
    background-color: black;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #004E98;
}

/* Form Styling */
.post-form {
    display: flex;
    flex-direction: column;
    /*gap: 5px;*/
}

textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    resize: none;
    box-sizing: border-box; /* Ensures it fits inside the container */
}

/* Action Buttons (Post & Attach Image) */
.post-action-container {
    display: flex; /* Flexbox for horizontal alignment */
    justify-content: center; /* Center the buttons horizontally */
    gap: 10px; /* Add space between buttons */
    align-items: center; /* Align items vertically in the center */
}

/* Post Button Styling */
.submit-button, .attach-image-button {
    background-color: black;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    display: inline-flex; /* Ensure consistent alignment */
    align-items: center; /* Center text vertically */
    justify-content: center; /* Center text horizontally */
    white-space: nowrap; /* Prevent text wrapping */
    min-width: 150px; /* Ensure buttons are the same width */
    height: 50px; /* Consistent height for both buttons */
    transition: background-color 0.3s ease;
    text-align: center; /* Ensures text is centered in the button */
}

.submit-button:hover {
    background-color: #004E98;
}


.comment-form {
    display: flex;
    width: 100%;
    margin-top: 10px;
    gap: 10px; /* Add space between input and button */
}

.comment-form input[type="text"] {
    flex-grow: 1; /* Makes the input take the remaining width */
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.comment-form .comment-button {
    background-color: black;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.comment-form .comment-button:hover {
    background-color: #004E98;
    color: white; /* Keeps the text color white */
}


.comments h4 {
    margin-bottom: 5px;
}

.comments ul {
    list-style: none;
    padding: 0;
}

.comments ul li {
    margin-bottom: 5px;
}

/* Delete Button */
.delete-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none !important;
    border: none;
    color: black;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
}

.delete-button:hover {
    color: black;
}


.yes-button {
    background-color: black;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.yes-button:hover {
    background-color: #004E98;
}

.no-button {
    background-color: lightgray;
    color: black;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.no-button:hover {
    background-color: darkgrey;
}

.post-image {
    max-width: 50%;
    height: auto;
    border-radius: 8px;
    margin-top: 10px;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.comment-profile-picture {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-author {
    font-weight: bold;
    color: #004E98;
    text-decoration: none;
}

.comment-author:hover {
    text-decoration: underline;
}

.comment-timestamp {
    font-size: 0.9em;
    color: gray;
    text-align: left; /* Ensure text and content align to the left */
}


.comment-like-form .like-button {
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.comment-like-form :hover {
    color: #ff4d4d;
}


/* Comment Section Styles */
.comment-section {
    margin-top: 15px;
    text-align: left; /* Ensure text and content align to the left */
    width: 100%;
}

.comment-form textarea {
    flex-grow: 1;
    width: 100%; /* Take up the full width of the form */
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    resize: none; /* Allow resizing vertically only */
    box-sizing: border-box; /* Ensure padding is included in width calculation */
}


/* Action Buttons (Comment & Attach Image) */
.action-button {
    background-color: #004E98;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease;
    flex: 1; /* Makes both buttons equal width */
    max-width: 150px; /* Ensures they don't get too wide */
}


/* Action Buttons: Like, Comment, Share */
.action-buttons {
    display: flex;
    justify-content: space-around;
    margin-top: 10px;
    border-top: 1px solid #ddd;
    padding-top: 10px;
}

.action-button {
    background: none;
    border: none;
    font-size: 1rem;
    color: black;
    cursor: pointer;
    transition: text-decoration 0.3s ease, color 0.3s ease;
    font-weight: bold;
}

.action-button:hover {
    text-decoration: underline; /* Underlines the button text */
    color: #002f5f; /* Changes color slightly on hover */
}

.action-button:focus {
    outline: none; /* Removes the default focus outline */
}

/* Comment Section */
.comment-section {
    margin-top: 15px;
}

.existing-comments {
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.comment-content {
    margin: 5px 0;
}

.comment-actions {
    display: flex;
    gap: 15px;
}

.comment-action-button {
    background: none;
    border: none;
    font-size: 0.9rem;
    color: #004E98;
    cursor: pointer;
    transition: color 0.3s ease;
}

.comment-action-button:hover {
    color: #002f5f;
}

/* Add Comment */
.add-comment-form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    resize: none;
}

.comment-button {
    margin-top: 10px;
    background-color: #004E98;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.comment-button:hover {
    background-color: #002f5f;
}

/* Reply Form */
.reply-form textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-top: 5px;
}


.comment-form {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Space between textarea and buttons */
    width: 100%; /* Constrain to parent width */
    margin: 0 auto; /* Center within container */
    padding: 10px;
    box-sizing: border-box; /* Ensure padding is included in width calculation */
    background: #f9f9f9; /* Optional for better visibility */
    border: 1px solid #ddd; /* Optional border for visibility */
    border-radius: 8px;
}

.comment-action-container {
    display: flex;
    justify-content: center !important; /* Space between Comment and Attach Image buttons */
    gap: 5px;
    width: 100%;
}

.comment-button,
.attach-image-button {
    background-color: black !important; /* Blue background */
    color: white !important; /* White text */
    padding: 8px 15px !important; /* Uniform padding for both buttons */
    border: none; /* No border */
    border-radius: 5px; /* Rounded corners */
    font-size: 14px !important; /* Same font size */
    font-weight: bold; /* Same font weight */
    cursor: pointer;
    flex: 1; /* Makes both buttons take equal width */
    max-width: 150px; /* Ensures buttons don’t get too wide */
    width: 100%;
    text-align: center; /* Center text inside the button */
    display: flex; /* Ensure consistent flex alignment */
    align-items: center; /* Center vertically */
    justify-content: center; /* Center horizontally */
}

.comment-button:hover,
.attach-image-button:hover {
    background-color: #004E98 !important; /* Darker blue on hover */
}

.hidden-file-input {
    position: absolute;
    opacity: 0; /* Make input invisible */
    width: 100%;
    height: 100%;
    cursor: pointer; /* Ensure it is clickable */
}

.attach-image-button {
    position: relative;
    overflow: hidden; /* Prevent input overflow */
}

/* General styling for comments and replies */
.comment-header {
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: 5px;
    margin-top: 20px;
}

.comment-profile-picture {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    /*margin-right: 10px;*/
}

.comment-author {
    font-weight: bold;
    margin-right: 5px;
    text-decoration: none;
    color: #004E98;
}

.comment-timestamp {
    font-size: 0.9em;
    color: #666;
}

.comment-content {
    margin: 10px 0;
    line-height: 1.5;
}

.comment-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.comment-action-button {
    background-color: transparent;
    border: none;
    color: black;
    cursor: pointer;
    padding: 0;
}

.comment-action-button:hover {
    text-decoration: underline;
}

/* Styling for replies */

.reply-section {
    margin-top: 10px;
}


/* General styling for buttons in comments and replies */
.comment-action-button {
    background-color: transparent;
    border: none;
    color: black;
    cursor: pointer;
    font-size: 17px; /* Ensure consistent font size */
    font-weight: normal; /* Default to normal weight for 'Like' and 'Reply' */
    padding: 0;
}

.comment-action-button:hover {
    text-decoration: underline;
}

/* Styling for the reply submit button */
.reply-button {
    margin-top: 10px;
    padding: 8px 20px;
    background-color: #000 !important; /* Black background, ensure it overrides other styles */
    color: #fff !important; /* White text, ensure it overrides other styles */
    border: 1px solid #000; /* Black border */
    border-radius: 4px; /* Slightly rounded corners */
    cursor: pointer;
    font-weight: bold; /* Bold text */
    text-align: center; /* Center-align the text */
    display: inline-block; /* Ensure proper button dimensions */
}

.reply-button:hover {
    background-color: #004E98 !important; /* Slightly lighter black for hover effect */

}

.delete-comment-button {
    background: none;
    border: none;
    color: black;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 10px; /* Adjust spacing as needed */
    top: 50%; /* Vertically center the button */
    transform: translateY(-50%);
}

.notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Center the element */
    padding: 20px 30px;
    background-color: #4caf50; /* Success green */
    color: white;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    opacity: 0; /* Hidden by default */
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 1000; /* Ensure it appears above other elements */
}

.notification.hidden {
    display: none;
}

.notification.show {
    display: block;
    opacity: 1;
}

.image-preview-container {
    display: flex; /* Use Flexbox */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically (if needed) */
    flex-direction: column; /* Stack elements vertically */
}

.image-preview {
    max-width: 100%;
    max-height: 200px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
    background-color: #f9f9f9;
}

.remove-image-button {
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 5px 10px;
    background-color: black !important;
    color: white !important;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.remove-image-button:hover {
    background-color: #004E98 !important;
}


.comment-image {
    max-width: 50%;
    height: auto;
    border-radius: 8px;
    margin-top: 10px;
}


.comment {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px; /* Space between comments */
    padding: 10px;
    background-color: #f9f9f9; /* Optional background for clarity */
    border-radius: 8px;
    border: 1px solid #ddd; /* Optional border for visibility */
}

.replies {
    margin-left: 10px; /* Indent replies */
    border-left: 2px solid #ccc; /* Wire frame for replies */
    padding-left: 10px; /* Space for reply content */
}

.reply {
    position: relative;
    margin-top: 0.5rem;
    padding-left: 1rem; /* Align nested replies further */
    border-left: 2px solid #ddd; /* Lighter wire frame for deeper levels */
}

.reply-header,
.comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.comment-profile-picture,
.reply-profile-picture {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
    margin-right: 0 !important;
}

.reply-content {
    margin-left: 1.5rem; /* Keeps content aligned with profile picture */
}

.replies .reply {
    margin-top: 0.5rem;
    padding-left: 1rem;
}

.replies:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 2px;
    background-color: #ccc; /* The connecting line */
}


.reply-box textarea {
    flex: 1; /* Take up available width */
    border: 1px solid #ccc;
    border-radius: 16px;
    padding: 8px 12px;
    resize: none;
    min-height: 32px;
    font-size: 14px;
}

.reply-box textarea:focus {
    outline: none;
    border-color: #007bff;
}

.list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.list-item img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 10px;
}

.list-item .user-info {
    flex: 1;
}

.list-item button {
    padding: 5px 10px;
    background-color: #004E98;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.list-item button:hover {
    background-color: #00376b;
}

.list-header {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px; /* Add spacing below the header */
    color: #333; /* Adjust the color as needed */
}


.follow-info {
    display: flex;
    gap: 16px; /* Add spacing between the items */
    align-items: center; /* Vertically center the text */
}

.follow-item {
    display: flex;
    gap: 4px; /* Reduce spacing between the number and the text */
    align-items: center;
}

.follow-info a {
    text-decoration: underline; /* Underline the link */
    color: inherit; /* Inherit the text color */
}

.follow-info span {
    font-size: 14px; /* Adjust the font size as needed */
}

#followers-count,
#following-count {
    cursor: pointer; /* Indicate clickable numbers */
    font-size: 16px; /* Adjust the font size as needed */
}

/* User info section */
.user-info {
    flex: 1; /* Take up remaining horizontal space */
    font-size: 14px;
    line-height: 1.4; /* Adjust line spacing for better readability */
}

.user-info strong {
    display: block; /* Ensure the username is on its own line */
    font-size: 16px; /* Slightly larger font for emphasis */
    margin-bottom: 2px;
}

.user-info p {
    margin: 0; /* Remove unnecessary margins */
    color: #555; /* Subtle color for handle and description */
}

.empty-message {
    text-align: center;
    font-size: 16px;
    color: #666; /* A subtle color for the message */
    margin: 20px 0; /* Add spacing around the message */
}

.close-button {
    position: absolute; /* Position the button relative to its container */
    top: 10px; /* Adjust for proper spacing from the top */
    right: 10px; /* Adjust for proper spacing from the right */
    background: none; /* Remove default button styling */
    border: none; /* Remove border */
    font-size: 24px; /* Adjust size of the "X" */
    font-weight: bold; /* Make the "X" bold */
    color: #333; /* Color of the "X"; adjust as needed */
    cursor: pointer; /* Change cursor to indicate it's clickable */
}

.close-button:hover {
    color: black; /* Change color on hover to provide feedback */
    transition: color 0.3s ease; /* Smooth color transition */
}

.no-comments-message {
    font-style: italic;
    color: #888;
    text-align: center;
    margin: 10px 0;
}

.notification-icon {
    position: relative;
    display: inline-block;
    font-size: 24px;
    color: black;
    cursor: pointer;
    padding-right: 30px;
    /*padding-left: 15px;*/
}

.notification-badge {
    position: absolute;
    top: -5px;
    background-color: red;
    color: white;
    font-size: 12px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    text-align: center;
    line-height: 18px;
}

.notification-panel {
    position: fixed;
    top: 40px;
    right: -400px; /* Start off-screen */
    width: 400px; /* Adjust as needed */
    height: 100%;
    overflow-y: auto;
    background-color: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: right 0.3s ease; /* Smooth slide effect */
}

.notification-panel.open {
    right: 0; /* Slide in */
}

.notification-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #ccc;
    font-weight: bold;
    background-color: #f8f8f8;
}

.notification-panel-header h2 {
    margin: 0; /* Remove default margin to align properly */
    font-size: 20px; /* Ensure the text size is consistent */
}

.notification-list {
    padding: 20px;
}


.notification-text {
    flex-grow: 1;
}


.notification-username {
    color: #004E98;
    font-weight: bold;
    text-decoration: none;
}

.notification-username:hover {
    text-decoration: underline;
}

.notification-item small {
    color: gray;
    font-size: 0.9em;
}

/* Individual Notification Item */
.notification-item {
    display: flex;
    align-items: center;
    padding: 10px 15px; /* Add spacing inside each notification */
    border-bottom: 1px solid #ddd; /* Grey line separator between notifications */
    color: #333; /* Default text color */
    cursor: pointer; /* Add hover pointer for interactivity */
    transition: background-color 0.3s ease; /* Smooth hover effect */
}

.notification-link {
    color: #004E98;
    font-weight: bold;
    text-decoration: none;
}

.notification-link:hover {
    text-decoration: underline;
}


.close-panel-button {
    background: none;
    border: none;
    font-size: 24px; /* Match button size with the header text */
    cursor: pointer;
    color: #333;
    line-height: 1; /* Ensure the button's line height aligns vertically */
    padding: 0; /* Remove default button padding */
}

/* Mega Menu Styles */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1); /* Softer shadow for modern look */
    z-index: 1000;
    overflow: hidden;
    max-height: 0; /* Start hidden */
    transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out; /* Smooth slide and padding */
    /*border-radius: 8px; !* Rounded corners *!*/
    padding: 0; /* No padding when hidden */
    box-sizing: border-box; /* Ensure padding and border are included in width calculation */
}

/* Visible state */
.mega-menu.show {
    max-height: 600px; /* Adjust height as needed */
    padding: 10px 2px; /* Add padding when visible */
}

/* Mega Menu Content */
.mega-menu-content {
    display: flex;
    justify-content: space-between; /* Space between columns */
    flex-wrap: wrap; /* Ensure columns wrap on smaller screens */
    gap: 20px; /* Even spacing between columns */
    padding: 10px 40px;
}

/* Individual Column */
.column-social {
    flex: 1;
    min-width: 200px; /* Minimum column width */
    max-width: 25%; /* Maximum column width to avoid overflow */
    padding: 5px 10px; /* Spacing inside columns */
    background: #ffffff;
    border-radius: 8px;
}

/* Column Heading */
.column-social h3 {
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: bold;
    color: black;
    border-bottom: 2px solid grey; /* Modern accent line */
    padding-bottom: 5px;
}

/* Links inside the column */
.column-social a {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    color: black;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.column-social a:hover {
    color: #004E98;
    text-decoration: underline;
}

/* Close Button */
.close-mega-menu {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: black;
    transition: color 0.3s ease;
}

.close-mega-menu:hover {
    color: #333;
}

.menu-item {
    margin-bottom: 15px; /* Add spacing between items */
}

.menu-description {
    margin-top: 5px; /* Space between the link and description */
    font-size: 12px; /* Slightly smaller font for descriptions */
    color: #666; /* Subtle color for descriptions */
    line-height: 1.4; /* Improve readability */
}

.menu-item a {
    font-size: 14px; /* Keep links slightly larger */
    font-weight: bold;
    color: black;
    text-decoration: none;
}

.menu-item a:hover {
    color: #004E98; /* Highlight link on hover */
}


/* Responsive Adjustments */
@media screen and (max-width: 1024px) {
    .column {
        max-width: 45%; /* Adjust for smaller screens */
    }
}

@media screen and (max-width: 768px) {
    .column {
        max-width: 100%; /* Full width on smaller screens */
    }
}


.reply-form {
    display: flex;
    flex-direction: column; /* Stack textarea and button vertically */
    gap: 10px; /* Space between textarea and button */
    margin-top: 10px;
}

.reply-form textarea {
    flex-grow: 1; /* Allow the textarea to take up available space */
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    resize: none; /* Prevent resizing */
}

.reply-form button.reply-button {
    align-self: flex-end; /* Align the button to the right */
    background-color: #000; /* Black background */
    color: #fff; /* White text */
    padding: 8px 20px;
    border: 1px solid #000; /* Black border */
    border-radius: 4px; /* Rounded corners */
    cursor: pointer;
    font-weight: bold; /* Bold text */
    font-size: 16px;
    text-align: center;
}

.reply-form button.reply-button:hover {
    background-color: #004E98; /* Blue background on hover */
}


.comment, .reply {
    border-left: 2px solid #ddd;
    margin: 10px 0;
    padding: 10px;
    max-width: calc(100% - 20px); /* Prevent replies from exceeding container */
}

/* Limit Depth of Nested Replies */
.nested-replies {
    margin-left: 20px;
    padding-left: 10px;
    border-left: 2px solid #ccc;
    max-width: calc(100% - 40px); /* Keep nested replies within bounds */
    max-height: 300px;
    overflow-y: auto; /* Add scrolling for long threads */
}

.nested-replies-container {
    width: 100%; /* Keep nested replies within the comment section */
}

/* Collapsible Replies Button */
.toggle-replies-button {
    background: none;
    border: none;
    color: #004E98;
    font-weight: bold;
    cursor: pointer;
    text-align: left;
    margin-top: 5px;
    font-size: 14px;
}

.toggle-replies-button:hover {
    text-decoration: underline;
}

/* Adjust Profile Images */
.comment-profile-picture, .reply-profile-picture {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
}

.comment-header, .reply-header {
    display: flex;
    align-items: center;
}

/* Adjust Content Styling */
.comment-content, .reply-content {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.menu-button {
    background-color: black;
    color: white;
    border: 1px solid black;
    padding: 10px 25px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    font-weight: bold;
    margin: 1px 2px;
    cursor: pointer;
    border-radius: 4px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3); /* Add this line for shadow */

}

.menu-button:hover {
    background-color: #004E98; /* Slightly darker shade */
    color: white; /* Retain white text */
    border-color: #004E98; /* Match the new background color */
}

.navbar-profile-picture {
    width: 40px;
    height: 40px;
    border-radius: 50%; /* Makes the image circular */
    object-fit: cover; /* Ensures the image fits within the circle */
    border: 1px solid #004E98; /* Optional: Adds a border for better visibility */
    margin-right: 5px; /* Adds spacing to the right of the image */
    cursor: pointer; /* Makes it clear the image is clickable */
    transition: transform 0.3s ease; /* Adds hover effect */
}

.navbar-profile-picture:hover {
    transform: scale(1.1); /* Slightly enlarges the image on hover */
    border-color: #003366; /* Optional: Changes border color on hover */
}


.nav-content {
    display: flex;
    gap: 15px; /* Adds spacing between menu and logout button */
    justify-content: center; /* Centers the content horizontally */
    align-items: center; /* Centers the items vertically */
    flex: 1; /* Ensures it takes up space for proper centering */
}

.clickable-link {
    color: #004E98; /* Matches your theme */
    text-decoration: underline;
}

.clickable-link:hover {
    color: #002f5f; /* Slightly darker shade */
}

.navigation-links {
    margin-top: 140px;
    font-size: 16px;
    text-align: center; /* Centers the navigation links */
    margin-bottom: 15px;
}

.nav-link {
    color: #004E98;
    text-decoration: none;
    font-weight: bold;
}

.post-title {
    text-align: center; /* Centers the text */
    font-weight: bold; /* Makes the text bold */
    font-size: 24px; /* Adjusts the font size */
    /*margin-bottom: 10px; !* Adds spacing below the title *!*/
    color: #333; /* Adjust the color as needed */
}

.post-title a {
    text-decoration: none; /* Removes underline from the link */
    color: inherit; /* Inherits the color from the parent */
}

.feed-button {
    background-color: #004E98;
    color: white;
    border: 1px solid black;
    padding: 10px 25px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    font-weight: bold;
    margin: 1px 2px;
    cursor: pointer;
    border-radius: 4px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3); /* Add this line for shadow */
}

.feed-button:hover {
    background-color: #00376b;
}

/* Mega Menu Styles */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1); /* Softer shadow for modern look */
    z-index: 1000;
    overflow: hidden;
    max-height: 0; /* Start hidden */
    transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out; /* Smooth slide and padding */
    /*border-radius: 8px; !* Rounded corners *!*/
    padding: 0; /* No padding when hidden */
    box-sizing: border-box; /* Ensure padding and border are included in width calculation */
}

/* Visible state */
.mega-menu.show {
    max-height: 600px; /* Adjust height as needed */
    padding: 10px 2px; /* Add padding when visible */
    display: block;
}

/* Mega Menu Content */
.mega-menu-content {
    display: flex;
    justify-content: space-between; /* Space between columns */
    flex-wrap: wrap; /* Ensure columns wrap on smaller screens */
    gap: 20px; /* Even spacing between columns */
    padding: 10px 40px;
}

/* Close Button */
.close-mega-menu {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: black;
    transition: color 0.3s ease;
}

.close-mega-menu:hover {
    color: #333;
}

.menu-item {
    margin-bottom: 15px; /* Add spacing between items */
}

.menu-description {
    margin-top: 5px; /* Space between the link and description */
    font-size: 12px; /* Slightly smaller font for descriptions */
    color: #666; /* Subtle color for descriptions */
    line-height: 1.4; /* Improve readability */
}

.menu-item a {
    font-size: 14px; /* Keep links slightly larger */
    font-weight: bold;
    color: black;
    text-decoration: none;
}

.menu-item a:hover {
    color: #004E98; /* Highlight link on hover */
}

/* Base styling for the hamburger icon */
.hamburger-icon {
    display: none; /* Hide by default */
    cursor: pointer;
    font-size: 24px;
    margin-right: 30px;
    color: black;
    background: white;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    background-color: white;
    color: black;
    padding: 10px;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    z-index: 1000;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
}

.mobile-menu ul li {
    margin: 10px 0;
}

.mobile-menu ul li a {
    color: #fff;
    text-decoration: none;
}

/* --- Base / container --- */
.uv-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  opacity: 0; pointer-events: none;
  transition: opacity 200ms ease;
  z-index: 9998;
}

.uv-overlay.is-open {
  opacity: 1; pointer-events: auto;
}

.uv-mobile-menu {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: 88vw; max-width: 420px;
  background: #fff; color: #0b0b0b;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  transform: translateX(-100%);
  transition: transform 260ms ease;
  z-index: 9999;
  display: flex; flex-direction: column;
}

.uv-mobile-menu.is-open { transform: translateX(0); }

.uv-mobile-menu__header {
  display: flex;
  align-items: center;       /* vertically center both */
  justify-content: space-between;
  padding: 40px 16px 0 14px;
  border-bottom: 1px solid #ececec;
  min-height: 56px;          /* optional: consistent header height */
}

.uv-mobile-menu__header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: bold;
  line-height: 1;            /* prevents extra vertical wiggle */

}

.uv-close-btn {
  background: transparent;
  border: none;
  font-size: 32px;           /* adjust to taste */
  line-height: 1;            /* keeps the glyph vertically centered */
  width: 40px;               /* make it a square touch target */
  height: 40px;
  display: flex;             /* center the X inside the button */
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: black;
  padding: 0;                /* <-- remove the padding-top:40px */
}


/* --- Accordion --- */
.uv-accordion {
  padding: 6px 8px 18px 8px;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}

.uv-acc-section { border-bottom: 1px solid #f0f0f0; }

.uv-acc-trigger {
  width: 100%;
  text-align: left;
  padding: 14px 12px;
  background: transparent; border: none; cursor: pointer;
  font-size: 16px; font-weight: 600; color: #0b0b0b;
  display: flex; align-items: center; justify-content: space-between;
}

/*.uv-acc-trigger:focus { outline: 2px solid #004E98; outline-offset: 2px; }*/

.uv-acc-trigger .chev {
  display: inline-block;
  width: 10px; height: 10px;
  border-right: 2px solid #333; border-bottom: 2px solid #333;
  transform: rotate(-45deg); transition: transform 200ms ease;
  margin-left: 8px;
}

.uv-acc-trigger[aria-expanded="true"] .chev {
  transform: rotate(45deg);
}

/* keep your existing styles; just ensure .is-open doesn't hardcode max-height */
.uv-acc-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 12px;
  transition: max-height 260ms ease, opacity 220ms ease, padding 200ms ease;
}
.uv-acc-panel.is-open {
  opacity: 1;
  padding: 6px 12px 12px 12px;
  /* max-height is set inline by JS to scrollHeight */
}

/* --- Links inside panels --- */
.uv-acc-link {
  display: block; text-decoration: none;
  padding: 10px 8px; border-radius: 12px;
  margin: 6px 0; border: 1px solid #efefef;
  transition: border-color 150ms ease, background-color 150ms ease;
  color: #0b0b0b;
}

.uv-acc-link:hover { border-color: #dcdcdc; background-color: #fafafa; }

.uv-link-title { display: block; font-size: 15px; font-weight: 600; }
.uv-link-desc  { display: block; font-size: 13px; color: #666; margin-top: 2px; }

/* --- Buttons --- */
.uv-logout-btn {
  background: black; color: #fff;
  border: none; border-radius: 10px;
  padding: 14px 14px; cursor: pointer; font-weight: 600; font-size: 14px;
}

.uv-logout-btn { width: 100%; margin: 12px 0 12px 0; }

/* Optional: make body scroll lock when menu open */
body.uv-menu-open { overflow: hidden; }


/* Default styling */
.desktop-only {
    display: block; /* Visible by default */
}

.mobile-only {
    display: none; /* Hidden by default */
}

.clickable-image {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: inline-block;
}

.clickable-image img {
    width: 100%;
    height: auto;
    border-radius: 5px; /* Optional: Add rounded corners */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.clickable-image:hover img {
    transform: scale(1.05); /* Slight zoom effect on hover */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.post-content {
    flex-grow: 1;
    margin-bottom: 10px;
    white-space: pre-wrap; /* Preserve paragraph spacing and line breaks */
    word-wrap: break-word; /* Prevent text from overflowing */
    text-align: left; /* Ensure text and content align to the left */
}

.comment-content {
    margin: 5px 0;
    white-space: pre-wrap; /* Preserve paragraph spacing and line breaks */
    word-wrap: break-word; /* Prevent text from overflowing */
}

.reply-content {
    margin-left: 1.5rem; /* Keeps content aligned with profile picture */
    white-space: pre-wrap; /* Preserve paragraph spacing and line breaks */
    word-wrap: break-word; /* Prevent text from overflowing */
}

.create-post-floating-button {
    display: none; /* Initially hidden, shown via media query for mobile */
    position: fixed;
    bottom: 20px; /* Position it at the bottom-right */
    right: 20px;
    width: 60px; /* Circular button size */
    height: 60px;
    border-radius: 50%;
    background-color: #004E98; /* Blue background */
    color: white; /* White text */
    font-size: 24px; /* Font size for the "+" */
    font-weight: bold;
    text-align: center;
    line-height: 60px; /* Vertically align "+" */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 1000; /* Place it above other elements */
    border: none;
}

.create-post-floating-button:hover {
    background-color: #003f7a; /* Slightly darker on hover */
    transform: scale(1.1); /* Slightly larger on hover */
}

/* List Container */
#list-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
    max-height: 50vh; /* Limit height for better scrolling */
}

.post-view-container {
    max-width: 600px;
    width: 100%;
    margin: 15px auto; /* Centers each post */
    padding: 15px;
    background-color: white;
    border: none;
    border-radius: 8px;
    position: relative;
    box-sizing: border-box; /* Includes padding in width */
}

.comment-image {
    max-width: 50%;
    height: auto;
    border-radius: 8px;
    margin-top: 10px;
    margin-bottom: 10px;
}

/* Mobile styling */
@media (max-width: 768px) {
    .navbar {
        display: flex; /* Ensure flexbox layout */
        justify-content: space-between;
        align-items: center;
        padding-top: 40px;
        padding-bottom: 2px;
    }

    .navbar h1 {
        flex-grow: 1; /* Allow the title to grow and take up available space */
        text-align: center;
        margin: 0; /* Remove any default margin */
        position: absolute; /* Position it relative to the navbar */
        left: 50%; /* Move to the center horizontally */
        transform: translateX(-50%); /* Center it by offsetting half of its width */
        font-size: 30px; /* Adjust font size if necessary for mobile */
    }

    .hamburger-icon {
        display: inline-block;
        margin-left: 7px;
    }

    .right-section {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap; /* Prevent stacking */
        align-items: center; /* Align vertically in the row */
        justify-content: flex-end; /* Push to the right */
        gap: 3px; /* Control spacing between items */
        margin-right: 10px; /* Adjust right spacing */
    }

    /* Parent container for profile and notification */
    .profile-notification-group {
        display: flex; /* Arrange items in a horizontal row */
        flex-direction: row; /* Explicitly set row layout */
        align-items: center; /* Align items vertically */
        /*gap: 2px; !* Control spacing between profile picture and notification icon *!*/
    }

    /* Adjust profile picture style */
    .navbar-profile-picture {
        width: 35px;
        height: 35px;
        border-radius: 50%; /* Make it circular */
        object-fit: cover; /* Ensure the image doesn't stretch */
    }

    /* Notification icon adjustments */
    .notification-icon {
        font-size: 20px; /* Adjust size */
        position: relative; /* For badge placement */
    }

    .nav-content, .feed-button, .logout-button {
        display: none; /* Hide non-mobile menu items */
    }

    .intro > a:not(.hamburger-icon),
    .intro > button {
        display: none; /* Hide other buttons in the navbar */
    }

    .mobile-menu {
        display: none; /* Default to hidden */
        flex-direction: column;
        align-items: center; /* Center links horizontally */
        background-color: white; /* Background remains white */
        color: black; /* Set default text color to black */
        padding: 20px; /* Add padding for spacing */
        position: fixed; /* Make it cover the entire viewport */
        top: 15px;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1000;
    }

    .mobile-menu.hidden {
        display: none; /* Ensure it's hidden when the `hidden` class is applied */
    }

    .mobile-menu {
        display: flex; /* Display as flex when no `hidden` class */
    }

    .mobile-menu ul {
        list-style: none;
        padding: 0;
        text-align: center; /* Center text */
    }

    .mobile-menu ul li {
        margin: 15px 0; /* Add spacing between links */
    }

    .mobile-menu ul li a {
        color: black;
        text-decoration: none;
        font-size: 18px; /* Adjust font size for readability */
        font-weight: bold;
    }

    .mobile-menu.hidden {
        display: none; /* Hide when the menu is closed */
    }

    /* Close Button */
    .close-menu {
        position: absolute;
        top: 35px; /* Adjust to position the button properly */
        left: 1px; /* Adjust to position the button properly */
        background: none; /* Remove background for simplicity */
        border: none; /* Remove any borders */
        font-size: 35px; /* Ensure the "X" is visible and large enough */
        font-weight: bold; /* Make it bold */
        color: black; /* Ensure visibility */
        cursor: pointer; /* Show a pointer cursor on hover */
        z-index: 1001; /* Ensure it is above other content */
    }

    /*.close-menu:hover {*/
    /*    color: red; !* Optional: Change color on hover for better feedback *!*/
    /*}*/
    .mega-menu {
        display: none; /* Always hide the mega menu on mobile */
    }

    .mobile-only {
        display: inline-block; /* Makes elements visible on mobile */
    }

    .button-container {
        flex-direction: column; /* Stack buttons vertically */
        align-items: center; /* Center align buttons */
        gap: 10px; /* Reduce gap for stacked buttons */
    }

    .post-button,
    .follow-button {
        display: block; /* Ensure both elements behave like block elements */
        width: 100%; /* Make buttons take full width */
        max-width: 300px; /* Optional: Limit maximum button width */
        text-align: center; /* Center-align the text inside buttons */
        padding: 10px 20px !important; /* Ensure consistent padding */
        font-size: 16px !important; /* Use px for font size */
        font-weight: bold;
        border-radius: 4px;
        cursor: pointer;
        background-color: black;
        color: white;
        text-decoration: none; /* Remove underline for links */
        border: none !important; /* Remove any default button border */
        box-sizing: border-box; /* Ensure padding is included in the width */
    }

    /* Modal Styling */
    #listModal {
        display: none; /* Hidden by default */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.8); /* Dimmed background */
        z-index: 1000;
        overflow-y: auto;
        justify-content: flex-start; /* Align modal content to the top */
        align-items: center;
        padding: 20px; /* Add padding for spacing */
        box-sizing: border-box;
    }

    /* Show Modal */
    #listModal.active {
        display: flex; /* Show modal when active */
    }

    /* Modal Content */
    .modal-content {
        background-color: white;
        border-radius: 8px;
        width: 90%;
        max-width: 400px;
        padding: 15px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        text-align: left;
    }

    /* Modal Header */
    .modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10px;
    }

    .modal-header h2 {
        font-size: 18px;
        font-weight: bold;
        margin: 0;
    }

    .close-modal {
        background: none;
        border: none;
        font-size: 24px;
        font-weight: bold;
        cursor: pointer;
        color: black;
    }

    /* List Container */
    #list-container {
        display: flex;
        flex-direction: column;
        gap: 15px;
        overflow-y: auto;
        max-height: 35vh; /* Limit height for better scrolling */
    }

    /* List Item */
    .list-item {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px;
        background: white;
        border-radius: 5px;
    }

    .list-item img {
        width: 50px;
        height: 50px;
        border-radius: 50%; /* Circular profile images */
        object-fit: cover;
    }

    .user-info {
        flex-grow: 1;
    }

    .user-info a {
        font-weight: bold;
        text-decoration: none;
        color: black;
    }

    .user-info p {
        margin: 0;
        font-size: 14px;
    }

    /* Follow Button */
    .follow-button {
        padding: 8px 12px;
        font-size: 14px;
        width: auto;
        background-color: #004E98;
        color: white;
        border: none;
        /*border-radius: 5px;*/
        cursor: pointer;
    }

    .follow-button:hover {
        background-color: #002D5E;
    }

    /* Empty Message */
    .empty-message {
        text-align: center;
        /*color: #999;*/
        font-size: 16px;
        margin: 20px 0;
    }

    .create-post-floating-button {
        display: flex; /* Show the button on mobile */
        justify-content: center;
        align-items: center;
    }

    /* Hide the desktop 'Create Post+' button */
    .feed-button {
        display: none;
    }


}

