/* General Styling */
.blog-main {
    display: flex;
    flex-direction: row;
    margin-top: 40px;
}

.blog-post-full {
    width: 80%;
    margin: 0 auto;
    /* margin-right: 30px; */
}

.featured-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.featured-image img {
    width: 50%;
    height: 30%;
    border-radius: 10px;
    transition: transform 0.3s;
}

.featured-image img:hover {
    transform: scale(1.02);
}

.blog-content {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.post-title {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: bold;
}

.post-meta {
    font-size: 0.9em;
    color: #888;
    margin-bottom: 20px;
}

.post-body {
    line-height: 1.8;
}

.post-body h2 {
    margin-top: 20px;
    font-size: 2em;
    font-weight: bold;
}

blockquote {
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border-left: 5px solid #333;
    font-style: italic;
}

.post-tags {
    margin-top: 20px;
}

.post-tags span {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 5px 10px;
    margin: 0 5px;
    border-radius: 5px;
    font-size: 0.9em;
}

.share-buttons {
    margin-top: 20px;
}

.share-btn {
    background: #000;
    color: #fff;
    padding: 10px 20px;
    border: none;
    margin-right: 10px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s;
}

.share-btn:hover {
    background: #242424;
}

/* Sidebar */
.sidebar {
    width: 30%;
    position: sticky;
    top: 20px;
}

.author-info,
.related-posts {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.author-info h3,
.related-posts h3 {
    margin-bottom: 15px;
}

.author-bio {
    display: flex;
    align-items: center;
    flex-direction: column;
}

.author-bio img {
    margin-right: 20px;
    width: 100%;
    object-fit: cover;
}

.related-posts ul {
    list-style: none;
}

.related-posts li {
    margin-bottom: 10px;
}

.related-posts li a:hover {
    color: #4164ff;
}

/* Dark Mode */
body.dark-mode {
    background-color: #2c3e50;
    color: #ecf0f1;
}

body.dark-mode header,
body.dark-mode footer {
    background-color: #34495e;
}

body.dark-mode .blog-content,
body.dark-mode .author-info,
body.dark-mode .related-posts {
    background-color: #34495e;
    color: #ecf0f1;
}

/* Footer */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

.dark-mode-toggle {
    background: #f39c12;
    color: #fff;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 10px;
}

/* Responsive Styling */
@media (max-width: 1024px) {
    .blog-main {
        flex-direction: column;
    }

    .blog-post-full {
        width: 100%;
        margin-right: 0;
    }

    .sidebar {
        width: 100%;
        margin-top: 20px;
    }

    .post-title {
        font-size: 2em;
    }

    .post-body h2 {
        font-size: 1.8em;
    }

    .author-bio img {
        width: 80%;
    }
}

@media (max-width: 768px) {

    .blog-content,
    .author-info,
    .related-posts {
        padding: 15px;
    }

    .post-title {
        font-size: 1.8em;
    }

    .post-body h2 {
        font-size: 1.6em;
    }

    .author-bio img {
        width: 70%;
    }

    blockquote {
        padding: 10px;
    }
}

@media (max-width: 576px) {
    .post-title {
        font-size: 1.5em;
    }

    .post-body h2 {
        font-size: 1.4em;
    }

    .author-bio img {
        width: 60%;
    }
}