/* Category archive */
.casara-category-hero {
    color: #2f261f;
    background: transparent;
    padding: var(--casara-section-y) 0;
}

.casara-category-posts > .wrapper,
.casara-category-sidebar > .wrapper {
    width: 100%;
    max-width: none;
    padding: 0;
}

.casara-category-hero > .wrapper {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.casara-category-hero .block-html {
    position: relative;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.casara-category-hero .block-html > .content {
    padding: 0;
}

.casara-category-hero-shell {
    position: relative;
    isolation: isolate;
    min-height: 278px;
    overflow: hidden;
    border-radius: 8px;
    background: linear-gradient(110deg, #fff 0%, #fff 56%, #f2ebe3 100%);
}

.casara-category-hero-shell > img {
    position: absolute;
    z-index: 0;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}

.casara-category-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 14px;
    max-width: 780px;
    padding: var(--casara-section-y) 0;
}

.casara-category-hero-media {
    position: absolute;
    z-index: 1;
    inset: 0 0 0 auto;
    width: 46%;
    background-image: var(--category-hero-image);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: .95;
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .16) 18%, #000 42%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .16) 18%, #000 42%);
}

.casara-category-hero-media::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, .94) 0%, rgba(255, 255, 255, .46) 30%, rgba(255, 255, 255, 0) 62%);
    pointer-events: none;
}

.casara-category-kicker {
    color: #9a6b3f;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .06em;
    line-height: 1.2;
    text-transform: uppercase;
}

.casara-category-title {
    margin: 0;
    color: #2f261f;
    font-family: Mulish, sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.12;
}

.casara-category-description {
    max-width: 690px;
    margin: 0;
    color: #65584d;
    font-size: .9375rem;
    line-height: 1.75;
}

.casara-category-menu-nav {
    border-top: 0;
    background: transparent;
    padding: 14px 0 0;
}

.casara-category-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.casara-category-menu .menu-item {
    margin: 0;
}

.casara-category-menu a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border: 1px solid #eee6de;
    border-radius: 6px;
    background: #fff;
    color: #4d453f;
    font-size: .8125rem;
    font-weight: 700;
    line-height: 1.2;
    padding: 10px 14px;
    text-decoration: none;
    transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}

.casara-category-menu a:hover,
.casara-category-menu .current-menu-item > a,
.casara-category-menu .current-menu-parent > a,
.casara-category-menu .current-category-ancestor > a {
    border-color: #392612;
    background: #392612;
    color: #fff;
}

#section-category-news-hero {
    padding: 0 0 var(--casara-section-y);
}

#section-category-news-hero > .wrapper {
    max-width: 1280px;
    padding: 0 1rem;
}

#section-category-news-hero .casara-category-hero-shell {
    min-height: 315px;
    border: 0;
    border-radius: 0;
    background: var(--category-hero-image) center / cover no-repeat;
    box-shadow: none;
}

#section-category-news-hero .block-html {
    position: relative;
    min-height: 315px;
    overflow: hidden;
    border: 1px solid #e7dccd;
    border-radius: 8px;
    box-shadow: 0 14px 32px rgba(57, 38, 18, .1);
}

#section-category-news-hero .block-html::before {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(90deg, rgba(57, 38, 18, .92) 0%, rgba(57, 38, 18, .78) 45%, rgba(57, 38, 18, .34) 100%);
    pointer-events: none;
}

#section-category-news-hero .block-html::after {
    content: none;
}

#section-category-news-hero .block-html > .content > img,
#section-category-news-hero .block-html > .content > p:has(img),
#section-category-news-hero .block-html > .content > figure,
#section-category-news-hero .block-html > .content > .wp-caption {
    position: absolute;
    z-index: 0;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    pointer-events: none;
}

#section-category-news-hero .block-html > .content > img,
#section-category-news-hero .block-html > .content > p:has(img) img,
#section-category-news-hero .block-html > .content > figure img,
#section-category-news-hero .block-html > .content > .wp-caption img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}

#section-category-news-hero .block-html > .head {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 1px;
    display: grid;
    align-content: start;
    justify-items: start;
    gap: .85rem;
    width: min(860px, calc(100% - 2px));
    min-height: 315px;
    margin: 0;
    padding: 4.25rem 2rem 2rem;
    text-align: left;
    pointer-events: none;
}

