/* Social Sharing Buttons */
.social-sharing {
    margin: 20px 0;
    padding: 10px 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.share-text {
    margin-right: 10px;
    font-weight: bold;
}

.social-share {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 4px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s;
}

.social-share:hover {
    opacity: 0.9;
}

.social-share i {
    margin-right: 5px;
}

.social-share.twitter {
    background-color: #1DA1F2;
}

.social-share.facebook {
    background-color: #4267B2;
}

.social-share.whatsapp {
    background-color: #25D366;
}

/* Related Posts Section */
.related-posts {
    margin: 40px 0;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.related-posts-title {
    font-size: 24px;
    margin-bottom: 25px;
    text-align: center;
    color: #333;
    position: relative;
    padding-bottom: 15px;
}

.related-posts-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: #0073aa;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.related-post {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.related-post-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.related-post-thumbnail {
    height: 200px;
    overflow: hidden;
}

.related-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-post:hover .related-post-thumbnail img {
    transform: scale(1.05);
}

.related-post-title {
    margin: 15px 15px 5px;
    font-size: 18px;
    line-height: 1.4;
    color: #222;
}

.related-post-date {
    display: block;
    margin: 0 15px 15px;
    font-size: 14px;
    color: #666;
}

/* Featured Image with Caption */
.featured-image {
    margin-bottom: 20px;
}

.post-thumbnail {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 5px;
   
}

.thumbnail-caption {
    font-size: 14px;
    color: #666;
    text-align: center;
    font-style: italic;
    padding: 5px 10px;
    line-height: 1.4;
    border-left: 3px solid #eee;
    margin-top: 5px;
}
.entry-footer .tags-links {
    background-color: #f0f8ff; /* Light blue background */
    padding: 10px 15px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 0.95rem;
    color: #1a3e72; /* Darker blue text */
}

.entry-footer .tags-links a {
    background-color: #1a3e72; /* Dark blue tag background */
    color: #ffffff; /* White text */
    padding: 5px 10px;
    margin: 5px 5px 0 0;
    display: inline-block;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.entry-footer .tags-links a:hover {
    background-color: #004aad; /* Brighter blue on hover */
}
.story-meta {
    font-size: 0.95rem;
    color: #1a3e72; /* Deep blue text */
    background-color: #f5faff; /* Light blue background */
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 20px;
    border-left: 4px solid #1a3e72;
}

.story-meta a {
    color: #004aad; /* Link blue */
    text-decoration: none;
    font-weight: 600;
}

.story-meta a:hover {
    text-decoration: underline;
    color: #006be0;
}

.story-meta .categories {
    margin-left: 8px;
}

.story-meta .byline {
    margin-left: 10px;
    color: #333;
}

.news-tip-line {
    margin: 20px 0;
    padding: 15px;
    background: #f5f5f5;
    border-left: 3px solid #ccc;
    font-weight: bold;
}
/* Target images inserted in post content */
.entry-content img {
    max-width: 100%;       /* Never exceed container width */
    height: auto;         /* Maintain aspect ratio */
    display: block;       /* Remove extra space below image */
    margin: 1.5em auto;   /* Vertical spacing + center alignment */
}

/* WordPress default image alignment classes */
.entry-content .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.entry-content .alignleft {
    float: left;
    margin: 0.5em 1.5em 1em 0;  /* top right bottom left */
    max-width: 50%;              /* Prevent floated images from being too wide */
}

.entry-content .alignright {
    float: right;
    margin: 0.5em 0 1em 1.5em;   /* top right bottom left */
    max-width: 50%;              /* Prevent floated images from being too wide */
}

/* Full-width images (if used) */
.entry-content .alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
}

/* Image captions */
.wp-caption {
    max-width: 100%;             /* Caption container shouldn't overflow */
    margin-bottom: 1.5em;
}
.wp-caption img {
    display: block;              /* Fix for caption alignment */
}
.wp-caption-text {
    font-size: 0.9em;
    text-align: center;
    color: #666;
    padding: 0.5em 0;
}

/* Clear floats after images */
.entry-content:after {
    content: "";
    display: table;
    clear: both;
}

@media (max-width: 768px) {
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .social-sharing {
        justify-content: center;
    }
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ccc;
    gap: 20px; /* Adds space between stacked items on mobile */
}

.prev-post, .next-post {
    flex: 1;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .post-navigation {
        flex-direction: column;
        align-items: stretch;
    }

    .prev-post, .next-post {
        text-align: center;
        flex: none;
        width: 100%;
    }
}
