/* Single Post Styles */
.single-post-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.post-header {
    margin-bottom: 30px;
}

.post-title {
    font-size: 36px;
    line-height: 1.3;
    margin-bottom: 15px;
}

.post-meta {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666666;
}

.post-author {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    overflow: hidden;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-date {
    margin-right: 20px;
}

.post-category {
    color: #3861fb;
    font-weight: 600;
}

.post-thumbnail {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.post-content {
    font-size: 18px;
    line-height: 1.8;
    color: #333333;
}

.post-content p,
.post-content ul,
.post-content ol {
    margin-bottom: 25px;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    margin-top: 35px;
    margin-bottom: 20px;
}

.post-content h2 {
    font-size: 28px;
}

.post-content h3 {
    font-size: 24px;
}

.post-content h4 {
    font-size: 20px;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 25px 0;
}

.post-content blockquote {
    border-left: 4px solid #3861fb;
    padding-left: 20px;
    font-style: italic;
    margin: 25px 0;
    color: #555555;
}

.post-content a {
    color: #3861fb; /* Ensure links are blue */
    text-decoration: underline; /* Add underline for visibility */
    cursor: pointer; /* Ensure pointer cursor for links */
}

.post-content a:hover {
    color: #2d4ccc; /* Darker blue on hover */
}

/* Author Box */
.author-box {
    display: flex;
    align-items: center;
    background-color: #f7f8fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease;
}

.author-box:hover {
    background-color: #eef2f7;
}

.author-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.author-link:hover .author-info h4 {
    color: #3861fb;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%; /* Ensure the image is circular */
    overflow: hidden;
    margin-right: 20px;
    flex-shrink: 0; /* Prevent the avatar from shrinking */
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure the image fits within the circle */
    display: block;
}

.author-info h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.author-bio {
    font-size: 14px;
    line-height: 1.6;
    color: #555555;
}

.author-social {
    margin-top: 15px;
}

.author-social a {
    color: #666666;
    margin-right: 15px;
    font-size: 16px;
}

.author-social a:hover {
    color: #3861fb;
}

/* Related Posts */
.related-posts {
    margin-top: 50px;
}

.related-posts-title {
    font-size: 24px;
    margin-bottom: 25px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Comments */
.comments-section {
    margin-top: 50px;
}

.comments-title {
    font-size: 24px;
    margin-bottom: 25px;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eaeaea;
}

.comment-author {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.comment-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    overflow: hidden;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-meta {
    font-size: 14px;
    color: #666666;
}

.comment-name {
    font-weight: 700;
    color: #111111;
    margin-right: 10px;
}

.comment-content {
    font-size: 16px;
    line-height: 1.6;
    color: #333333;
}

.comment-reply {
    font-size: 14px;
    font-weight: 600;
    color: #3861fb;
    margin-top: 10px;
    display: inline-block;
}

.comment-form {
    margin-top: 30px;
}

.comment-form-author,
.comment-form-email,
.comment-form-comment {
    margin-bottom: 20px;
}

.comment-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    font-size: 14px;
}

.comment-form textarea {
    height: 150px;
}

.form-submit .submit {
    background-color: #3861fb;
    color: #ffffff;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.form-submit .submit:hover {
    background-color: #2d4ccc;
}

/* Post Navigation Grid */
.post-navigation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.post-navigation-card {
    background: #ffffff;
    overflow: hidden;
    transition: transform 0.3s ease
}

.post-navigation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.post-navigation-card .post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
}

.post-navigation-card .post-info {
    padding: 15px;
}

.post-navigation-card .post-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333333;
}

.post-navigation-card .post-excerpt {
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
}

/* Navigation Heading */
.navigation-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 700;
    margin: 20px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

/* Latest Posts Sidebar */
.latest-posts-sidebar {
    width: 300px;
    margin-left: 20px;
    margin-top: 20px;
    padding: 20px;
    background-color: #001A6E;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
    align-self: flex-start; /* Ensure the sidebar aligns with the top of the main content */
    height: auto; /* Restrict the background to the content height */
    position: static; /* Remove sticky behavior */
    top: auto; /* Reset top positioning */
    z-index: auto; 
}

.sidebar-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fff;
}

.sidebar-title-t {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #000;
}

.latest-posts-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.latest-post-card {
    display: flex;
    gap: 10px;
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.latest-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.latest-post-thumbnail img {
    width: 270px;
    height: 130px;
    object-fit: cover;
    display: block;
}

.latest-post-content {
    padding: 10px;
    flex: 1;
}

.latest-post-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333333;
    line-height: 1.4;
}

