/*
 * Self-hosted Roboto fonts
 */
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    src: url('fonts/roboto-regular.woff2') format('woff2'),
         url('fonts/roboto-regular.ttf') format('truetype');
    font-display: swap; /* Ensures text is visible during font loading */
}
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 500; /* Used for font-weight: 500 in nav links */
    src: url('fonts/roboto-medium.woff2') format('woff2'),
         url('fonts/roboto-medium.ttf') format('truetype');
    font-display: swap;
}
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 700;
    src: url('fonts/roboto-bold.woff2') format('woff2'),
         url('fonts/roboto-bold.ttf') format('truetype');
    font-display: swap; /* Ensures text is visible during font loading */
}

/* A reset for consistent box-sizing */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    height: 100%; /* Ensure HTML takes full height for content to flow */
}

/* General body styling */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    min-height: 100vh; /* Ensures the body takes at least the full viewport height for content flow */
    background-color: #f5f5f5; /* Solid background color as requested */
    display: flex; /* Flex container for overall page layout */
    flex-direction: column; /* Stack content vertically */
    align-items: center; /* Center content horizontally */
    justify-content: flex-start; /* Align content to the top, letting it push footer down */
    position: relative; /* Needed for any absolutely positioned children if applicable */
    color: #333; /* Default text color for elements not otherwise styled */
    overflow-y: auto; /* Allow vertical scrolling if content overflows */
    overflow-x: hidden; /* Prevent horizontal scrolling */
    /* Adjust padding for the new full-width header */
    padding-top: 10px; /* Adjusted padding to account for fixed full-width header (height: ~55px, padding: 15px top/bottom) */
    /* No padding-bottom needed here as the footer will flow naturally */
}

/* Styles for the header/top menu */
.top-menu-container {
    width: 100%; /* Made full width */
    background-color: #ffffff; /* White background as per screenshot */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08); /* Subtle shadow */
    padding: 15px 40px; /* Padding around content */
    display: flex;
    justify-content: space-between; /* Distribute items to edges (logo left, nav right) */
    align-items: center;
    position: fixed; /* Header remains fixed */
    top: 0; /* Aligned to the very top */
    left: 0; /* Aligned to the very left */
    right: 0; /* Aligned to the very right */
    z-index: 100;
    border-radius: 0; /* Removed border-radius for full width */
}

/* Left section: Logo/Site Name */
.top-menu-left {
    font-size: 1.5rem; /* Large logo text - this is actually the container for the image now */
    font-weight: bold;
    letter-spacing: 1px;
}

.top-menu-left img { /* Styling for the logo image */
    display: block; /* Ensure image behaves as a block element for layout */
    height: 55px; /* Base height for larger screens */
    width: auto; /* Maintain aspect ratio */
}

.top-menu-left a:hover {
    /* No color change on hover */
}

/* Nav element (container for the UL) */
.top-menu-container nav {
    flex-grow: 1; /* Allows nav to take up available space between logo and right edge */
    display: flex; /* Make nav a flex container to center its UL child */
    justify-content: center; /* Center the UL within the nav's space */
    align-items: center; /* Vertically align the UL */
}

/* Center section: Navigation Links */
.top-menu-nav {
    display: flex;
    gap: 30px; /* Space between links */
    list-style: none; /* Remove bullet points */
    margin: 0; /* Remove default margin */
    padding: 0 10px; /* Added 10px padding to left and right */
    align-items: center; /* Align items vertically in the center */
    flex-wrap: wrap; /* Added for desktop to allow wrapping */
    justify-content: center; /* Center items when they wrap on desktop */
}

.top-menu-nav a {
    text-decoration: underline;
    color: #000000; /* Changed to black */
    font-size: 1.2rem;
    font-weight: bold; /* Changed to bold */
    padding: 5px 0; /* Vertical padding */
    transition: color 0.3s ease; /* No border-bottom transition */
}

.top-menu-nav a.active,
.top-menu-nav a:hover {
    color: #000000; /* Retain color change */
    border-bottom: none; /* Removed underline */
    font-weight: bold; /* Ensure it stays bold on hover/active */
    text-decoration: none;
}

