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


body {
    font-family: 'Arial', sans-serif;
    background-color: #f9f9f9;
    color: #333;
}

header {
    background-color: #ff8ec7;
    padding: 20px;
    color: white;
    text-align: center;
}

header .logo h1 {
    font-size: 2.5rem;
}

header nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

header nav ul li {
    margin: 0 15px;
}

header nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
}

header nav ul li a:hover,
header nav ul li a.active {
    color: #f7b6d2;
}


main {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}


#welcome {
    text-align: center;
    margin-bottom: 40px;
}

#welcome h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #ff8ec7;
}

#welcome p {
    font-size: 1.2rem;
    color: #555;
}


#featured-posts {
    margin-bottom: 40px;
}

#featured-posts h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #ff8ec7;
}

.posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.post {
    background-color: #f7f7f7;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.post h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.post a {
    text-decoration: none;
    color: #ff8ec7;
    font-weight: bold;
}

.post p {
    color: #666;
    font-size: 1rem;
    margin-bottom: 10px;
}


#discussion-forum {
    margin-bottom: 40px;
}

#discussion-forum h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #ff8ec7;
}

.forum {
    background-color: #f7f7f7;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.forum textarea {
    width: 100%;
    height: 150px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    resize: none;
}

.forum button {
    margin-top: 10px;
    background-color: #ff8ec7;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.forum button:hover {
    background-color: #f7b6d2;
}


#upcoming-events ul {
    list-style-type: none;
    padding-left: 20px;
}

#upcoming-events li {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 10px;
}


footer {
    background-color: #f3a1c7;
    color: white;
    text-align: center;
    padding: 15px;
    margin-top: 40px;
    font-size: 1rem;
}

@media screen and (max-width: 768px) {
    .posts {
        grid-template-columns: 1fr;
    }

    #welcome h2 {
        font-size: 1.5rem;
    }

    #featured-posts h3,
    #discussion-forum h3,
    #upcoming-events h3 {
        font-size: 1.5rem;
    }

    .post h4 {
        font-size: 1.3rem;
    }
}

@media screen and (max-width: 480px) {
    #welcome p,
    .post p {
        font-size: 1rem;
    }

    .forum textarea {
        height: 120px;
        font-size: 0.9rem;
    }

    .forum button {
        font-size: 0.9rem;
    }
}
