/* Posts Archive Container */
.posts-archive-container {
    width: 100%;
}

/* Header Section */
.posts-archive-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.section-heading-wrapper {
    flex: 1;
}

.section-heading {
    font-size: 44px !important;
    font-weight: 600 !important;
    color: #9ca3af;
    margin: 0;
    line-height: 1.4;
}

.heading-prefix {
    display: inline;
    color: #1F2933;
}

.heading-topics {
    display: inline;
    color: #1F2933;
    font-weight: 600;
}

/* Show More Button */
.show-more-wrapper {
    flex-shrink: 0;
}

.show-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: #128D92 !important;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.show-more-btn:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background-color: #0F6F73 !important;
}

.show-more-btn svg,
.show-more-btn i {
    font-size: 14px;
}

/* Posts Grid */
.posts-archive-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    width: 100%;
}

.posts-archive-grid[data-columns="1"] {
    grid-template-columns: 1fr;
}

.posts-archive-grid[data-columns="2"] {
    grid-template-columns: repeat(2, 1fr);
}

.posts-archive-grid[data-columns="3"] {
    grid-template-columns: repeat(3, 1fr);
}

.posts-archive-grid[data-columns="4"] {
    grid-template-columns: repeat(4, 1fr);
}

/* Post Card */
.post-archive-card {
    background: #000000;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.post-archive-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.post-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Featured Image with Overlay */
.post-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.post-featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-archive-card:hover .post-featured-image {
    transform: scale(1.05);
}

/*.post-image-overlay {*/
/*    position: absolute;*/
/*    top: 0;*/
/*    left: 0;*/
/*    right: 0;*/
/*    bottom: 0;*/
/*    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);*/
/*    display: flex;*/
/*    align-items: flex-end;*/
/*    padding: 30px;*/
/*    clip-path: polygon(0 0, 65% 0, 100% 100%, 0 100%);*/
/*}*/

.post-overlay-title {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    max-width: 60%;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Categories */
.post-categories {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    z-index: 1;
}

.post-category-tag {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

/* Post Content */
.post-content-wrapper {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-archive-title {
    color: #ffffff;
    font-size: 28px !important;
    font-weight: 600 !important;
    margin: 0 0 15px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-archive-excerpt {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px !important;
    line-height: 1.6;
    margin: 0 0 20px 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Post Meta */
.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.post-author-name {
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
}

.post-date {
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
}

/* Responsive */
@media (max-width: 1024px) {
    .posts-archive-grid[data-columns-tablet="1"] {
        grid-template-columns: 1fr;
    }

    .posts-archive-grid[data-columns-tablet="2"] {
        grid-template-columns: repeat(2, 1fr);
    }

    .posts-archive-grid[data-columns-tablet="3"] {
        grid-template-columns: repeat(3, 1fr);
    }

    /*.post-image-overlay {*/
    /*    clip-path: polygon(0 0, 70% 0, 100% 100%, 0 100%);*/
    /*}*/

    .post-overlay-title {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .posts-archive-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-heading {
        font-size: 24px;
    }

    .posts-archive-grid[data-columns-mobile="1"] {
        grid-template-columns: 1fr;
    }

    .posts-archive-grid[data-columns-mobile="2"] {
        grid-template-columns: repeat(2, 1fr);
    }

    .post-image-wrapper {
        height: 250px;
    }

    /*.post-image-overlay {*/
    /*    clip-path: polygon(0 0, 100% 0, 100% 70%, 0 100%);*/
    /*    padding: 20px;*/
    /*}*/

    .post-overlay-title {
        font-size: 18px;
        max-width: 100%;
    }

    .post-archive-title {
        font-size: 18px;
    }

    .post-archive-excerpt {
        font-size: 13px;
    }
}