/* General body styling */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 200px; /* Updated padding */
    background-color: #f9f9f9; /* Fallback color */
    background-image: url('../image/backgroundimagemain.svg'); /* Background image */
    background-size: cover; /* Ensure full coverage */
    background-repeat: no-repeat; /* No repeat */
    background-position: center; /* Center the image */
    overflow-y: scroll; /* Always show vertical scrollbar */
    overflow-x: hidden; /* Hide horizontal scrolling */
    zoom: 100%; /* No scaling */
}

/* Make Text Justify */
p {
    text-align: justify; /* Justify text alignment */
    line-height: 1.6; /* Add spacing between lines for better readability */
    margin-bottom: 15px; /* Space between paragraphs */
}

/* Navbar Styles */
.navbar {
    position: absolute; /* Allows precise positioning */
    top: 15px; /* Keep distance from the top as per original */
    left: 50%; /* Center horizontally */
    transform: translateX(-50%); /* Adjust horizontally by half its width */
    background-color: #A41034; /* Maroon background */
    color: white;
    padding: 10px 20px;
    border-radius: 8px; /* Optional rounded corners */
    text-align: center; /* Center text inside the navbar */
}

/* Responsive Design */
@media (max-width: 1200px) {
    body {
        padding: 100px;
    }
}

@media (max-width: 992px) {
    body {
        padding: 50px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    body {
        padding: 10px;
    }
}

.nav-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    justify-content: space-around; /* Space between links */
}

.nav-item {
    text-align: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    font-weight: bold;
}

.nav-link:hover {
    background-color: #ffffff; /* White on hover */
    color: #800000; /* Optional: Change text color to maroon for contrast */
    border-radius: 5px; /* Rounded corners on hover */
    transition: background-color 0.3s;
}

/* Main container styling */
.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid */
    gap: 20px; /* Space between items */
    max-width: 1800px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid #ddd;
    opacity: 1;
}

/* Profile card styling */
.profile-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    border: 1px solid #ddd;
    text-align: left;
    transition: transform 0.2s;
}

.profile-card:hover {
    transform: scale(1.02); /* Subtle zoom effect on hover */
}

.profile-card h2 {
    margin-top: 0;
    color: #333;
}

.profile-card p {
    margin-bottom: 0;
    color: #555;
}



}

.graph-card:hover {
    transform: scale(1.02); /* Subtle zoom effect on hover */
}

.graph-card h2 {
    margin-top: 0;
    color: #333;
}

.graph-card p {
    margin-bottom: 0;
    color: #555;
}





/* Headings */
h2, h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

h2 {
    border-bottom: 2px solid #3498db;
    padding-bottom: 5px;
}

/* Paragraphs */
p {
    margin-bottom: 15px;
}

/* Lists */
ul, ol {
    margin: 10px 0 20px 20px;
    padding: 0;
}

li {
    margin-bottom: 5px;
}

/* Links */
a {
    color: #3498db;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Individual section */
.individual-section {
    margin-bottom: 30px;
}

/* Bold labels */
label {
    font-weight: bold;
    color: #002147;
}


.graph {
    max-width: 100%; /* Ensures the graph doesn't exceed the container width */
    height: auto; /* Maintains the aspect ratio */
    display: block; /* Prevents overflow caused by inline elements */
    margin: 0 auto; /* Centers the graph horizontally if needed */
}