.blog-container {
    display: flex;
}

@media (max-width: 991px) {
    .blog-container {
        display: block!important;
    }
}

.blog-menu {
    width: 15%;
    margin-right: 20px;
}

.blog-menu h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.blog-menu ul {
    list-style-type: none;
    padding: 0;
}

.blog-menu li {
    margin-bottom: 10px;
}

.blog-menu li a {
    text-decoration: none;
    display: block;
    padding: 8px 12px;
    border-radius: 4px;
}

.blog-menu li a:hover, .blog-menu li a.active {
    background-color: #f0f0f0;
    color: #000;
}

.blog-content {
    width: 85%;
}

@media (max-width: 991px) {
    .blog-content {
        width: 100%!important;
    }
}


.blog-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Space between blog posts */
    justify-content: center; /* Center the items */
    max-width: 1200px; /* Optional: Set a maximum width for the container */
    margin: 0 auto; /* Center the container within the page */
    padding: 20px 0; /* Optional: Add padding for better spacing */
}

.blog-list .blog-post {
    flex: 1 1 calc(50% - 20px); /* Two items per row with gap accounted for */
    max-width: 600px; /* Prevent the blog post from stretching too wide */
    box-sizing: border-box; /* Ensure padding and border are included in the width */
    border: 1px solid #ddd;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    transition: transform 0.3s;
    cursor: pointer;
}

.blog-list .blog-post h2 {
    margin-bottom: 10px;
    margin-top: 15px;
    text-transform: none;
}

.blog-list .blog-post h2:hover {
    text-decoration: underline;
}

.blog-list .blog-post img {
    width: 100%;
}

.blog-list .blog-post .blog-img, .similar-article .blog-img {
    cursor: pointer;
    background: rgba(207,207,219,.33);
    color: transparent;
    border-radius: 4px;
    width: 100%;
    height: 276px;
    margin-bottom: 5px;
    overflow: hidden;
}

.blog-list .blog-post .snippet, .similar-article .snippet {
    margin-top: 10px;
    font-size: 1em;
}

.blog-pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.blog-pagination ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 10px;
}

.blog-pagination li {
    display: inline;
}

.blog-pagination a, .blog-pagination span {
    padding: 10px 15px;
    border-radius: 4px;
}

/* Responsive styles */
@media (max-width: 991px) {
    .blog-post {
        flex: 1 1 100%!important; /* One item per row */
        max-width: none!important; /* Remove max-width for full-width on small screens */
    }
}

.single-post header {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.single-post h1, h2, h3 {
    text-transform: none;
}

.single-post h1 {
    margin: 0;
}

.single-post p + h2 {
    margin-top: 25px;
}

.single-post h3 {
    margin-top: 10px;
    margin-bottom: 15px;
}

.single-post .author {
    margin-top: 12px;
}

.single-post img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    height: auto!important;
    max-width: 100%!important;
    border-radius: 5px;
}

.single-post p:has(img) {
    padding: 10px;
}

.single-post blockquote {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    position: relative;
    white-space: pre-line;
    margin-top: 20px!important;
    margin-bottom: 20px!important;
}

.single-post ul, ol {
    list-style-type: disc;
    padding-left: 20px;
    margin: 20px 0;
}

.single-post ul li, .single-post ol li {
    margin-bottom: 10px;
}

.single-post ul ul {
    list-style-type: circle;
    margin-left: 20px;
}

.single-post ul ul li {
    margin-bottom: 8px;
}

.similar-articles {
    margin-top: 50px;
    margin-bottom: 20px;
}

.similar-articles h2 {
    margin-bottom: 20px;
    text-align: center; /* Center the heading */
}

.similar-articles .articles-list {
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap to the next line */
    gap: 20px;
    justify-content: center; /* Center items when there's space */
}

.similar-article {
    flex: 1 1 300px; /* Flex items with a base width */
    max-width: 600px; /* Prevent the blog post from stretching too wide */
    box-sizing: border-box; /* Ensure padding and border are included in the width */
    border: 1px solid #ddd;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    transition: transform 0.3s;
    cursor: pointer;
}

.similar-article .blog-img img {
    width: 100%;
    max-width: 100%;
    height: auto;
}

.similar-article h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
    margin-top: 15px;
}

.similar-article h2:hover {
    text-decoration: underline;
}

.similar-article img {
    width: 100%;
}

@media (max-width: 991px) {
    .similar-article {
        flex: 1 1 100%;
        max-width: none;
    }
}

.blog-container-home h2 {
    text-align: center;
}

.blog-next-button {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.sedestral-social-share {
    text-align: center;
    margin-top: 30px;
}

.sedestral-social-share img {
    width: 25px;
    height: 25px;
    margin-right: 10px;
}

.sedestral-social-share ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.sedestral-social-share ul li {
    display: inline-block;
}

.sedestral-social-share ul li img {
    width: 32px;
    height: 32px;
    transition: transform 0.2s;
}

.sedestral-social-share ul li img:hover {
    transform: scale(1.2);
}
