/* Related Posts Section */
.ttb-related-posts-section {
    width: 100%;
    margin: 40px 0;
    padding: 30px 0;
    border-top: 2px solid #e1e1e1;
    border-bottom: 2px solid #e1e1e1;
}

.ttb-related-posts-container {
    max-width: 100%;
}

.ttb-related-posts-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ttb-related-posts-title i {
    color: var(--main-nav-bg-color, #4a90e2);
    font-size: 22px;
}

/* Grid Layout - Responsive columns */
.ttb-related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
}

/* Individual Post Item */
.ttb-related-post-item {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ttb-related-post-item:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
    border-color: var(--main-nav-bg-color, #4a90e2);
}

/* Post Link */
.ttb-related-post-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Thumbnail */
.ttb-related-post-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.ttb-related-post-item:hover .ttb-related-post-thumbnail img {
    transform: scale(1.05);
}

/* No Image Placeholder */
.ttb-related-post-no-image {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.ttb-related-post-no-image i {
    font-size: 48px;
    opacity: 0.6;
}

/* Post Content */
.ttb-related-post-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Post Title */
.ttb-related-post-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px 0;
    line-height: 1.4;
    color: #333;
    transition: color 0.3s ease;
}

.ttb-related-post-item:hover .ttb-related-post-title {
    color: var(--main-nav-bg-color, #4a90e2);
}

/* Excerpt */
.ttb-related-post-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 12px;
    flex-grow: 1;
}

/* Meta (Date) */
.ttb-related-post-meta {
    font-size: 13px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
}

.ttb-related-post-meta i {
    font-size: 12px;
}

/* Responsive Tablet */
@media (max-width: 1024px) {
    .ttb-related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .ttb-related-post-thumbnail {
        height: 180px;
    }
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .ttb-related-posts-section {
        margin: 30px 0;
        padding: 20px 0;
    }

    .ttb-related-posts-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .ttb-related-posts-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .ttb-related-post-thumbnail {
        height: 220px;
    }

    .ttb-related-post-content {
        padding: 15px;
    }

    .ttb-related-post-title {
        font-size: 16px;
    }

    .ttb-related-post-excerpt {
        font-size: 13px;
    }
}

/* Full Width Post Layout Adjustments */
.full-width-post .ttb-related-posts-grid {
    max-width: 1200px;
    margin: 0 auto;
}
