.content-tabs {
    padding: 132px 0;
}

.content-tabs .btn-wrapper {
    margin-top: 132px;
}

@media (max-width:1440px) {
    .content-tabs {
        padding: 72px 0;
    }

    .content-tabs .btn-wrapper {
        margin-top: 72px;
    }

}

@media (max-width:991px) {
    .content-tabs {
        padding: 32px 0;
    }

    .content-tabs .btn-wrapper {
        margin-top: 32px;
    }
}

/* ---------- Tabs navigation ---------- */
.content-tabs .tabs-title-wrapper {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    scrollbar-width: none;
    /*padding-left: 32px;
    padding-right: 32px;*/
}

.content-tabs .tabs-title-wrapper::-webkit-scrollbar {
    display: none;
}

.content-tabs .tab-title {
    cursor: pointer;
    flex-shrink: 0;
    font-size: 71px;
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: -1%;
    color: #C3D4D1;
    transition: color 0.3s ease;
    font-family: var(--font-heading);
}

.content-tabs .tab-title:hover,
.content-tabs .tab-title.active {
    color: var(--primary);
}

.content-tabs .tabs-wrapper {
    border-bottom: 1px solid #C6D7D0;
    padding-bottom: 24px;
    margin-bottom: 24px;
    /*margin-left: -32px;
    margin-right: -32px;*/
}

/* ---------- Tab content show/hide ---------- */
.content-tabs .posts-wrapper {
    display: none;
}

.content-tabs .posts-wrapper.active {
    display: block;
}

/* ---------- Style: 4 (grid 4) ---------- */
.content-tabs.style-4 .posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.content-tabs .card-single {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    gap: 24px;
}

.content-tabs .card-single .post-thumb {
    width: 100%;
    aspect-ratio: 326 / 361;
    overflow: hidden;
    position: relative;
}

.content-tabs .card-single .post-video::before,
.content-tabs .card-single .post-thumb::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.15) 100%), linear-gradient(180deg, rgba(0, 0, 0, 0.26) 0%, rgba(0, 0, 0, 0.00) 28.18%);
}

.content-tabs .card-single .post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 326 / 361;
    transition: transform var(--duration-media) var(--ease-out-soft);
}

.content-tabs .card-single:hover .post-thumb img {
    transform: scale(var(--media-zoom));
}

.content-tabs .post-data {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.content-tabs .post-title {
    margin: 0;
    color: var(--black);
}

.content-tabs .post-excerpt {
    margin: 0;
    font-size: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.content-tabs .post-cat {
    display: flex;
    align-items: center;
}

.content-tabs .post-category {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-family: var(--font-accent);
    border-radius: 999px;
    background: #E9F1EC;
    font-size: 14px;
    padding: 4px 12px;
    letter-spacing: 3%;
}

.content-tabs .card-single.has-video .post-category {
    color: #fff;
    background: rgba(233, 241, 236, 0.25);
    backdrop-filter: blur(var(--blur-glass));
    -webkit-backdrop-filter: blur(var(--blur-glass));
}


.content-tabs .category-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.content-tabs .card-single.has-video .post-category .category-icon {
    filter: brightness(0) invert(1);
}

.content-tabs .card-single.has-video {
    position: relative;
}

.content-tabs .post-video {
    position: relative;
    width: 100%;
}

.content-tabs .post-video img,
.content-tabs .post-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.content-tabs .post-video,
.content-tabs .post-video video,
.content-tabs .card-single.has-video .post-data {
    aspect-ratio: 326 / 449;
}

.content-tabs .card-single.has-video .post-data {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    z-index: 2;
}

.content-tabs .card-single.has-video .post-title {
    color: #fff;
}

/* ---------- Style: 1-2 (50% + 25% + 25%) ---------- */
.content-tabs.style-1-2 .posts-featured-left {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 24px;
}

/* ---------- Style: 2-1 (25% + 25% + 50%) ---------- */
.content-tabs.style-2-1 .posts-featured-right {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: 24px;
}

.content-tabs .card-featured .post-video,
.content-tabs .card-featured .post-video video,
.content-tabs .card-single.card-featured.has-video .post-data,
.content-tabs .card-featured.has-video .post-data {
    aspect-ratio: 676 / 664;
}

.content-tabs .card-featured.has-video .post-data {
    padding: 48px;
    z-index: 2;
    justify-content: flex-end;
}

.content-tabs .card-featured .post-title {
    font-size: 54px;
}

.content-tabs .card-featured .post-video {
    overflow: hidden;
}

.content-tabs .card-featured .post-video::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.20) 0%, rgba(0, 0, 0, 0.20) 100%), linear-gradient(0deg, rgba(0, 0, 0, 0.50) 0%, rgba(0, 0, 0, 0.00) 60%);
}

