/* Single Blog Post Font Styling */

/* Apply DM Sans font and color to all elements in the blog container */
.blog-container {
    font-family: "DM Sans", sans-serif;
    color: #031a1c;
}

/* Basic layout and spacing improvements */
.blog-container .content-wrapper {
    padding: 0 20px;
}

.post-banner {
    margin-bottom: 20px;
}

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

/* Headings */
.blog-container h1,
.blog-container h2,
.blog-container h3,
.blog-container h4,
.blog-container h5,
.blog-container h6 {
    font-family: "DM Sans", sans-serif;
    color: #031a1c;
    margin-top: 0;
    margin-bottom: 15px;
}

.post-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 10px;
}

/* Post content */
.blog-content,
.blog-content p,
.blog-content li,
.blog-content blockquote {
    font-family: "DM Sans", sans-serif;
    color: #031a1c;
}


.post-meta,
.post-date,
.post-reading-time,
.post-meta i,
.post-meta svg,
.post-meta p,
.post-date p,
.post-reading-time p,
.post-date i,
.post-reading-time i,
.post-meta span,
span.post-date,
span.text-base,
.card-text.post-date,
.post-details span,
.recent-posts-list .text-base,
.fas.fa-calendar-alt,
.fas.fa-clock {
    font-family: "DM Sans", sans-serif;
    color: #3a3a3a !important;
}

.post-date,
.post-reading-time {
    display: flex;
    align-items: center;
    margin: 0;
}

.post-date p,
.post-reading-time p {
    margin: 0;
    padding: 0;
    display: inline;
}

/* Ensure icons are displayed */
.post-meta i.fas,
i.fas.fa-calendar-alt,
i.fas.fa-clock {
    display: inline-block !important;
    margin-right: 10px;
    font-size: 16px;
    vertical-align: middle;
    color: #3a3a3a !important;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
}

/* Backup approach using CSS content property */
i.fas.fa-calendar-alt:before {
    content: "\f073" !important;
}

i.fas.fa-clock:before {
    content: "\f017" !important;
}

/* Social sharing section */
.social-sharing {
    margin: 20px 0;
    padding: 15px 0;

}

.social-sharing h4 {
    font-family: "DM Sans", sans-serif;
    color: #031a1c;
    margin-top: 0;
    margin-bottom: 10px;
}

.share-buttons {
    display: flex;
    gap: 15px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.share-buttons li {
    margin: 0;
}

.share-buttons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f5f5f5;
    transition: all 0.2s ease;
}

.share-buttons a:hover {
    background-color: #e0e0e0;
}

.share-buttons i {
    font-size: 20px;
}

/* Post navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin: 20px 0 40px;
    padding: 15px 0;
    border-bottom: 1px solid #eaeaea;
}

.post-navigation a {
    font-family: "DM Sans", sans-serif;
    color: #031a1c;
    text-decoration: none;
    font-weight: 500;
}

.post-navigation a:hover {
    text-decoration: underline;
}

.nav-previous,
.nav-next {
    max-width: 45%;
}

/* Related posts section */
.related-posts {
    margin-top: 40px;
}

.related-posts h3 {
    margin-bottom: 20px;
}

.related-posts h3,
.related-posts .card-title,
.related-posts .card-text {
    font-family: "DM Sans", sans-serif;
    color: #031a1c;
}

.related-posts-grid {
    display: grid;
    gap: 20px;
}

/* Sidebar elements */
.blog-sidebar,
.blog-sidebar h3,
.blog-sidebar h4,
.blog-sidebar p,
.blog-sidebar a,
.recent-posts-list .post-details {
    font-family: "DM Sans", sans-serif;
    color: #031a1c;
}

/* Links within blog content */
.blog-content a {
    color: #031a1c;
}

/* CTA section */
.blog-cta {
    margin: 30px 0;
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: 5px;
}

.blog-cta h3,
.blog-cta p {
    font-family: "DM Sans", sans-serif;
    color: #031a1c;
}

.blog-cta h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.blog-cta p {
    margin-bottom: 15px;
}

/* Apply font to buttons */
.blog-container .gb-btn,
.blog-container .button {
    font-family: "DM Sans", sans-serif;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .post-title {
        font-size: 2.2rem;
    }
    
    .content-wrapper {
        padding: 0 15px;
    }
}

@media (max-width: 767px) {
    /* Reduce header size on mobile */
    .post-title {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 10px;
    }
    
    .post-subtitle {
        font-size: 1.3rem;
    }
    
    /* Minimize spacing between banner and header */
    .post-banner {
        margin-bottom: 15px;
    }
    
    .post-header {
        margin-bottom: 20px;
    }
    
    /* Fix meta information alignment */
    .post-meta {
        margin-top: 10px;
        flex-direction: column;
        gap: 0;
    }
    
    /* Adjust content spacing */
    .blog-content {
        margin-top: 20px;
    }
    
    /* Improve social sharing section */
    .social-sharing {
        margin: 20px 0;
        padding: 15px 0;
    }
    
    /* Fix post navigation */
    .post-navigation {
        margin: 15px 0 30px;
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-previous,
    .nav-next {
        max-width: 100%;
    }
    
    /* Related articles spacing */
    .related-posts {
        margin-top: 30px;
    }
    
    .related-posts h3 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    /* CTA section */
    .blog-cta {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    /* Further size reductions for very small screens */
    .post-title {
        font-size: 1.6rem;
    }
    
    .content-wrapper {
        padding: 0 10px;
    }
    
    .blog-container {
        overflow-x: hidden;
    }
    
    /* Make share buttons more mobile-friendly */
    .share-buttons a {
        width: 35px;
        height: 35px;
    }
}