.xd-category-container {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto
}

.xd-category-banner {
    color: #fff;
    overflow: hidden;
    position: relative;
    background-image: url(/Design/img/XayDungTT/figma-home/linh-vuc-hoat-dong.png);
    background-size: cover;
    background-position: center;
}

.xd-category-banner:after {
    background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, .08));
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute
}

.xd-category-banner__inner {
    padding: 143px 0 37px;
    position: relative;
    z-index: 1
}

.xd-category-banner__eyebrow,
.xd-category-heading__script {
    font-family: 'NVN-Motherland-Signature-1', cursive;
    font-size: clamp(19px, 1.4vw, 43px);
    font-weight: 400;
    line-height: 1;
    margin: 0 0 16px
}

.xd-category-banner h1 {
    font-family: 'BlackerSansText-Bold', Georgia, serif;
    font-size: clamp(32px, 2.5vw, 58px);
    letter-spacing: .02em;
    line-height: 1.08;
    margin: 0 0 18px
}

.xd-category-banner p:last-child {
    font-family: 'Montserrat-Regular', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
    max-width: 720px;
    opacity: .9
}

.xd-category-list {
    background: #f7f8fa;
    padding: 61px 0 50px;
}

.xd-category-heading {
    margin: 0 auto 48px;
    max-width: 760px;
    text-align: center;
    background: transparent;
}

.xd-category-heading__script {
    color: #810d09;
    margin-bottom: 14px
}

.xd-category-heading h2 {
    color: #810d09;
    font-family: 'BlackerSansText-Bold', Georgia, serif;
    font-size: clamp(28px, 3.5vw, 41px);
    line-height: 1.15;
    margin: 0 0 16px
}

.xd-category-heading>p:last-child {
    color: #596066;
    font-family: 'Montserrat-Regular', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    margin: 0
}

.xd-category-grid {
    display: grid;
    gap: 28px;
    grid-template-columns: repeat(3, minmax(0, 1fr))
}

.xd-design-card {
    background: #fff;
    border: 1px solid rgba(129, 13, 9, .1);
    border-radius: 16px;
    box-shadow: 0 14px 35px rgba(34, 20, 18, .08);
    display: flex;
    flex-direction: column;
    opacity: 1;
    overflow: hidden;
    transform: none;
    animation: xd-card-in .7s cubic-bezier(.2, .7, .2, 1) backwards;
    animation-delay: calc(var(--xd-card-index) * 80ms);
    transition: box-shadow .35s ease, transform .35s ease
}

.xd-design-card:hover {
    box-shadow: 0 24px 48px rgba(70, 20, 15, .18);
    transform: translateY(-8px)
}

.xd-design-card__media {
    aspect-ratio: 1.35;
    display: block;
    overflow: hidden;
    position: relative
}

.xd-design-card__media img {
    height: 100%;
    object-fit: cover;
    transition: transform .7s cubic-bezier(.2, .7, .2, 1);
    width: 100%
}

.xd-design-card:hover .xd-design-card__media img {
    transform: scale(1.07)
}

.xd-design-card__shade {
    background: linear-gradient(180deg, transparent 50%, rgba(35, 8, 5, .58));
    inset: 0;
    position: absolute
}

.xd-design-card__number {
    align-items: center;
    background: #fff;
    border-radius: 999px;
    color: #810d09;
    display: flex;
    font-family: 'Montserrat-SemiBold', Arial, sans-serif;
    font-size: 12px;
    height: 40px;
    justify-content: center;
    left: 18px;
    position: absolute;
    top: 18px;
    width: 40px
}

.xd-design-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px 24px 26px;
    background-color: #fff;
    transition: background-color .35s ease
}

.xd-design-card h3 {
    font-family: 'BlackerSansText-Bold', Georgia, serif;
    font-size: 24px;
    line-height: 1.18;
    margin: 0 0 10px
}

.xd-design-card h3 a {
    color: #2c2928;
    text-decoration: none;
    transition: color .35s ease
}

.xd-design-card h3 a:hover {
    color: #810d09
}