.latest-post-excerpt {
    font-size: 12px;
    color: #666666;
    line-height: 1.5;
}

/* Trending Posts Sidebar */
.trending-posts-sidebar {
    width: 300px;
    margin-left: 20px;
    margin-top: 20px;
    padding: 20px;
    background-color: #E1FFBB;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
    align-self: flex-start; /* Ensure the sidebar aligns with the top of the main content */
    height: auto; /* Restrict the background to the content height */
    position: static; /* Remove sticky behavior */
    top: auto; /* Reset top positioning */
    z-index: auto; /* Reset stacking order */
}

.trending-posts-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.trending-post-card {
    display: flex;
    gap: 10px;
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trending-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.trending-post-thumbnail img {
    width: 270px;
    height: 130px;
    object-fit: cover;
    display: block;
}

.trending-post-content {
    padding: 10px;
    flex: 1;
}

.trending-post-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333333;
    line-height: 1.4;
}

/* Content Layout */
.content-layout {
    display: flex;
    gap: 20px;
}

.main-content {
    flex: 1;
}

.sidebar-container {
    display: flex;
    flex-direction: column; /* Stack sidebars vertically */
    gap: 20px; /* Add spacing between sidebars */
    position: relative; /* Ensure proper stacking context */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .post-title {
        font-size: 28px;
    }

    .post-content {
        font-size: 16px;
    }

    .author-box {
        flex-direction: column;
        text-align: center;
    }

    .author-image {
        margin: 0 auto 15px;
    }

    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .post-navigation-card .post-title {
        font-size: 16px;
    }

    .post-navigation-card .post-excerpt {
        font-size: 13px;
    }

    .latest-posts-sidebar {
        width: 100%;
        margin-left: 0;
        margin-top: 20px;
        align-self: auto; /* Reset alignment for smaller screens */
        position: static; /* Reset sticky behavior on smaller screens */
    }

    .trending-posts-sidebar {
        width: 100%;
        margin-left: 0;
        margin-top: 20px;
        align-self: auto; /* Reset alignment for smaller screens */
        position: static; /* Reset sticky behavior on smaller screens */
    }

    .content-layout {
        flex-direction: column;
    }

    .entry-header .entry-title {
        font-size: 24px; /* Reduce font size for mobile */
        line-height: 1.4;
    }

    .entry-header .entry-meta {
        font-size: 12px; /* Reduce meta font size for mobile */
    }

    .entry-header .entry-meta span {
        margin-right: 10px; /* Adjust spacing between meta items */
    }

    .entry-meta {
        flex-direction: row; /* Ensure items are laid out horizontally */
        justify-content: flex-start; /* Align items to the left */
    }

    .entry-meta span {
        display: flex;
        align-items: center;
        gap: 5px; /* Add spacing between icon and text */
    }
}

@media (max-width: 480px) {
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .post-author,
    .post-date {
        margin-bottom: 10px;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

.entry-meta {
    display: flex; 
    flex-wrap: wrap; /* Allow wrapping if items exceed the width */
    gap: 10px; /* Add spacing between items */
    align-items: center; 
}

.entry-content {
    max-width: 1000px;
}

.entry-content a {
    color: #3861fb; /* Ensure links are blue */
    text-decoration: underline; /* Add underline for visibility */
    cursor: pointer; /* Ensure pointer cursor for links */
}

.entry-content a:hover {
    color: #2d4ccc; /* Darker blue on hover */
}

/* Footer Section */
.entry-footer {
    margin-top: 40px;
    margin-bottom: 20px;
    padding: 20px;
    background-color: #f7f8fa;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.post-tags {
    margin-bottom: 15px;
    font-size: 14px;
    color: #555555;
}

.post-tags i {
    margin-right: 5px;
    color: #3861fb;
}

.post-sharing {
    text-align: center;
}

.share-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333333;
}

.share-buttons a {
    display: inline-block;
    margin: 0 10px;
    font-size: 20px;
    color: #555555;
    transition: color 0.3s ease;
}

.share-buttons a:hover {
    color: #3861fb;
}

/* Specific colors for each platform */
.share-facebook:hover {
    color: #3b5998;
}

.share-twitter:hover {
    color: #1da1f2;
}

.share-linkedin:hover {
    color: #0077b5;
}

.share-email:hover {
    color: #d93025;
}

.comment-reply-title {
    margin-top: 60px;
}