* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #f4f4f4;
    color: #333;
}

header {
    background: #111;
    color: white;
    text-align: center;
    padding: 40px 20px;
}

.blog-container {
    max-width: 900px;
    margin: 40px auto 100px auto; /* space for footer */
    padding: 20px;
}

.blog-post {
    background: white;
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.blog-header {
    padding: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    background: #222;
    color: white;
    transition: 0.3s;
}

.blog-header:hover {
    background: #444;
}

.blog-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.blog-content p {
    margin: 15px 0;
}

.blog-content img {
    width: 100%;
    border-radius: 8px;
    margin: 10px 0;
}

.blog-post.active .blog-content {
    max-height: 1000px;
    padding: 20px;
}

/* Footer */
.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 60px;
    background: #222;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
}

.footer a {
    color: white;
    font-size: 1.5rem;
    transition: 0.3s;
}

.footer a:hover {
    color: #1da1f2;
}
