/* Blog Page Styles */
.blog-main {
    padding: 0 0 50px 0;
}

.blog-main .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Breadcrumbs Container */
.breadcrumbs-container {
    padding: 15px 0 0;
}

.breadcrumbs-container .entry-content {
    margin: 0 auto;
}

/* Breadcrumb */
.breadcrumbs-container .entry-content > span {
    font-size: 13px;
    color: #999;
    margin: 0 4px;
}

.breadcrumbs-container .entry-content > span:first-child {
    margin-left: 0;
}

.breadcrumbs-container .entry-content a {
    color: #1e3a8a;
    text-decoration: none;
}

.breadcrumbs-container .entry-content a:hover {
    color: #3b82f6;
    text-decoration: underline;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 10px;
}

.page-title {
    font-size: 48px;
    font-weight: bold;
    color: #1e3a8a;
    margin: 0;
}

/* Blog Posts Container */
.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Blog Post Item */
.blog-post-item {
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    height: 300px; /* Fixed height for all posts */
}

.blog-post-item:hover {
    transform: translateY(-2px);
}

.blog-post-content {
    display: flex;
    height: 100%; /* Use full height of the container */
}

/* Odd posts: Image left, Text right */
.blog-post-item.odd .blog-post-content {
    flex-direction: row;
}

/* Blog Post Image */
.blog-post-image {
    flex: 1;
    position: relative;
    overflow: hidden;
    flex-basis: 50%;
}

.blog-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-post-item:hover .blog-post-image img {
    transform: scale(1.05);
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 18px;
}

/* Blog Post Text */
.blog-post-text {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    position: relative;
    box-sizing: border-box;
    flex-basis: 50%;
}

.blog-post-title {
    font-size: 32px;
    font-weight: bold;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.blog-post-date {
    font-size: 16px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.blog-post-button {
    display: inline-block;
    background: white;
    color: #dc2626;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.blog-post-button:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* No Posts */
.no-posts {
    text-align: center;
    padding: 50px 0;
    color: #6b7280;
    font-size: 18px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-title {
        font-size: 36px;
    }
    
    .blog-post-item {
        height: auto; /* Allow flexible height on mobile */
        min-height: 300px;
    }
    
    .blog-post-content {
        flex-direction: column !important;
        height: auto;
    }
    
    .blog-post-text {
        padding: 30px 20px;
    }
    
    .blog-post-title {
        font-size: 24px;
    }
    
    .blog-post-image {
        height: 250px;
        flex-basis: auto;
    }
}

@media (max-width: 480px) {
    .blog-main .container {
        padding: 0 15px;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .blog-post-text {
        padding: 20px 15px;
    }
    
    .blog-post-title {
        font-size: 20px;
    }
    
    .blog-post-button {
        padding: 12px 24px;
        font-size: 12px;
    }
}

/* Single Post Styles */
.single-post-main {
    padding: 0 0 30px 0;
}

.single-post-main .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.single-post-article {
    margin-bottom: 60px;
}

/* Single Post Header */
.single-post-header {
    margin-bottom: 40px;
    text-align: left;
}

.single-post-title {
    text-align: left;
}

.post-content-inner {
    line-height: 1.6;
}

.post-content-inner p {
    margin-bottom: 20px;
    font-size: 16px;
}

.post-content-inner h2,
.post-content-inner h3,
.post-content-inner h4 {
    color: white;
    margin-bottom: 15px;
}

.post-content-inner a {
    color: #fbbf24;
    text-decoration: underline;
}

.post-content-inner a:hover {
    color: #f59e0b;
}

/* Single Post Footer */
.single-post-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.single-post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.single-post-navigation .nav-back {
    flex: 1;
}

.single-post-navigation .nav-date {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

.single-post-navigation .back-to-posts {
    color: #1e3a8a;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.3s ease;
}

.single-post-navigation .back-to-posts:hover {
    color: #3b82f6;
}

/* Responsive Design for Single Post */
@media (max-width: 768px) {
    .single-post-text {
        padding: 30px 20px;
    }
    
    .single-post-navigation .nav-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .single-post-navigation .nav-next {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .single-post-main .container {
        padding: 0 15px;
    }

    .single-post-text {
        padding: 20px 15px;
    }
    
    .single-post-navigation a {
        padding: 12px 15px;
    }
}