.content-tabs .card-featured .post-video img,
.content-tabs .card-featured .post-video video {
    transform-origin: center center;
    transition: transform var(--duration-media) var(--ease-out-soft);
}

.content-tabs .card-featured:hover .post-video img,
.content-tabs .card-featured:hover .post-video video {
    transform: scale(var(--media-zoom));
}

/* ---------- Responsive ---------- */
@media (max-width:1199px) {
    .content-tabs.style-4 .posts-grid,
    .content-tabs.style-1-2 .posts-featured-left,
    .content-tabs.style-2-1 .posts-featured-right {
        display: flex;
        flex-direction: row;
        gap: 16px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        align-items: stretch;
        margin-right: -32px;
        padding-right: 32px;
        scrollbar-width: none;
    }

    .content-tabs.style-4 .posts-grid::-webkit-scrollbar,
    .content-tabs.style-1-2 .posts-featured-left::-webkit-scrollbar,
    .content-tabs.style-2-1 .posts-featured-right::-webkit-scrollbar {
        display: none;
    }

    .content-tabs.style-4 .posts-grid > .card-single,
    .content-tabs.style-1-2 .posts-featured-left > .card-single,
    .content-tabs.style-2-1 .posts-featured-right > .card-single {
        flex: 0 0 min(280px, 78vw);
        scroll-snap-align: start;
        min-width: 0;
        align-self: stretch;
    }

    .content-tabs.style-4 .posts-grid > .card-single.has-video,
    .content-tabs.style-1-2 .posts-featured-left > .card-single.has-video,
    .content-tabs.style-2-1 .posts-featured-right > .card-single.has-video,
    .content-tabs.style-1-2 .posts-featured-left > .card-single.card-featured,
    .content-tabs.style-2-1 .posts-featured-right > .card-single.card-featured {
        flex: 0 0 min(300px, 85vw);
    }

    .content-tabs .card-single.has-video,
    .content-tabs .card-single.card-featured {
        height: auto;
    }

    .content-tabs .card-single.has-video .post-video,
    .content-tabs .card-single.card-featured .post-video,
    .content-tabs .card-single.has-video .post-data,
    .content-tabs .card-single.card-featured.has-video .post-data {
        aspect-ratio: auto;
    }

    .content-tabs .card-single.has-video .post-video,
    .content-tabs .card-single.card-featured .post-video {
        flex: 1;
        height: 100%;
        min-height: 100%;
    }

    .content-tabs .card-single.has-video .post-data,
    .content-tabs .card-featured.has-video .post-data {
        inset: 0;
        justify-content: flex-end;
    }

    .content-tabs .tabs-title-wrapper {
        gap: 16px;
    }

    .content-tabs .tab-title {
        font-size: 51px;
    }

    .content-tabs .card-featured.has-video .post-data {
        padding: 24px;
    }

    .content-tabs .card-featured .post-title {
        font-size: 32px;
    }
}

@media (max-width:991px) {
    .content-tabs .tabs-wrapper {
        /*margin-left: -24px;*/
        margin-right: -24px;
        padding-bottom: 0px;
    }

    .content-tabs .tabs-title-wrapper {
        /*padding-left: 24px;*/
        padding-right: 24px;
        margin-bottom: 0px;
    }

    .content-tabs .post-excerpt {
        display: none;
    }

    .content-tabs.style-4 .posts-grid,
    .content-tabs.style-1-2 .posts-featured-left,
    .content-tabs.style-2-1 .posts-featured-right {
        margin-right: -24px;
        padding-right: 24px;
    }

    .content-tabs .post-title {
        font-size: 34px;
    }
}

@media (max-width:575px) {
    .content-tabs.style-4 .posts-grid,
    .content-tabs.style-1-2 .posts-featured-left,
    .content-tabs.style-2-1 .posts-featured-right {
        scroll-snap-type: x mandatory;
    }

    .content-tabs.style-4 .posts-grid > .card-single,
    .content-tabs.style-1-2 .posts-featured-left > .card-single,
    .content-tabs.style-2-1 .posts-featured-right > .card-single,
    .content-tabs.style-4 .posts-grid > .card-single.has-video,
    .content-tabs.style-1-2 .posts-featured-left > .card-single.has-video,
    .content-tabs.style-2-1 .posts-featured-right > .card-single.has-video,
    .content-tabs.style-1-2 .posts-featured-left > .card-single.card-featured,
    .content-tabs.style-2-1 .posts-featured-right > .card-single.card-featured {
        flex: 0 0 100%;
    }
}