/* Blog-specific styles */
.blog-hero {
    background-color: #f8f9fa;
    padding: 80px 0;
    text-align: center;
}

.blog-hero-content h1 {
    margin-bottom: 15px;
    color: #1a3b5d;
}

.blog-hero-content p {
    font-size: 20px;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

.blog-content {
    padding: 60px 0;
}

.blog-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.blog-main {
    flex: 1;
    min-width: 0;
}

.blog-sidebar {
    width: 350px;
}

.featured-post {
    margin-bottom: 50px;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

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

.featured-post-content {
    padding: 30px;
}

.post-meta {
    margin-bottom: 15px;
    font-size: 14px;
}

.post-category {
    background-color: #4CAF50;
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    margin-right: 10px;
}

.post-date {
    color: #666;
}

.featured-post-content h2 {
    margin-bottom: 15px;
    font-size: 28px;
    color: #1a3b5d;
}

.featured-post-content p {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.6;
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.blog-post-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.blog-post-card:hover {
    transform: translateY(-5px);
}

.post-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.post-content {
    padding: 20px;
}

.post-content h3 {
    margin: 10px 0;
    font-size: 20px;
    color: #1a3b5d;
}

.post-content p {
    margin-bottom: 15px;
    color: #666;
    line-height: 1.5;
}

.read-more {
    color: #4CAF50;
    font-weight: 500;
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.page-link, .current-page {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
}

.page-link {
    background-color: #f8f9fa;
    color: #1a3b5d;
}

.page-link:hover {
    background-color: #e9ecef;
}

.current-page {
    background-color: #4CAF50;
    color: white;
}

.sidebar-widget {
    background-color: #fff;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.sidebar-widget h3 {
    margin-bottom: 20px;
    font-size: 20px;
    color: #1a3b5d;
    position: relative;
    padding-bottom: 10px;
}

.sidebar-widget h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #4CAF50;
}

.search-form {
    display: flex;
}

.search-form input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
    font-size: 16px;
}

.search-form button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

.category-list {
    list-style: none;
    padding: 0;
}

.category-list li {
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.category-list li:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.category-list a {
    text-decoration: none;
    color: #333;
    display: flex;
    justify-content: space-between;
}

.category-list a:hover {
    color: #4CAF50;
}

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

.popular-post {
    display: flex;
    gap: 15px;
}

.popular-post-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.popular-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.popular-post-content h4 {
    margin: 0 0 5px;
    font-size: 16px;
    line-height: 1.4;
}

.popular-post-content h4 a {
    color: #1a3b5d;
    text-decoration: none;
}

.popular-post-content h4 a:hover {
    color: #4CAF50;
}

.popular-post-content .post-date {
    font-size: 12px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    display: inline-block;
    padding: 5px 12px;
    background-color: #f8f9fa;
    color: #666;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
}

.tag:hover {
    background-color: #4CAF50;
    color: white;
}

.cta-section {
    background-color: #1a3b5d;
    color: white;
    padding: 60px 0;
    text-align: center;
}

.cta-content h2 {
    color: white;
    margin-bottom: 15px;
}

.cta-content p {
    max-width: 600px;
    margin: 0 auto 30px;
    font-size: 18px;
}

/* AdSense container styles */
.adsense-container {
    margin: 30px 0;
    text-align: center;
    overflow: hidden;
    clear: both;
}

.adsense-placeholder {
    background-color: #f8f9fa;
    border: 1px dashed #ccc;
    padding: 20px;
    border-radius: 5px;
    font-size: 14px;
    color: #666;
}

.sidebar-ad {
    margin-bottom: 30px;
}

.in-content {
    max-width: 100%;
    margin: 30px auto;
}

/* Responsive styles */
@media (max-width: 992px) {
    .blog-layout {
        flex-direction: column;
    }
    
    .blog-sidebar {
        width: 100%;
    }
    
    .blog-posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 60px 0;
    }
    
    .blog-content {
        padding: 40px 0;
    }
    
    .featured-post-content {
        padding: 20px;
    }
    
    .featured-post-content h2 {
        font-size: 24px;
    }
    
    .blog-posts-grid {
        grid-template-columns: 1fr;
    }
}

/* Single post page styles */
.single-post-content {
    background-color: #fff;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

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

.post-header h1 {
    margin-bottom: 15px;
    color: #1a3b5d;
    font-size: 32px;
}

.post-header .post-meta {
    margin-bottom: 0;
}

.post-featured-image {
    margin-bottom: 30px;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.post-body {
    line-height: 1.8;
    color: #333;
}

.post-body p {
    margin-bottom: 20px;
}

.post-body h2 {
    margin: 40px 0 20px;
    color: #1a3b5d;
}

.post-body h3 {
    margin: 30px 0 15px;
    color: #1a3b5d;
}

.post-body ul, .post-body ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.post-body li {
    margin-bottom: 10px;
}

.post-body blockquote {
    border-left: 4px solid #4CAF50;
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #666;
}

.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 20px 0;
}

.post-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
}

.post-body th, .post-body td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.post-body th {
    background-color: #f8f9fa;
}

.post-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

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

.post-tags .tag {
    margin-right: 10px;
    margin-bottom: 10px;
}

.author-bio {
    display: flex;
    gap: 20px;
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 40px;
}

.author-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

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

.author-info h4 {
    margin-bottom: 10px;
    color: #1a3b5d;
}

.author-info p {
    color: #666;
    line-height: 1.6;
}

.related-posts {
    margin-top: 50px;
}

.related-posts h3 {
    margin-bottom: 30px;
    font-size: 24px;
    color: #1a3b5d;
}

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

@media (max-width: 992px) {
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .single-post-content {
        padding: 20px;
    }
    
    .post-header h1 {
        font-size: 28px;
    }
    
    .author-bio {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}