/* Responsive adjustments for header */
@media (max-width: 768px) {
    .top-menu-container {
        flex-direction: column; /* Stack logo, nav, social vertically */
        padding: 15px 20px;
        top: 0; /* Aligned to the very top for mobile too */
        left: 0; /* Aligned to the very left for mobile too */
        right: 0; /* Aligned to the very right for mobile too */
        border-radius: 0; /* Ensure no border-radius on full width mobile */
    }

    .top-menu-left {
        margin-bottom: 15px;
    }
    .top-menu-left img { /* Smaller logo on tablet/medium mobile */
        height: 45px; /* Adjust image height for smaller screens */
    }

    .top-menu-container nav { /* Adjust nav for mobile */
        width: 100%; /* Make nav take full width */
        justify-content: center; /* Center its content */
        margin-bottom: 15px; /* Add space below nav */
    }

    .top-menu-nav {
        flex-direction: row; /* Keep navigation links and social icons in one line */
        gap: 15px; /* Slightly reduced gap for overall compactness */
        justify-content: center; /* Center all items horizontally */
        flex-wrap: wrap; /* Changed to wrap */
        padding: 0 5px; /* Adjusted padding for mobile */
    }

    .top-menu-nav a { /* Applies to both text and social links */
        padding: 5px 8px; /* Smaller padding for all links */
        font-size: 1.1rem; /* Smaller font size for all links */
        white-space: nowrap; /* Prevent individual links from wrapping */
        flex-shrink: 0; /* Prevent items from shrinking if not enough space */
    }
}

@media (max-width: 480px) {
    .top-menu-container {
        padding: 10px 15px;
    }
    .top-menu-left img { /* Even smaller logo on very small screens */
        height: 40px; /* Adjust image height for very small screens */
    }
    .top-menu-nav {
        gap: 15px;
    }
    .top-menu-nav a {
        font-size: 1rem;
        padding: 3px 5px;
    }
}

/* Adjust padding-top for content below the fixed header */
.content-below-header {
    padding-top: 20px; /* Reduced padding as it's now inside the wrapper */
    text-align: center;
    color: #333; /* Darker text for content */
    margin-bottom: 20px;
}

/* New: Styles for the intro container */
.intro-container {
    width: 90%;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 20px 40px; /* Padding for content */
    margin: 10px auto; /* space between blocks */
    border-radius: 8px;
    text-align: center;
    color: #333;
}

/* Styles specifically for the #top-intro-container to arrange its content */
#top-intro-container {
    display: flex; /* Make it a flex container */
    align-items: center; /* Vertically center content */
}

/* Center the navigation links within the remaining space */
#top-intro-container nav {
    flex-grow: 1; /* Allow nav to take all available space */
    display: flex; /* Make nav a flex container */
    justify-content: center; /* Center its content (the ul.top-menu-nav) within itself */
    align-items: center; /* Vertically align its content */
}

.intro-container p {
    margin-bottom: 10px;
    line-height: 1.5;
}

/* Responsive adjustments for overall containers */
@media (max-width: 768px) {
    .intro-container {
        padding: 15px 20px; /* Adjust padding for mobile */
        width: 95%; /* Changed to 95% */
    }

    #top-intro-container {
        flex-direction: column; /* Stack logo and nav vertically on mobile */
        align-items: center; /* Center them horizontally when stacked */
    }
}


/* Styles for the footer menu */
.footer-container {
    width: 100%; /* Make it full width */
    background-color: #ffffff; /* White background */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08); /* Subtle shadow on top */
    padding: 15px 40px; /* Padding around content */
    display: flex;
    justify-content: center; /* Center the content within the footer */
    align-items: center;
    position: relative; /* Not fixed anymore, part of the normal flow */
    margin-top: 40px; /* Add some margin above the footer to separate it from content */
    z-index: 100;
    border-radius: 0;
}

.footer-container nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-nav {
    display: flex;
    max-width: 90%;
    gap: 20px;
    list-style: none;
    margin: 0 auto;
    padding: 0 10px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.footer-nav a {
    text-decoration: underline;
    color: #000000;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    text-decoration: none;
    border-bottom: none;
    font-weight: bold;
}

/* Responsive adjustments for footer */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        padding: 15px 20px;
        border-radius: 0;
    }

    .footer-container nav {
        width: 100%;
        justify-content: center;
        margin-bottom: 15px;
    }

    .footer-nav {
        max-width: 95%;
        gap: 8px;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        padding: 0 5px;
    }
}