#section-category-news-hero .block-html > .head::before {
    content: "Cẩm nang nội thất Casara";
    color: #f1c891;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .06em;
    line-height: 1.2;
    text-transform: uppercase;
}

#section-category-news-hero .block-html > .head .title {
    margin: 0;
    color: #fff;
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1.12;
    text-align: left;
}

#section-category-news-hero .block-html > .head .description {
    display: -webkit-box;
    max-width: 720px;
    overflow: hidden;
    color: rgba(255, 255, 255, .88);
    font-size: .9375rem;
    line-height: 1.75;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

#section-category-news-hero .casara-category-hero-media {
    display: none;
}

#section-category-news-hero .casara-category-hero-inner {
    max-width: 860px;
    min-height: 315px;
    align-content: center;
    padding: 2rem;
}

#section-category-news-hero .casara-category-kicker {
    color: #f1c891;
}

#section-category-news-hero .casara-category-title {
    color: #fff;
}

#section-category-news-hero .casara-category-description {
    display: -webkit-box;
    max-width: 720px;
    overflow: hidden;
    color: rgba(255, 255, 255, .88);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

#section-category-news-hero .casara-category-menu-nav {
    padding: 2rem 0 0;
}

#section-category-news-hero .casara-category-menu {
    justify-content: center;
    gap: .45rem;
}

#section-category-news-hero .casara-category-menu a {
    min-height: 38px;
    border: 1px solid #eadfce;
    border-radius: 5px;
    background: #fff;
    color: #392612;
    padding: .46rem .6rem;
    font-size: .82rem;
    font-weight: 850;
    box-shadow: 0 8px 18px rgba(57, 38, 18, .045);
}

#section-category-news-hero .casara-category-menu a:hover,
#section-category-news-hero .casara-category-menu .current-menu-item > a,
#section-category-news-hero .casara-category-menu .current-menu-parent > a,
#section-category-news-hero .casara-category-menu .current-category-ancestor > a {
    border-color: #d7b890;
    background: #392612;
    color: #fff;
    box-shadow: 0 10px 22px rgba(57, 38, 18, .08);
}

#section-portfolio-category-hero,
#section-product-category-hero,
#section-store-hero,
#section-price-page-hero {
    padding: 0 0 var(--casara-section-y);
}

#section-portfolio-category-hero > .wrapper,
#section-product-category-hero > .wrapper,
#section-store-hero > .wrapper,
#section-price-page-hero > .wrapper {
    padding: 0;
}

#section-portfolio-category-hero .casara-category-hero-shell,
#section-product-category-hero .casara-category-hero-shell,
#section-store-hero .casara-category-hero-shell,
#section-price-page-hero .casara-category-hero-shell {
    min-height: 315px;
    border: 0;
    border-radius: 0;
    background: #2f2117;
    box-shadow: none;
}

#section-portfolio-category-hero .block-html,
#section-product-category-hero .block-html,
#section-store-hero .block-html,
#section-price-page-hero .block-html {
    position: relative;
    min-height: 315px;
    overflow: hidden;
    border: 1px solid #e7dccd;
    border-radius: 8px;
    box-shadow: 0 14px 32px rgba(57, 38, 18, .1);
}

#section-portfolio-category-hero .block-html::before,
#section-product-category-hero .block-html::before,
#section-store-hero .block-html::before,
#section-price-page-hero .block-html::before {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(90deg, rgba(57, 38, 18, .92) 0%, rgba(57, 38, 18, .78) 45%, rgba(57, 38, 18, .34) 100%);
    pointer-events: none;
}

#section-portfolio-category-hero .block-html::after,
#section-product-category-hero .block-html::after,
#section-store-hero .block-html::after,
#section-price-page-hero .block-html::after {
    content: none;
}

#section-portfolio-category-hero .block-html > .head,
#section-product-category-hero .block-html > .head,
#section-store-hero .block-html > .head,
#section-price-page-hero .block-html > .head {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 1px;
    display: grid;
    align-content: start;
    justify-items: start;
    gap: .85rem;
    width: min(860px, calc(100% - 2px));
    min-height: 315px;
    margin: 0;
    padding: 4.25rem 2rem 2rem;
    text-align: left;
    pointer-events: none;
}

#section-portfolio-category-hero .block-html > .head::before {
    content: "Dự án nội thất Casara";
    color: #f1c891;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .06em;
    line-height: 1.2;
    text-transform: uppercase;
}

