.custom-post-container {
    max-width: 1200px;
    margin: 0 auto;

    
}

.main-title-section {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.main-title {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin: 0;
    padding: 20px 40px;

    display: inline-block;
    position: relative;
}

.custom-post-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.post-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post-card {
    background: transparent;
    border-radius: 0;
    overflow: hidden;
    transition: transform 0.3s ease;
    break-inside: avoid;
}

.post-card:hover {
    transform: translateY(-5px);
}

/* Left column: Image top, content bottom */
.left-column .post-card {
    display: flex;
    flex-direction: column;
}

/* Right column: Content top, image bottom */
.right-column .post-card {
    display: flex;
    flex-direction: column-reverse;
}

.post-image {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.post-image img {
    width: 100%;
    height: auto;
    min-height: 150px;
    max-height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-meta-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    color: #666;
}

.post-meta-overlay i {
    margin-right: 5px;
}

.post-content {
    padding: 20px;
}

.post-title {
    margin: 10px 0;
    font-size: 16px;
    font-weight: bold;
    line-height: 1.4;
}

.post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #4CAF50;
}

.post-date {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.post-comments {
    font-size: 11px;
}

.post-excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-top: 10px;
}

.load-more-container {
    text-align: center;
    margin-top: 50px;
    position: relative;
    z-index: 10;
}

.load-more-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.load-more-btn:hover {
    background: #45a049;
}

/* Remove old masonry rules that are no longer needed */

/* Responsive */
@media (max-width: 768px) {
    .custom-post-grid {
        grid-template-columns: 1fr;
    }
    
    .main-title {
        font-size: 20px;
        padding: 15px 25px;
    }
}