@media (max-width: 500px) {
    .footer-container {
        padding: 10px 15px;
    }
    .footer-nav {
        gap: 4px;
    }
    .footer-nav a {
        font-size: 1rem;
        padding: 3px 5px;
    }
}

/* Styles for intro-text-section-2 specific layout */
#intro-text-section-2 .intro-section-2-content {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    gap: 40px;
    padding: 0;
    width: 100%;
    text-align: left;
}

#intro-text-section-2 .intro-section-2-left,
#intro-text-section-2 .intro-section-2-right {
    padding: 0;
    position: relative;
}

#intro-text-section-2 .intro-section-2-left {
    flex: 0 0 calc(25% - 20px);
}

#intro-text-section-2 .intro-section-2-right {
    flex: 0 0 calc(75% - 20px);
    text-align: center;
}

/* Modern Separator */
#intro-text-section-2 .intro-section-2-left::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: #ddd;
    box-shadow: 0 0 5px rgba(0,0,0,0.05);
}

/* Adjust separator for mobile */
@media (max-width: 768px) {
    #intro-text-section-2 .intro-section-2-left::after {
        content: none;
    }
    #intro-text-section-2 .intro-section-2-content {
        flex-direction: column;
        gap: 30px;
    }
    #intro-text-section-2 .intro-section-2-left,
    #intro-text-section-2 .intro-section-2-right {
        width: 100%;
    }
    #intro-text-section-2 .intro-section-2-left {
        padding-bottom: 20px;
        border-bottom: 1px solid #eee;
    }
}


/* Styling for the navigation menu within intro-text-section-2 */
.intro-nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

.intro-nav-menu li {
    margin-bottom: 1px;
}

.intro-nav-menu a {
    text-decoration: none;
    color: #000000;
    font-weight: bold;
    font-size: 1.2rem;
    padding: 8px 0;
    display: block;
    transition: color 0.3s ease;
    text-align: center;
}

.intro-nav-menu a:hover,
.intro-nav-menu a.active {
    color: #c60016;
}

/* Responsive font size for the intro nav menu */
@media (max-width: 768px) {
    .intro-nav-menu a {
        font-size: 1.1rem;
    }
}

/* Styling for the form within intro-text-section-2 */
.intro-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.intro-form .modern-input {
    width: 90%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Focus style for modern inputs */
.modern-input:focus,
.modern-input:focus-visible {
    border-color: #D9263A !important;
    box-shadow: 0 0 8px rgba(217, 38, 58, 0.8), inset 0 0 0 1000px white !important;
    background-color: transparent !important;
    outline: none !important;
}

.intro-form .modern-button {
    width: 90%;
    padding: 12px 20px;
    background-color: #c60016;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.intro-form .modern-button:hover {
    background-color: #a80014;
}

.content-wrapper {
    flex: 1;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0px;
    box-sizing: border-box;
}
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, 150px);
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
}
.photo-item {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.photo-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}
.photo-item .delete-form {
    position: absolute;
    top: 5px;
    right: 5px;
}
.photo-item .delete-btn {
    background-color: rgba(255, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-weight: bold;
    line-height: 25px;
    text-align: center;
}
.photo-item .status-overlay {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    text-align: center;
    padding: 5px;
    font-size: 0.9em;
}
.photo-options {
    padding: 5px;
    text-align: center;
    background-color: #f9f9f9;
    border-top: 1px solid #eee;
    font-size: 0.9em;
}
.profile-photo-text {
    color: #c60016;
    font-weight: bold;
    font-size: 1.0em;
}
.set-profile-link {
    background: none;
    border: none;
    color: black;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    font-size: 1.0em;
}
.set-profile-link:hover {
    text-decoration: none;
}
        
/* Styles for the inline upload form */
.upload-form-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.upload-form-inline .modern-input {
    flex: 1;
}
.upload-form-inline .modern-button {
    flex-shrink: 0; 
}

.verification-message {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #555;
}
.verification-message strong {
    color: #333;
}

.upload-rules {
    text-align: left;
    margin-top: 30px;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 5px;
    font-size: 0.9em;
}
.upload-rules h4 {
    margin-top: 0;
    color: #333;
}
.upload-rules ul {
    margin: 0;
    padding-left: 20px;
}
.upload-rules li {
    margin-bottom: 5px;
}

/* Wrapper for password fields to position the eye icon */
.password-wrapper {
    position: relative;
    width: 90%;
    display: flex;
    align-items: center;
}

.password-wrapper .modern-input {
    width: 100%;
    padding-right: 40px !important;
}

/* Eye icon for password visibility toggle */
.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #aaa;
}
.toggle-password:hover {
    color: #333;
}