#section-product-category-hero .block-html > .head::before,
#section-store-hero .block-html > .head::before {
    content: "Sản phẩm nội thất Casara";
    color: #f1c891;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .06em;
    line-height: 1.2;
    text-transform: uppercase;
}

#section-price-page-hero .block-html > .head::before {
    content: "Bảng giá nội thất Casara";
    color: #f1c891;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .06em;
    line-height: 1.2;
    text-transform: uppercase;
}

#section-portfolio-category-hero .block-html > .head .title,
#section-product-category-hero .block-html > .head .title,
#section-store-hero .block-html > .head .title,
#section-price-page-hero .block-html > .head .title {
    margin: 0;
    color: #fff;
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1.12;
    text-align: left;
}

#section-portfolio-category-hero .block-html > .head .description,
#section-product-category-hero .block-html > .head .description,
#section-store-hero .block-html > .head .description,
#section-price-page-hero .block-html > .head .description {
    display: -webkit-box;
    max-width: 720px;
    overflow: hidden;
    color: rgba(255, 255, 255, .88);
    font-size: .9375rem;
    line-height: 1.75;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

#main-content:has(.casara-category-posts) {
    background: #f4f1ed;
    padding: var(--casara-section-y) 0;
}

#main-content:has(.casara-category-posts) > .wrapper {
    align-items: start;
}

#main-content:has(.casara-category-posts) .left {
    display: grid;
    gap: 18px;
}

.casara-category-sidebar {
    width: 100%;
    padding: 0;
}

.casara-category-sidebar > .wrapper {
    display: grid;
    gap: 18px;
}

.casara-category-posts {
    color: #2f261f;
    padding: 0;
}

.casara-category-posts .block-collection {
    overflow: hidden;
    border: 1px solid #ebe3da;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(49, 35, 22, .05);
}

.casara-category-posts .block-collection > .head {
    border-bottom: 1px solid #eee6de;
    padding: 20px 22px 14px;
}

.casara-category-posts .block-collection > .head .title {
    margin: 0;
    color: #2f261f;
    font-size: 1.375rem;
    font-weight: 800;
    line-height: 1.25;
}

.casara-category-posts .block-collection > .head .description {
    max-width: 760px;
    margin-top: 8px;
    color: #756a60;
    font-size: .875rem;
    line-height: 1.65;
}

.casara-category-posts .block-collection > .content {
    padding: 22px;
}

.casara-category-posts .posts-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.casara-category-posts .posts-list .item {
    display: grid;
    overflow: hidden;
    border: 1px solid #eee6de;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(49, 35, 22, .045);
}

.casara-category-posts .posts-list .post-image {
    display: block;
    overflow: hidden;
    background: #eee8e1;
}

.casara-category-posts .posts-list .post-image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    transition: transform .25s ease;
}

.casara-category-posts .posts-list .item:hover .post-image img {
    transform: scale(1.035);
}

.casara-category-posts .posts-list .post-info {
    display: grid;
    gap: 9px;
    padding: 16px;
}

.casara-category-posts .posts-list .post-cat {
    order: 1;
    width: fit-content;
    max-width: 100%;
    border-radius: 999px;
    background: #f7eee4;
    color: #ad7038;
    font-size: .8rem;
    font-weight: 800;
    line-height: 1.2;
    padding: 4px 8px;
}

.casara-category-posts .posts-list .post-cat svg,
.casara-category-posts .posts-list .post-date svg {
    display: none;
}

