/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Ensure the background covers the entire page */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: #F2F2F2; /* Light gray for background */
    color: #333; /* Neutral text color for readability */
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* General Body Styling */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    background-image: url('../image/backgroundimagemain.svg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    overflow-y: scroll;
    overflow-x: hidden;
    zoom: 140%;
}

/* Navbar Styles */
.navbar {
    background-color: #A41034; /* Dark red */
    color: #fff; /* White text for contrast */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.logo img {
    height: 100%;
    max-height: 65px; /* Optional: Set a maximum height */
    width: auto; /* Maintain aspect ratio */
}

/* Navigation Links */
.nav-menu {
    list-style: none;
    display: flex;
    gap: 1rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: #fff; /* White for consistency */
    padding: 0.5rem 1rem;
    transition: background-color 0.3s, color 0.3s;
}

.nav-link:hover {
    background-color: #004a99; /* 30% Accent */
    border-radius: 5px;
}
/* Main Content */
main {
    padding: 2rem;
}

.consumption-heading {
    margin: 0 0 10px;
    color: #03045e;
    font-size: 18px;
    padding: 0;
}

.production-heading {
    margin: 0 0 10px;
    color: #800000;
    font-size: 18px;
    padding: 0;
}

.renewable-heading {
    margin: 0 0 10px;
    color: #006400;
    font-size: 18px;
    padding: 0;
}


/* Download Button*/
.download-button {
    position: absolute; /* Allows precise positioning inside the chart container */
    bottom: 30px; /* Moves the button upward slightly from the bottom */
    right: 10px; /* Keeps the button close to the right edge */
    padding: 5px 10px; /* Smaller padding for a more compact button */
    background-color: #A41034; /* Dark red button */
    color: white; /* White text */
    text-decoration: none; /* Removes underline */
    font-size: 12px; /* Reduces text size */
    border-radius: 5px; /* Keeps the rounded corners */
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    transition: background-color 0.3s ease;
}

.download-button:hover {
    background-color: #800000; /* Darker red on hover */
    cursor: pointer; /* Pointer cursor */
}


/* Download Button for Card 2 */
.download-button-card2 {
    position: absolute; /* Allows precise positioning inside the chart container */
    bottom: 30px; /* Moves the button upward slightly from the bottom */
    right: 10px; /* Keeps the button close to the right edge */
    padding: 5px 10px; /* Smaller padding for a more compact button */
    background-color: #002a80; /* Blue button */
    color: white; /* White text */
    text-decoration: none; /* Removes underline */
    font-size: 12px; /* Reduces text size */
    border-radius: 5px; /* Keeps the rounded corners */
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    transition: background-color 0.3s ease;
}

.download-button-card2:hover {
    background-color: #03045e; /* Darker blue on hover */
    cursor: pointer; /* Pointer cursor */
}

.download-button-card3 {
    position: absolute; /* Allows precise positioning inside the chart container */
    bottom: 30px; /* Moves the button upward slightly from the bottom */
    right: 10px; /* Keeps the button close to the right edge */
    padding: 5px 10px; /* Smaller padding for a more compact button */
    background-color: #006400; /* Blue button */
    color: white; /* White text */
    text-decoration: none; /* Removes underline */
    font-size: 12px; /* Reduces text size */
    border-radius: 5px; /* Keeps the rounded corners */
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    transition: background-color 0.3s ease;
}

.download-button-card3:hover {
    background-color: #004d00; /* Darker blue on hover */
    cursor: pointer; /* Pointer cursor */
}

.download-button-card4 {
    background-color: #006400; /* Green */
    border: none;
    color: white;
    padding: 0.5em 1em; /* Adjusted padding */
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 0.8em; /* Adjusted font size */
    margin: 0.2em 0.1em; /* Adjusted margin */
    cursor: pointer;
    border-radius: 4px;
    margin-bottom: 20px;
    margin-top: -10px;
    margin-right: 20px;
}

.download-button-card4:hover {
    background-color: #004d00; /* Darker blue on hover */
    cursor: pointer; /* Pointer cursor */
}


.chart-container {
    position: relative; /* Enables positioning of the button relative to this container */
    text-align: center; /* Centers the image */
    margin-top: 0px; /* Adjust this value to move the SVG closer to the paragraph */
}

.chart-container img {
    width: 100%;
    height: auto;
    margin-top: -30px; /* Tighten spacing above chart */
}

/* Card Grid Section */
.card-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column layout (vertical stacking) */
    gap: 20px; /* Space between cards */
    margin: 40px auto; /* Center the grid */
    max-width: 800px; /* Restrict the overall width of the grid */
    padding: 20px;
    background: rgba(255, 255, 255, 0.9); /* Semi-transparent background */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-top: 0px;
}

/* Card Styling */
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: translateY(-6px); /* Move the card up slightly */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add a shadow effect */
}


.card img {
    width: 100%;
    height: auto;
    border-bottom: 3px solid #f4f4f9;
}

.card-content {
    padding: 15px; /* Reduce padding to bring elements closer together */
}

.card-content p {
    margin: 5px 0; /* Tighten spacing between paragraphs */
    color: #000000;
    text-align: justify;
    font-size: 14px;
}


#sector-image[src="residential.svg"] {
    width: 95%; /* Adjust the width as needed */
    height: auto; /* Maintain aspect ratio */
}
#sector-image[src="industry.svg"] {
    width: 95%; /* Adjust the width as needed */
    height: auto; /* Maintain aspect ratio */
}

#sector-image[src="electric.svg"] {
    width: 95%; /* Adjust the width as needed */
    height: auto; /* Maintain aspect ratio */
}

/* Footer Section */
.footer {
    background-color: #A41034; /* Dark red */
    color: #fff;
    padding: 2rem 1rem;
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.footer-links {
    list-style: none;
    display: flex;
    gap: 1rem;
}

.footer-links a {
    text-decoration: none;
    color: #fff;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #004a99; /* 30% Accent */
}

.social-media a {
    display: inline-block;
    margin: 0 0.5rem;
}

.social-media img {
    width: 24px;
    height: 24px;
    transition: transform 0.3s;
}

.social-media img:hover {
    transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-menu {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        width: 100%;
        text-align: left;
        padding: 1rem;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}

header {
    background-color: #f9f9f9; /* Match the body background color */
    text-align: center; /* Center the text horizontally */
    padding: 20px 0; /* Reduce vertical padding */
    position: relative; /* Keep the header in the normal flow */
    margin-top: -20px; /* Move the header higher */
    z-index: 1000; /* Ensure it appears above other elements */
}

header h1 {
    margin: 0; /* Remove any extra margins */
    font-size: 2rem; /* Font size for readability */
    color: #333; /* Neutral text color */
    text-shadow: none; /* Remove shadow for simplicity */
}