/* Wrapper for the save button to add space below it */
.button-wrapper {
    width: 90%;
    margin-bottom: 20px;
}

.button-wrapper .modern-button {
    width: 100%;
}

/* Style for the password instruction text */
.password-instruction {
    text-align: center;
    font-size: 1.2em;
    color: #505050;
}

/* Updated deactivation status text to be bigger */
.deactivation-status {
    color: #c70017;
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.2em;
}

/* New and Adjusted Styles for Deletion Section */
.delete-section {
    border-top: 1px solid #dc3545;
}

.delete-section h3 {
    color: #dc3545;
}

.delete-section p {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 20px;
}

/* New styles for the delete form layout */
.delete-section .delete-form,
.delete-form-settings {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-bottom: 15px;
}

.delete-form-settings .password-wrapper {
    width: 170px;
}

.delete-form-settings .delete-button {
    flex-shrink: 0;
    width: auto !important;
    padding: 12px 20px !important;
    font-size: 1rem !important;
}

/* --- New Styles for Profile Edit Form --- */
.form-grid {
    display: flex;
    gap: 30px;
    width: 90%;
    margin-bottom: 15px;
}

.form-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.form-label {
    margin-bottom: 5px;
    font-weight: bold;
    color: #000;
    font-size: 1.0em;
}

.form-group .modern-input {
    width: 100%;
}

@media (max-width: 721px) {
    .form-grid {
        flex-direction: column;
        gap: 15px;
    }
}
.form-group textarea.modern-input {
    resize: vertical;
    min-height: 100px;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background-color: #fafafa;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #000;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95em;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* --- Profile Completeness Checklist Styles --- */
.profile-completeness {
    text-align: center;
    margin-bottom: 25px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eee;
    font-size: 1.1em;
}

.profile-completeness h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #333;
}

.progress-bar-container {
    width: 100%;
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-bar {
    height: 100%;
    background-color: #4CAF50;
    width: 0%;
    border-radius: 5px;
    transition: width 0.5s ease-in-out;
}

.checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.checklist li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.checklist li:last-child {
    margin-bottom: 0;
}

.checklist a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.2s;
    font-size: 1.15em;
    letter-spacing: 0.5px;
}

.checklist a:hover {
    color: #c60016;
}

.status-icon {
    font-size: 1.3em;
    margin-right: 10px;
    font-weight: bold;
    width: 25px;
    text-align: center;
}

.status-icon.complete {
    color: #3f8642;
}

.status-icon.incomplete {
    color: #f44336;
}

/* --- NEW STYLES FOR PROFILE PAGE --- */
.profile-container {
    display: flex;
    gap: 40px;
    width: 100%;
    text-align: left;
}

.profile-left {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-photo {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    background-color: #eee;
    transition: box-shadow 0.2s ease-in-out;
}

.profile-photo:has(a:focus-visible) {
    box-shadow: 0 0 0 2px white, 0 0 0 5px #c60016;
}

.profile-photo img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.action-btn i {
    margin-right: 10px;
}

.message-btn {
    background-color: #c60016;
    color: white;
}
.message-btn:hover {
    background-color: #a80014;
}

.like-btn {
    background-color: #fff;
    color: #c60016;
    border: 2px solid #c60016;
}
.like-btn:hover {
    background-color: #fde6ef;
}

.edit-btn {
    background-color: #555;
    color: white;
}
.edit-btn:hover {
    background-color: #333;
}

.profile-right {
    flex: 1;
}

.profile-header h1 {
    margin: 0 0 5px 0;
    font-size: 2.5rem;
    font-weight: 700;
}

.profile-header .location {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
}
.profile-header .location i {
    margin-right: 5px;
    color: #999;
}

.profile-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.profile-section:first-of-type {
    margin-top: 20px;
}

.profile-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.4rem;
    color: #333;
    border-bottom: 2px solid #c60016;
    padding-bottom: 5px;
    display: inline-block;
}

.profile-section p {
    line-height: 1.6;
    color: #555;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px 30px;
    font-size: 1rem;
}