.xd-design-card__body p {
    color: #646464;
    font-family: 'Montserrat-Medium';
    font-size: 14px;
    line-height: 1.65;
    margin: 0 0 22px;
    text-align: justify;
    transition: color .35s ease
}

.xd-design-card__action {
    align-items: center;
    border: 1px solid #810d09;
    border-radius: 999px;
    color: #810d09;
    display: inline-flex;
    font-family: 'Montserrat-SemiBold', Arial, sans-serif;
    font-size: 16px;
    gap: 10px;
    margin-top: auto;
    padding: 8px 16px;
    text-decoration: none;
    transition: background .25s ease, color .25s ease, transform .25s ease;
    width: max-content
}

.xd-design-card__action span {
    font-size: 24px;
    line-height: 20px;
    position: relative;
    top: -1px;
}

.xd-design-card__action:hover {
    background: #810d09;
    color: #fff;
    transform: translateX(3px)
}

.xd-category-empty {
    background: #fff;
    border-radius: 16px;
    color: #676767;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 48px;
    text-align: center
}

.xd-category-empty strong {
    color: #810d09;
    font-family: 'BlackerSansText-Bold', Georgia, serif;
    font-size: 22px
}

.xd-category-empty span {
    font-family: 'Montserrat-Regular', Arial, sans-serif;
    font-size: 14px
}

@keyframes xd-card-in {
    from {
        opacity: 0;
        transform: translateY(24px)
    }
}

@media(max-width: 900px) {
    .xd-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
    .xd-category-banner__inner {
        padding: 60px 0 54px
    }
    .xd-category-list {
        padding: 66px 0 80px
    }
}

@media(max-width: 560px) {
    .xd-category-container {
        width: min(100% - 30px, 420px)
    }
    .xd-category-grid {
        gap: 18px;
        grid-template-columns: 1fr
    }
    .xd-category-banner__inner {
        padding: 48px 0
    }
    .xd-category-banner p:last-child {
        font-size: 14px
    }
    .xd-category-list {
        padding: 54px 0 70px
    }
    .xd-category-heading {
        margin-bottom: 32px
    }
    .xd-design-card h3 {
        font-size: 22px
    }
    .xd-design-card__body {
        padding: 20px
    }
    .xd-design-card:hover {
        transform: none
    }
}

@media (hover: none) and (pointer: coarse) {
    .xd-design-card:hover {
        box-shadow: 0 14px 35px rgba(34, 20, 18, .08);
        transform: none
    }

    .xd-design-card:hover .xd-design-card__media img {
        transform: none
    }

    .xd-design-card h3 a:hover {
        color: #2c2928
    }

    .xd-design-card__action:hover {
        background: transparent;
        color: #810d09;
        transform: none
    }

    .xd-design-card.is-touch-hover {
        box-shadow: 0 22px 44px rgba(89, 12, 8, .23);
        transform: translateY(-6px) scale(.985)
    }

    .xd-design-card.is-touch-hover .xd-design-card__media img {
        transform: scale(1.06)
    }

    .xd-design-card.is-touch-hover .xd-design-card__body {
        background-color: #810d09
    }

    .xd-design-card.is-touch-hover h3 a {
        color: #fff
    }

    .xd-design-card.is-touch-hover .xd-design-card__body p {
        color: rgba(255, 255, 255, .86)
    }

    .xd-design-card.is-touch-hover .xd-design-card__action {
        background: #fff;
        border-color: #fff;
        color: #810d09;
        transform: translateX(3px)
    }
}

@media(prefers-reduced-motion:reduce) {
    .xd-design-card,
    .xd-design-card:hover,
    .xd-design-card__media img,
    .xd-design-card__action {
        animation: none;
        transform: none;
        transition: none
    }
    .xd-design-card {
        opacity: 1
    }

    .xd-design-card__body,
    .xd-design-card h3 a,
    .xd-design-card__body p {
        transition: none
    }

    .xd-design-card.is-touch-hover,
    .xd-design-card.is-touch-hover .xd-design-card__media img,
    .xd-design-card.is-touch-hover .xd-design-card__action {
        transform: none;
        transition: none
    }
}
