/* Archive Posts Widget Grid */
.tc-archive-posts-grid {
    display: grid;
    grid-template-columns: repeat(var(--tc-cols, 3), 1fr);
    gap: var(--tc-col-gap, 30px);
    width: 100%;
}

.tc-archive-post-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    /* Softer initial shadow */
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    will-change: transform, box-shadow;
    /* Hint for browser optimizations */
}

/* Hover Effects */
.elementor-widget-tc_archive_posts.tc-hover-translate-y .tc-archive-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.elementor-widget-tc_archive_posts.tc-hover-scale .tc-archive-post-card:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.elementor-widget-tc_archive_posts.tc-hover-shadow .tc-archive-post-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Thumbnail */
.tc-archive-post-thumbnail {
    position: relative;
    overflow: hidden;
    padding-top: 60%;
    /* Slightly wider 3:2 to 16:9 feel */
    background-color: #f1f1f1;
    /* Placeholder color before load */
}

.tc-archive-post-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    /* Smoother zoom */
}

.tc-archive-post-card:hover .tc-archive-post-thumbnail img {
    transform: scale(1.08);
    /* Subtle zoom */
}

/* Content */
.tc-archive-post-content {
    padding: 28px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.tc-archive-post-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 12px;
    line-height: 1.4;
}

.tc-archive-post-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    /* Expand hit area */
}

.tc-archive-post-title a:hover {
    color: #4a90e2;
}

.tc-archive-post-excerpt {
    font-size: 16px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 24px;
    flex-grow: 1;
    /* Pushes footer down */
}

/* Footer & Button */
.tc-archive-post-footer {
    margin-top: auto;
}

.tc-archive-post-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    background-color: #4a90e2;
    color: #fff;
    border-radius: 6px;
    /* Modern slightly rounded */
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.tc-archive-post-button:hover {
    background-color: #357abd;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

/* Pagination */
.tc-archive-pagination {
    margin-top: 60px;
    text-align: center;
    width: 100%;
}

.tc-archive-pagination ul.page-numbers {
    display: inline-flex;
    list-style: none;
    padding: 0;
    gap: 8px;
    align-items: center;
}

.tc-archive-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    /* For Next/Prev text */
    border-radius: 8px;
    background: #fff;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border: 1px solid #e1e1e1;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tc-archive-pagination .page-numbers:hover,
.tc-archive-pagination .page-numbers.current {
    background: #4a90e2;
    color: #fff;
    border-color: #4a90e2;
    box-shadow: 0 4px 10px rgba(74, 144, 226, 0.2);
    transform: translateY(-2px);
}

.tc-archive-pagination .page-numbers.dots {
    border: none;
    background: transparent;
    cursor: default;
    color: #999;
}

.tc-archive-pagination .page-numbers.dots:hover {
    background: transparent;
    color: #999;
    box-shadow: none;
    transform: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .tc-archive-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .tc-archive-posts-grid {
        grid-template-columns: 1fr;
    }
}