.casara-category-posts .posts-list .post-title {
    display: -webkit-box;
    order: 2;
    overflow: hidden;
    color: #2f261f;
    font-size: 1.0625rem;
    font-weight: 800;
    line-height: 1.35;
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.casara-category-posts .posts-list .post-excerpt {
    display: -webkit-box;
    order: 3;
    overflow: hidden;
    color: #756a60;
    font-size: .8125rem;
    line-height: 1.6;
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.casara-category-posts .posts-list .post-date {
    order: 4;
    color: #968a80;
    font-size: .8rem;
    line-height: 1.2;
}

.casara-category-posts .block-collection > .foot {
    display: flex;
    justify-content: center;
    border-top: 1px solid #eee6de;
    padding: 18px 22px 22px;
}

.casara-category-posts .viewmore {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 170px;
    min-height: 42px;
    border-radius: 6px;
    background: #392612;
    color: #fff;
    font-size: .875rem;
    font-weight: 800;
    text-decoration: none;
}

.casara-store-products .posts-list .item {
    grid-template-rows: auto auto;
}

.casara-store-products .posts-list .post-info {
    align-content: start;
    min-height: 0;
}

.tax-portfolio_cat .slides-list {
    background: #f7f4ef;
}

.tax-portfolio_cat .slides-list > .wrapper {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.tax-portfolio_cat .slides-list .block-banner {
    overflow: hidden;
    border: 1px solid #eadfce;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(58, 37, 20, .07);
}

.tax-portfolio_cat .slides-list .block-banner > .head {
    min-height: 118px;
    padding: 16px 18px 10px;
}

.tax-portfolio_cat .slides-list .block-banner > .head .title {
    margin: 0 0 8px;
    color: #392612;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.35;
}

.tax-portfolio_cat .slides-list .block-banner > .head .description,
.tax-portfolio_cat .slides-list .block-banner > .head .description ul {
    margin: 0;
    padding: 0;
    color: #67584c;
    font-size: .9rem;
    line-height: 1.45;
    list-style: none;
}

.tax-portfolio_cat .slides-list .block-banner > .content {
    aspect-ratio: 600 / 410;
    background: #eee6dc;
}

.tax-portfolio_cat .slides-list .banners,
.tax-portfolio_cat .slides-list .item,
.tax-portfolio_cat .slides-list .item a {
    height: 100%;
}

.tax-portfolio_cat .slides-list .item img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 0 !important;
    object-fit: cover;
}

.tax-portfolio_cat .slides-list .swiper-pagination {
    position: absolute;
    bottom: 8px;
}

.tax-portfolio_cat .slides-list .swiper-pagination-bullet {
    width: 7px;
    height: 7px;
    background: rgba(255, 255, 255, .9);
    opacity: .75;
}

.tax-portfolio_cat .slides-list .swiper-pagination-bullet-active {
    background: #c65911;
    opacity: 1;
}

.tax-portfolio_cat .procedure {
    background: #f7f4ef;
}

.tax-portfolio_cat .procedure .block-banner {
    max-width: 1180px;
    margin-inline: auto;
}

.tax-portfolio_cat .procedure .banners {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    transform: none !important;
}

.tax-portfolio_cat .procedure .item {
    width: auto !important;
    overflow: hidden;
    border: 1px solid #eadfce;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(58, 37, 20, .06);
}

.tax-portfolio_cat .procedure .item img {
    display: block;
    width: 100%;
    height: 150px;
    border-radius: 0 !important;
    object-fit: cover;
}

.tax-portfolio_cat .procedure .banner-caption {
    color: #5b5048;
    font-size: .9rem;
    line-height: 1.45;
    padding: 12px 14px 14px;
}

.tax-portfolio_cat .procedure .banner-caption p {
    margin: 0;
}

.tax-portfolio_cat .procedure .banner-caption strong {
    display: block;
    margin-bottom: 4px;
    color: #392612;
    font-size: .98rem;
}

@media (max-width: 992px) {
    .casara-category-posts .posts-list {
        grid-template-columns: 1fr;
    }

    .casara-category-posts .posts-list .item {
        grid-template-rows: auto 1fr;
        min-height: 406px;
    }

    .casara-category-posts .posts-list .post-info {
        align-content: start;
        min-height: 174px;
    }

    .casara-store-products .posts-list .item {
        grid-template-rows: auto auto;
        min-height: 0;
    }

    .casara-store-products .posts-list .post-info {
        min-height: 0;
    }

    .tax-portfolio_cat .slides-list > .wrapper,
    .tax-portfolio_cat .procedure .banners {
        grid-template-columns: 1fr;
    }

    .tax-portfolio_cat .slides-list .block-banner > .head {
        min-height: 0;
    }

    .tax-portfolio_cat .procedure .item img {
        height: 180px;
    }
}

@media (max-width: 992px) {
    .casara-category-hero {
        padding: var(--casara-section-y-mobile) 0;
    }

    .casara-category-hero-inner {
        padding: var(--casara-section-y-mobile) 20px;
    }

    .casara-category-hero-shell {
        min-height: 0;
    }

    .casara-category-hero-media {
        display: none;
    }

    .casara-single-post-hero {
        padding: var(--casara-section-y-mobile) 0;
    }

    .casara-single-post-hero-shell {
        min-height: 0;
    }

    .casara-single-post-hero-inner {
        padding: 28px 20px 24px;
    }

    .casara-single-post-hero-media {
        display: none;
    }

    .casara-single-post-title {
        font-size: 1.8rem;
    }

    .casara-category-title {
        font-size: 1.8rem;
    }

    .casara-category-menu {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .casara-category-menu a {
        white-space: nowrap;
    }

    #section-category-news-hero {
        padding-bottom: var(--casara-section-y-mobile);
    }

    #section-category-news-hero > .wrapper {
        padding-inline: 7px;
    }

    #section-category-news-hero .casara-category-hero-shell {
        min-height: 0;
        height: 238px;
        background: var(--category-hero-image) center / cover no-repeat;
    }

    #section-category-news-hero .block-html {
        min-height: 238px;
    }

    #section-category-news-hero .block-html::before {
        background: linear-gradient(180deg, rgba(57, 38, 18, .92), rgba(57, 38, 18, .72));
    }

    #section-category-news-hero .block-html > .head {
        min-height: 238px;
        padding: 1.35rem;
    }

    #section-category-news-hero .block-html > .head .title {
        font-size: 1.8rem;
    }

    #section-category-news-hero .block-html > .head .description {
        font-size: .9375rem;
        -webkit-line-clamp: 4;
    }

    #section-category-news-hero .casara-category-hero-inner {
        min-height: 0;
        padding: 1.35rem;
    }

    #section-category-news-hero .casara-category-description {
        -webkit-line-clamp: 5;
    }

    #section-category-news-hero .casara-category-menu-nav {
        padding-top: 1.35rem;
    }

    #section-category-news-hero .casara-category-menu {
        justify-content: flex-start;
        gap: .45rem;
        scrollbar-width: none;
    }

    #section-category-news-hero .casara-category-menu::-webkit-scrollbar {
        display: none;
    }

    #section-category-news-hero .casara-category-menu a {
        white-space: nowrap;
    }

    #section-portfolio-category-hero,
    #section-product-category-hero,
    #section-store-hero,
    #section-price-page-hero {
        padding-bottom: var(--casara-section-y-mobile);
    }

    #section-portfolio-category-hero > .wrapper,
    #section-product-category-hero > .wrapper,
    #section-store-hero > .wrapper,
    #section-price-page-hero > .wrapper {
        padding-inline: 7px;
    }

    #section-portfolio-category-hero .casara-category-hero-shell,
    #section-product-category-hero .casara-category-hero-shell,
    #section-store-hero .casara-category-hero-shell,
    #section-price-page-hero .casara-category-hero-shell {
        min-height: 0;
        height: 238px;
        background: #2f2117;
    }

    #section-portfolio-category-hero .block-html,
    #section-product-category-hero .block-html,
    #section-store-hero .block-html,
    #section-price-page-hero .block-html {
        min-height: 238px;
    }

    #section-portfolio-category-hero .block-html::before,
    #section-product-category-hero .block-html::before,
    #section-store-hero .block-html::before,
    #section-price-page-hero .block-html::before {
        background: linear-gradient(180deg, rgba(57, 38, 18, .92), rgba(57, 38, 18, .72));
    }

    #section-portfolio-category-hero .block-html > .head,
    #section-product-category-hero .block-html > .head,
    #section-store-hero .block-html > .head,
    #section-price-page-hero .block-html > .head {
        min-height: 238px;
        padding: 1.35rem;
    }

    #section-portfolio-category-hero .block-html > .head .title,
    #section-product-category-hero .block-html > .head .title,
    #section-store-hero .block-html > .head .title,
    #section-price-page-hero .block-html > .head .title {
        font-size: 1.8rem;
    }

    #section-portfolio-category-hero .block-html > .head .description,
    #section-product-category-hero .block-html > .head .description,
    #section-store-hero .block-html > .head .description,
    #section-price-page-hero .block-html > .head .description {
        font-size: .9375rem;
        -webkit-line-clamp: 4;
    }

    .casara-category-posts .block-collection > .content {
        padding: 16px;
    }

    .casara-category-posts .posts-list .post-image img {
        height: auto;
    }
}
