/* General Styling */
body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    background-color: #f8f9fa;
}

#main{
    padding: 80px 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    color: #0056b3;
}

/* Blog Page Styling */
.breadcrumbs {
    padding: 20px 0;
    background: #f0f0f0;
    margin-bottom: 40px;
}

.breadcrumbs h2 {
    font-size: 28px;
    margin-bottom: 0;
}

.breadcrumbs ol {
    padding: 0;
    list-style: none;
}

.breadcrumbs ol li {
    display: inline-block;
    font-size: 14px;
}

.breadcrumbs ol li + li::before {
    content: "/";
    margin: 0 10px;
}

/* Blog Entries */
.blog .entries {
    margin-bottom: 40px;
}

.blog .entry {
    margin-bottom: 40px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 30px;
}

.blog .entry-img img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
}

.blog .entry-title {
    font-size: 24px;
    margin-bottom: 15px;
}

.blog .entry-title a {
    color: #333;
}

.blog .entry-meta ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #666;
}

.blog .entry-meta ul li {
    display: inline-flex;
    align-items: center;
}

.blog .entry-meta ul li i {
    margin-right: 5px;
    color: #007bff;
}

.blog .entry-content p {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
}

.blog .read-more a {
    color: #007bff;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 14px;
    border: 1px solid #007bff;
    padding: 8px 16px;
    border-radius: 4px;
    transition: 0.3s;
}

.blog .read-more a:hover {
    background-color: #007bff;
    color: #fff;
}

/* Sidebar Styling */
.sidebar {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 40px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.sidebar .sidebar-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.sidebar-item {
    margin-bottom: 40px;
}

.sidebar-item.search-form input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.sidebar-item.search-form button {
    background-color: #007bff;
    border: none;
    color: white;
    padding: 8px 12px;
    margin-left: 4px;
    cursor: pointer;
    border-radius: 4px;
    transition: 0.3s;
}

.sidebar-item.search-form button:hover {
    background-color: #0056b3;
}

.sidebar-item.categories ul,
.sidebar-item.tags ul {
    padding: 0;
    list-style: none;
}

.sidebar-item.categories ul li,
.sidebar-item.tags ul li {
    margin-bottom: 10px;
}

.sidebar-item.categories ul li a,
.sidebar-item.tags ul li a {
    color: #007bff;
    text-decoration: none;
}

.sidebar-item.categories ul li a:hover,
.sidebar-item.tags ul li a:hover {
    color: #0056b3;
}

.sidebar-item.categories ul li a span,
.sidebar-item.tags ul li a span {
    float: right;
    color: #999;
}

.sidebar-item.recent-posts .post-item {
    display: flex;
    margin-bottom: 20px;
}

.sidebar-item.recent-posts .post-item img {
    width: 60px;
    height: 60px;
    margin-right: 15px;
    border-radius: 4px;
}

.sidebar-item.recent-posts .post-item h4 {
    font-size: 14px;
    margin-bottom: 0;
}

.sidebar-item.recent-posts .post-item h4 a {
    color: #333;
}

.sidebar-item.recent-posts .post-item time {
    display: block;
    font-size: 12px;
    color: #999;
}



/* Scroll Top Button */
.scroll-top {
    background-color: #007bff;
    position: fixed;
    right: 15px;
    bottom: 15px;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    z-index: 9999;
    transition: background-color 0.3s ease;
}

.scroll-top:hover {
    background-color: #0056b3;
}

/* Responsive Design */
@media (max-width: 768px) {

    /* General blog layout adjustments */
    .blog .entries,
    .sidebar {
        margin-bottom: 30px; /* Ensures spacing between sections on mobile */
        padding-left: 15px; /* Adds padding to prevent content from touching the edge */
        padding-right: 15px;
    }

    /* Blog Post Title Adjustments */
    .blog .entry-title {
        font-size: 1.5rem; /* Reduced font size for better readability on smaller screens */
        line-height: 1.3;
        margin-bottom: 15px; /* Less margin to keep titles compact */
    }

    /* Adjusting Sidebar Recent Posts Thumbnails */
    .sidebar-item.recent-posts .post-item img {
        width: 50px;
        height: 50px;
        object-fit: cover; /* Ensures the image fits nicely without stretching */
        margin-right: 10px; /* Space between image and text */
        border-radius: 4px; /* Slight rounding for a smoother look */
    }

    /* Sidebar and Blog Post Meta Adjustments */
    .sidebar-item,
    .blog-post .entry-meta ul li {
        font-size: 0.9rem; /* Slightly smaller text for better mobile readability */
        line-height: 1.6;
    }

    /* Sidebar Spacing */
    .sidebar {
        margin-top: 20px; /* Adds space above sidebar on smaller screens */
    }

    /* Entry Content Adjustments for Mobile */
    .blog-post .entry-content p {
        font-size: 1rem; /* Reduced text size for paragraphs */
        line-height: 1.7; /* Increased line-height for better legibility */
        margin-bottom: 20px;
    }

    /* Adjust the padding of the entire page */
    
    #main {
       padding: 90px 15px;
    }

    /* Social Share Buttons on Mobile */
    .blog-post .share a {
        display: block; /* Stack share buttons vertically on mobile */
        margin-bottom: 10px; /* Space between share buttons */
        width: 100%; /* Ensure the button spans the width of the container */
        text-align: center;
    }
}
