/* General reset and responsive fonts */
body, h1, h2, h3, p {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Flexbox and Grid Adjustments */
.main-content {
    display: flex;
    flex-direction: column; /* Stack for smaller screens */
    margin: 20px auto;
    max-width: 1200px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Responsive grid */
    gap: 20px;
}

/* Header Style */
.header {
    background: #67aa40;
    padding: 1rem 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* Adjust Logo */
.logo {
    width: 224px;
    height: auto;
}

.nav-list {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.nav-list a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 15px;
}

/* Posts */
.post img {
    width: 100%;
    height: auto;
    object-fit: cover; /* Responsive image fit */
}

.post h3, .post h4 {
    margin: 10px 0;
}

.post p {
    margin-bottom: 10px;
}

/* Read More Styles */
.more-text {
    display: none;
}

.read-more {
    color: #67aa40;
    cursor: pointer;
    text-decoration: none;
    font-weight: bold;
}

.read-more:hover {
    text-decoration: underline;
}

/* Media Queries for Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-list {
        flex-direction: column;
    }
    
    .main-content {
        padding: 10px;
    }
    
    .grid-container {
        grid-template-columns: 1fr; /* Single column for small screens */
    }
    
    .logo {
        width: 150px;
    }
}

@media (max-width: 480px) {
    .nav-list a {
        font-size: 14px;
        padding: 8px 10px;
    }

    .grid-container {
        gap: 15px;
    }
}

/* Footer */
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 20px;
}

.footer p {
    margin: 0;
}

/* Social Media */
.social-media-icons {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.social-icon {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.1);
}

/* General reset */
.nav-list {
    list-style: none; /* Removed custom list style */
    padding: 0; /* Removed default padding */
    margin: 0; /* Removed default margin */
    display: flex;
}

/* Default style for navigation (Desktop) */
.nav-list li {
    margin-left: 15px;
}

.nav-list a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    display: flex; /* Added flex to align text and icons */
    align-items: center; /* Center text and icon vertically */
}

.nav-list i {
    margin-right: 8px; /* Space between icon and text */
}

.nav-list a:hover {
    text-decoration: underline; /* Changed to underline on hover */
}

/* Hamburger Menu Icon (Hidden on Desktop) */
.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: white;
}

/* Mobile View: Show Hamburger, Hide Navigation */
@media (max-width: 768px) {
    .nav-list {
        display: none; /* Hidden by default on mobile */
        flex-direction: column; /* Vertical list for mobile */
        background-color: #67aa40; /* Background color for dropdown */
        position: absolute;
        top: 70px; /* Adjust based on header height */
        right: 0;
        width: 100%; /* Full width on mobile */
        z-index: 999;
    }

    .nav-list li {
        text-align: center;
        padding: 15px;
    }

    .menu-toggle {
        display: block; /* Show the hamburger icon */
    }

    /* Show the menu when .active class is added */
    .nav-list.active {
        display: flex;
    }
}


.sections-nav {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    background-color: grey; /* Set the background color for the whole nav */
    padding: 10px;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
}

.sections-nav::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari and Opera */
}

.sections-nav a {
    display: inline-block;
    color: #d1d1d1; /* Text color inside the sections */
    padding: 10px 15px;
    text-decoration: none;
    background-color: grey; /* Set background color for each section */
    margin-right: 10px;
    border-radius: 5px;
}

.sections-nav a:hover {
    background-color: #2c2c2c; /* Change color on hover */
}

.sections-nav i {
    margin-right: 5px; /* Add some spacing between icon and text */
}

/* Footer Styling */
.footer {
    background: #67aa40;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

.footer p {
    margin: 0;
}

.logo {
    width: 220px;
    height: auto;
}
/* General reset and responsive fonts */
body, h1, h2, h3, h4, p {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Flexbox and Grid Adjustments */
.main-content {
    display: flex;
    flex-direction: column; /* Stack for smaller screens */
    margin: 20px auto;
    max-width: 1200px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Responsive grid */
    gap: 20px;
}

/* Header Style */
.header {
    background: #67aa40;
    padding: 1rem 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* Adjust Logo */
.logo {
    width: 220px; /* Default width */
    height: auto; /* Maintain aspect ratio */
    max-width: 100%; /* Ensure responsiveness */
}

/* Responsive Logo Adjustments */
@media (max-width: 768px) {
    .logo {
        width: 180px; /* Smaller width on tablets */
    }
}

@media (max-width: 480px) {
    .logo {
        width: 150px; /* Even smaller on mobile devices */
   /* CSS for consistent image sizing */

/* Blog Page Navigation List Styling */
.nav-list {
    background-color: rgb(44, 44, 44); /* Dark background color */
    border-top: 0px solid rgb(2, 2, 2); /* No border at the top */
    color: rgb(2, 2, 2); /* Text color */
    font-family: 'Montserrat', Arial, Helvetica, sans-serif; /* Font styling */
    font-size: 14px; /* Font size */
    height: 50px; /* Fixed height */
    overflow-x: hidden;
    overflow-y: hidden;
    position: relative; /* Position relative */
    display: flex;
    justify-content: center; /* Center align navigation items */
    align-items: center;
    list-style: none; /* Remove default list styling */
    margin: 0;
    padding: 0;
}

.nav-list li {
    margin: 0 15px; /* Space between navigation items */
}

.nav-list a {
    color: rgb(2, 2, 2); /* Link text color */
    text-decoration: none; /* No underline */
    padding: 10px 15px; /* Padding around links */
    display: block;
    text-align: center;
}

.nav-list a:hover {
    background-color: rgb(2, 2, 2); /* Hover effect for background */
    color: white; /* Change text color on hover */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .nav-list {
        flex-direction: column; /* Stack items on smaller screens */
        height: auto;
        width: 100%;
        padding: 10px 0;
    }

    .nav-list a {
        font-size: 14px; /* Adjust font size for mobile */
        padding: 8px 10px; /* Adjust padding for mobile */
    }
}
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #333;
    color: #fff;
}

.social-media {
    text-align: center;
}

.social-media h3 {
    margin: 0;
    font-size: 1rem;
    color: #fff;
}

.social-media-icons {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin-top: 8px;
}

.social-media-icons img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1); /* Makes icons white */
    transition: transform 0.2s ease;
}

.social-media-icons a:hover img {
    transform: scale(1.1);
}
