.blog-wrap.grid-style6 {
    display: block;
    width: 100%;
}

.blog-wrap.grid-style6 .posts-wrap {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 30px;
    width: 100%;
    margin: 0;
    padding: 0;
}

.blog-wrap.grid-style6 .posts-wrap.grid-columns-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.blog-wrap.grid-style6 .posts-wrap.grid-columns-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.blog-wrap.grid-style6 .posts-wrap.grid-columns-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-style6-item {
    min-width: 0;
    list-style: none;
}

.grid-style6-item .featured-post-card {
    position: relative;
    width: 100%;
    aspect-ratio: 1.16 / 1;
    min-height: 420px;
    overflow: hidden;
    isolation: isolate;
    background: #1b1b1b;
    clip-path: polygon(0 0, calc(100% - 62px) 0, 100% 62px, 100% 100%, 0 100%);
}

.grid-style6-item .featured-post-media,
.grid-style6-item .featured-post-media img,
.grid-style6-item .featured-post-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.grid-style6-item .featured-post-media {
    z-index: 0;
    display: block;
}

.grid-style6-item .featured-post-media img {
    display: block;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.grid-style6-item .featured-post-overlay {
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.06) 8%, rgba(0, 0, 0, 0.28) 43%, rgba(0, 0, 0, 0.9) 100%);
}

.grid-style6-item .featured-post-content {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 0;
    left: 0;
    padding: clamp(28px, 5vw, 45px);
    color: #fff;
}

.grid-style6-item .featured-post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.grid-style6-item .featured-post-meta-dot {
    width: 5px;
    height: 5px;
    flex: 0 0 5px;
    border-radius: 50%;
    background: currentColor;
}

.grid-style6-item .featured-post-title {
    max-width: 590px;
    margin: 0 0 20px;
    font-family: var(--font-family);
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 700;
    line-height: 1.28;
    letter-spacing: -0.02em;
}

.grid-style6-item .featured-post-title a {
    color: #fff;
    text-decoration: none;
}

.grid-style6-item .featured-post-excerpt {
    display: -webkit-box;
    max-width: 590px;
    margin-bottom: 26px;
    overflow: hidden;
    color: #fff;
    font-size: 16px;
    line-height: 1.75;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.grid-style6-item .featured-post-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.grid-style6-item .featured-post-category {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 16px;
    background: #f4510b;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.grid-style6-item .featured-post-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    color: #f4510b;
    text-decoration: none;
    transition: border-color 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
}

.grid-style6-item .featured-post-action i {
    font-size: 17px;
}

.grid-style6-item .featured-post-card:hover .featured-post-media img {
    transform: scale(1.045);
}

.grid-style6-item .featured-post-category:hover {
    background: #d94306;
    color: #fff;
}

.grid-style6-item .featured-post-action:hover {
    border-color: #f4510b;
    background: #f4510b;
    color: #fff;
    transform: translateX(3px);
}

@media (max-width: 1024px) {
    .blog-wrap.grid-style6 .posts-wrap.grid-columns-3,
    .blog-wrap.grid-style6 .posts-wrap.grid-columns-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid-style6-item .featured-post-card {
        min-height: 480px;
    }
}

@media (max-width: 767px) {
    .blog-wrap.grid-style6 .posts-wrap,
    .blog-wrap.grid-style6 .posts-wrap.grid-columns-2,
    .blog-wrap.grid-style6 .posts-wrap.grid-columns-3,
    .blog-wrap.grid-style6 .posts-wrap.grid-columns-4 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .grid-style6-item .featured-post-card {
        min-height: 500px;
        aspect-ratio: auto;
        clip-path: polygon(0 0, calc(100% - 42px) 0, 100% 42px, 100% 100%, 0 100%);
    }

    .grid-style6-item .featured-post-content {
        padding: 28px 24px;
    }

    .grid-style6-item .featured-post-title {
        font-size: 27px;
    }

    .grid-style6-item .featured-post-excerpt {
        font-size: 15px;
        line-height: 1.65;
    }
}

/* Style 7: split content and featured image */
.blog-wrap.grid-style7 {
    display: block;
    width: 100%;
}

.blog-wrap.grid-style7 .posts-wrap {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 30px;
    width: 100%;
    margin: 0;
    padding: 0;
}

.blog-wrap.grid-style7 .posts-wrap.grid-columns-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.blog-wrap.grid-style7 .posts-wrap.grid-columns-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.blog-wrap.grid-style7 .posts-wrap.grid-columns-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-style7-item {
    min-width: 0;
    list-style: none;
}

.grid-style7-item .split-post-card {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    width: 100%;
    min-height: 275px;
    overflow: hidden;
    background: #f7f7f7;
    clip-path: polygon(0 0, calc(100% - 42px) 0, 100% 42px, 100% 100%, 0 100%);
}

.grid-style7-item .split-post-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
    padding: 25px 35px 22px;
}

.grid-style7-item .split-post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    color: #5f5f5f;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.grid-style7-item .split-post-meta-dot {
    width: 5px;
    height: 5px;
    flex: 0 0 5px;
    border-radius: 50%;
    background: currentColor;
}

.grid-style7-item .split-post-title {
    margin: 0 0 14px;
    font-family: var(--font-family);
    font-size: clamp(23px, 2.1vw, 27px);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.grid-style7-item .split-post-title a {
    color: #171717;
    text-decoration: none;
    transition: color 0.3s ease;
}

.grid-style7-item .split-post-excerpt {
    display: -webkit-box;
    margin-bottom: 22px;
    overflow: hidden;
    color: #686868;
    font-size: 16px;
    line-height: 1.8;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.grid-style7-item .split-post-category {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    margin-top: auto;
    padding: 10px 15px;
    background: #f4510b;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.grid-style7-item .split-post-media {
    position: relative;
    display: block;
    min-width: 0;
    min-height: 275px;
    overflow: hidden;
}

.grid-style7-item .split-post-media img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.65s ease;
}

.grid-style7-item .split-post-card:hover .split-post-media img {
    transform: scale(1.045);
}

.grid-style7-item .split-post-title a:hover {
    color: #f4510b;
}

.grid-style7-item .split-post-category:hover {
    background: #d94306;
    color: #fff;
}

@media (max-width: 1024px) {
    .blog-wrap.grid-style7 .posts-wrap.grid-columns-3,
    .blog-wrap.grid-style7 .posts-wrap.grid-columns-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid-style7-item .split-post-card {
        grid-template-columns: 1fr;
    }

    .grid-style7-item .split-post-media {
        grid-row: 1;
        min-height: 280px;
    }

    .grid-style7-item .split-post-content {
        grid-row: 2;
        min-height: 275px;
    }
}

@media (max-width: 767px) {
    .blog-wrap.grid-style7 .posts-wrap,
    .blog-wrap.grid-style7 .posts-wrap.grid-columns-2,
    .blog-wrap.grid-style7 .posts-wrap.grid-columns-3,
    .blog-wrap.grid-style7 .posts-wrap.grid-columns-4 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .grid-style7-item .split-post-card {
        clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 0 100%);
    }

    .grid-style7-item .split-post-media {
        min-height: 240px;
    }

    .grid-style7-item .split-post-content {
        min-height: 0;
        padding: 26px 24px 28px;
    }

    .grid-style7-item .split-post-title {
        font-size: 24px;
    }

    .grid-style7-item .split-post-excerpt {
        font-size: 15px;
        line-height: 1.7;
    }
}
