* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,html {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;   
    max-width: 100%;
        margin-bottom: 100px;  
        display: flex;
        flex-direction: column;
        min-height: 100vh;  
        overflow-x: hidden; /* Prevents horizontal scrolling */
        width: 100%;                  
}

html, body {
    box-sizing: border-box;
}
*, *::before, *::after {
    box-sizing: inherit;
}

/* 
.container {
    max-width: 1200px;
    margin: 0 auto;
} 
.container {
    width: 100%;
    max-width: 100%;
    padding: 0 10px; /* Add padding as needed 
    margin: 0 auto;
    overflow-x: hidden; /* Prevent horizontal overflow 
}


header {
    background-color: #f2f2f2;
    padding: 20px 0;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-right: 20px;
}

nav ul li:last-child {
    margin-right: 0;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    padding: 10px 20px;
    border-radius: 5px;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #ff6600;
}
/* 
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f0f0f0;
}

.container {
    width: 100%;
    max-width: 1000px; 
    margin: 20px;
    padding: 15px;
    box-sizing: border-box;
    text-align: center;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.container h1 {
    margin-top: 0;
    font-size: 2em;
    color: #333333;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap; 
    justify-content: center; 
}

nav ul li {
    margin: 10px;
}

nav ul li a {
    text-decoration: none;
    padding: 8px 15px;
    background-color: #4a7acb;
    color: #ffffff;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

nav ul li a:hover {
    background-color: #3e69b3;
}
  */


main {
    margin: 20px auto;
    max-width: 800px; /* Adjust as per your requirements */
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
}


section {
    margin-bottom: 10px;
}



nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap; /* Allows menu items to wrap if there are too many */
    justify-content: center; /* Centers the entire menu */
}

nav ul li {
    margin-right: 15px;
    margin-bottom: 5px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    padding: 8px 15px;
    border-radius: 5px;
    background-color: #f2f2f2;
    transition: color 0.3s ease, background-color 0.3s ease;
}

nav ul li a:hover {
    background-color: #e0e0e0;
    color: #ff6600;
}

h1 {
    color: #333;   
    color:#866209;
    width:550px;
    box-shadow: 0 4px 8px rgba(255, 195, 0, 0.6);
}

.heading2{
    width:500px;
    color:#a30000;
    /* box-shadow: 0 4px 8px rgba(255, 195, 0, 0.6); */
    box-shadow: 0px 8px 10px -5px rgba(0, 0, 0, 0.75);
}
.centered-graph img {
    width: 350px; /* This width could be adjusted to match a typical postcard size */
    height: auto; /* Keeps the image aspect ratio */
    display: block; /* Removes any extra space below the image */
    margin: 0 auto; /* Centers the image horizontally within its container */
    cursor:pointer;
}
.post-container img{
    width:800px;
    height:auto;
    display:block;
    margin:auto; 
    border:solid black 5px;  
}
.heading3{
    width:630px;
    color:#a30000;
    /* box-shadow: 0 4px 8px rgba(255, 195, 0, 0.6); */
    box-shadow: 0px 8px 10px -5px rgba(0, 0, 0, 0.75);
}
h2 {
    color: #555;   
        /* box-shadow: 0px 2px 0px rgba(0, 0, 0, 0.5); */
        position: relative;
        text-align: center;
    }
    
    h2::after {
        content: "";
        position: absolute;
        bottom: -5px; /* Adjust as needed */
        left: 50%;
        transform: translateX(-50%);
        width: 1.5in; /* Adjust the length of the line */
        height: 1px; /* Adjust the thickness of the line */
        background-color: #000; /* Adjust the color of the line */
        box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.5); /* Adjust the shadow */
    }
    .ol li{
        margin-bottom:9px;
    }

    /* Applies justified alignment to paragraphs */
    img {
        max-width: 100%;
        height: auto;
        cursor:pointer;
    }
    


p {
    text-align: left;
    margin: 10px 0;
    line-height: 1.6; /* Retain the line height for readability */
    padding: 0 10px;
}

/* Prevents the last line from being justified */
p::after {
    content: "";
    display: inline-block;
    width: 100%;
}

/* Container setup */
.container {
    display: flex;
    width: 100%;
}

/* Left column */
.left-column {
    flex: 1;
    margin-right: 20px;
    padding: 10px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
}

/* Grid setup for blog posts */
.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns */
    gap: 20px; /* Adjust gap as needed */
    flex: 3;
}

.post {
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.post img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
}





footer {
    background-color: #fff;
    color: #333;
    text-align: center;
    position: fixed;
    bottom: 0;
    width: 100%;
    padding: 10px 0;
}
/* General sty/* General styles for all screens */
.post-container {
    width: 100%;
    max-width: 800px;
    margin: 10px;
    padding: 10px;
    box-sizing: border-box;
    text-align: center;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}
.post-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Media query for smaller screens */
@media (max-width: 600px) {
    .post-container {
        margin: 0;
        padding: 5px;
        border-radius: 5px;
        width: 90%;
    }

    .post-image {
        border-radius: 5px;
    }
}
@media (max-width: 600px) {
    .container {
        margin: 0;
        width: 90%;
        padding: 10px;
    }

    nav ul {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul li {
        margin: 5px 0;
    }

    nav ul li a {
        width: 100%;
        text-align: left;
        padding: 10px;
        border-radius: 5px;
    }
}
/*Media query for Mobile */
@media (max-width: 600px) {
    .container {
        margin: 0 auto; /* Centers the container */
        width: 90%; /* Adjust this to fit within the screen */
        padding: 10px;
        box-sizing: border-box; /* Ensures padding is included in width */
    }

    .post-container {
        width: 100%; /* Makes sure it adapts to the container's width */
        margin: 0 auto;
        padding: 5px;
        box-sizing: border-box;
    }
}
/* for smaller screen */
@media (max-width: 600px) {
    .container {
        width: 100%;
        padding: 10px;
    }

    .post-container {
        width: 100%;
        padding: 5px;
        box-sizing: border-box;
    }
}
/* Css Menu for Navigation */
/* Mobile styles for the navigation menu */

/* */
@media (max-width: 768px) {
   

    nav ul {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    nav ul li {
        width: 100%;
        margin: 0;
    }

    nav ul li a {
        text-align: left;
        width: 100%;
        padding: 15px 10px;
        border-bottom: 1px solid #e0e0e0; /* Optional divider between menu items */
    }
}
/* this made the Change */

@media (max-width: 768px) {
    .menu-list li a::after {
        content: attr(data-short); /* Displays the shorter label */
    }

    .menu-list li a {
        text-align: left;
        width: 100%;
        padding: 15px 10px;
        border-bottom: 1px solid #e0e0e0;
        /* Hide full-length text */
        display: block;
    }

    .menu-list li a::before {
        display: none; /* Hides the full label on mobile devices */
    }
}
