/**
 * Blog Styles
 */


.sidebar {
    position: relative;
    height: fit-content;
}

/* Ensure parent container doesn't have overflow hidden */
.col-lg-4 {
    overflow: visible !important;
}


/* In-Article Ads Styles */
.in-article-ad {
    margin: 2rem 0;
    clear: both;
    max-width: 100%;
}

.in-article-ad .ad-label {
    text-align: center;
    margin-bottom: 8px;
}

.in-article-ad .ad-wrapper {
    /* background-color: #f8f9fa; */
    /* border: 1px solid #dee2e6; */
    border-radius: 8px;
    padding: 15px;
    margin: 0 auto;
    max-width: 100%;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.in-article-ad .adsbygoogle {
    min-width: 300px;
    min-height: 100px;
    width: 100%;
    max-width: 100%;
}

/* Responsive adjustments for in-article ads */
@media (max-width: 768px) {
    .in-article-ad {
        margin: 1.5rem -15px; /* Extend to container edges on mobile */
    }
    
    .in-article-ad .ad-wrapper {
        border-radius: 0;
        margin: 0;
    }
    
    .in-article-ad .adsbygoogle {
        min-width: 250px;
        min-height: 100px;
    }
}

/* Post content styling */
.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.post-content blockquote {
    border-left: 4px solid #007bff;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.25rem;
}

.post-content code {
    background-color: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.9em;
}

.blog-navigation .card:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease;
}

.related-posts .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-posts .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Sticky Ads Styles */
.sticky-ads {
    position: -webkit-sticky;
    position: sticky;
    top: 100px;
    z-index: 100;
    /* background-color: #f8f9fa; */
    /* border: 1px solid #dee2e6; */
    padding: 15px;
    border-radius: 8px;
    width: 100%;
    min-height: 200px;
    margin-top: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sidebar {
    position: relative;
    height: fit-content;
}

/* Ensure parent container doesn't have overflow hidden */
.col-lg-4 {
    overflow: visible !important;
}

ins[data-ad-status="done"] {
	display: block;
	text-align: center;
	margin: 20px 0;
}
ins[data-ad-status="unfilled"] {
	display: none !important;
	margin: 0 !important;
	padding: 0 !important;
	height: 0 !important;
	width: 0 !important;
	overflow: hidden !important;
}
/* Mobile adjustments */
@media (max-width: 991px) {
    .sticky-ads {
        position: static;
        margin-top: 30px;
    }
}
