/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background: url('slum_pic.webp') no-repeat center center/cover;
    padding-top: 60px;
}

/* Navbar */
.navbar {
    background-color: #333;
    color: #fff;
    padding: 15px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    font-size: 24px;
    font-weight: bold;
}

.nav-links {
    font-size: 16px;
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
}

.nav-links a:hover {
    text-decoration: underline;
}

/* Burger icon for mobile */
.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px;
    transition: 0.3s;
}

/* Mobile nav links styling */
.nav-links {
    display: flex;
}

.nav-links.nav-active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    background-color: rgba(51, 51, 51, 0.9);
}

/* Hero Section */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
    background: rgba(0, 0, 0, 0.5); 
}

.hero h1 {
    color: #fff;
    font-size: 48px;
    margin-bottom: 10px;
}

.hero p {
    font-size: 24px;
}

/* Blog Posts Section */
.blog-posts {
    padding: 20px;
    max-width: 800px;
    margin: 20px auto;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.blog-posts h2 {
    text-align: center;
    margin-bottom: 20px;
}

.post {
    margin-bottom: 20px;
    padding: 20px;
    background-color: #f4f4f4;
    border-radius: 5px;
    border-left: 5px solid #333;
}

.post h2 {
    margin-bottom: 10px;
    font-size: 24px;
}

.post p {
    font-size: 18px;
}

/* Submit Post Section */
.submit-post {
    background-color: #fff;
    padding: 20px;
    margin: 20px auto;
    max-width: 800px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.submit-post h2 {
    text-align: center;
    margin-bottom: 20px;
}

.submit-post form {
    display: flex;
    flex-direction: column;
}

.submit-post input, .submit-post textarea {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.submit-post textarea {
    height: 150px;
    resize: none;
}

.submit-post button {
    padding: 10px;
    background-color: #ff0000;
    color: #333;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.submit-post button:hover {
    background-color: #555;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px;
    position: fixed;
    bottom: 0;
    width: 100%;
}

/* About Us */
.about-us {
    max-width: 800px;
    margin: 60px auto;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    color: #333;
    text-align: center;
}

.about-us h1, .about-us h2 {
    color: #333;
    margin-bottom: 10px;
}

.about-us p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        background-color: rgba(51, 51, 51, 0.9);
    }

    /* Show burger icon on mobile */
    .burger {
        display: block;
    }

    /* Toggle display for mobile menu */
    .nav-active {
        display: flex;
    }

    .burger .line1, .burger .line2, .burger .line3 {
        width: 25px;
        height: 3px;
        background-color: #fff;
        margin: 5px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }
}