.info-grid > div {
    padding: 5px 0;
}

.info-grid strong {
    color: #333;
}

.relationship-types .tag {
    display: inline-block;
    background-color: #fde6ef;
    color: #b30045;
    padding: 6px 12px;
    border-radius: 20px;
    margin: 0 8px 8px 0;
    font-size: 1.0rem;
    font-weight: 500;
}

.not-specified {
    color: #767676;
    font-style: italic;
}

@media (max-width: 860px) {
    .profile-container {
        flex-direction: column;
        gap: 30px;
    }
    .profile-left {
        flex: 0 0 auto;
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }
    .info-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .profile-header h1 {
        font-size: 2rem;
    }
}

/* --- Sidenav Menu Styles --- */
#top-intro-container {
    position: relative;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #333;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

.sidenav {
    height: 100%;
    width: 250px;
    position: fixed;
    z-index: 1001;
    top: 0;
    right: -250px;
    background-color: #ffffff;
    overflow-x: hidden;
    transition: right 0.4s ease-in-out;
    padding-top: 60px;
    box-shadow: -4px 0 15px rgba(0,0,0,0.1);
}

.sidenav.open {
    right: 0;
}

.sidenav a {
    padding: 10px 15px 10px 32px;
    text-decoration: underline;
    font-size: 1.2rem;
    font-weight: bold;
    color: #000;
    display: block;
    transition: color 0.3s ease;
}

.sidenav a:hover {
    color: #000;
    text-decoration: none;
}

.sidenav .close-btn {
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
    padding: 10;
    cursor: pointer;
}

#menu-overlay {
    position: fixed;
    display: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

#menu-overlay.active {
    display: block;
    opacity: 1;
}

@media (max-width: 768px) {
    .menu-toggle {
        right: 20px;
        top: 42.5px;
    }
}

@media (max-width: 480px) {
     .menu-toggle {
        right: 15px;
     }
}

/* --- ADDED FOR NOTIFICATION BADGE --- */
.top-menu-nav li a {
    display: flex;
    align-items: center;
}

.top-menu-nav .menu-notification-badge {
    display: inline-block;
    background-color: #c70017;
    color: white !important;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 12px;
    margin-left: 8px;
    line-height: 1;
    text-decoration: none;
}

/* --- Profile Page User ID & Actions Line --- */
.profile-user-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-id-info {
    font-size: 1rem;
    color: #555;
}

.user-id-info strong {
    color: #333;
}

.action-buttons-group {
    display: flex;
    gap: 12px;
}

.small-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fff;
    border: 2px solid #e0e0e0;
    font-size: 0.9rem;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.small-action-btn:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* --- NEW CLASS FOR PAGE LINKS --- */
.page-action-link {
    font-size: 1.1rem;
    font-weight: bold;
    color: #000000;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-action-link:hover {
    color: #000000;
    text-decoration: none;
}

/* --- NEW: Floating Back Button Styles --- */
.floating-btn {
    position: fixed;
    bottom: 60px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #c60016;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    border: none;
    cursor: pointer;
}
.floating-btn.show {
    opacity: 1;
    visibility: visible;
}

/* --- ACCESSIBILITY STYLES --- */
.visually-hidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    white-space: nowrap; 
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: #c60016;
    color: white;
    padding: 15px;
    z-index: 9999;
    transition: top 0.3s ease-in-out;
}
.skip-link:focus {
    top: 0;
}

a:focus-visible,
button:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: none;
    box-shadow: 0 0 8px rgba(217, 38, 58, 0.8);
}

/* --- ACCESSIBILITY & REPORT PAGE STYLES --- */
.report-form {
    width: 60%;
    margin: 20px auto 0 auto;
}

.char-counter {
    text-align: right;
    font-size: 0.9em;
    color: #555;
    width: 100%;
    margin-top: 5px;
}

@media (max-width: 768px) {
    .report-form {
        width: 95%;
    }
}

/* --- Box-Style User Feedback Messages (for all pages) --- */
.success-message,
.intro-container .message {
    font-size: 1.2em;
    padding: 10px 15px;
    border-radius: 5px;
    margin: 20px 0;
    text-align: center;
}

.success-message,
.intro-container .message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.intro-container .message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}


/*--- support---*/
.honeypot {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 0;
    z-index: -1;
}