.category-list-page {
    --category-forest: #14302e;
    --category-forest-soft: #234945;
    --category-gold: #d8b354;
    --category-paper: #fffdf9;
    --category-cream: #f5f1e9;
    --category-ink: #18312f;
    --category-muted: #687572;
    overflow: hidden;
    background: var(--category-cream);
}

.category-list-page .category-hero {
    position: relative;
    min-height: clamp(520px, 72vh, 720px);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    margin: 0;
    background-color: var(--category-forest);
    background-position: center;
    background-size: cover;
    isolation: isolate;
}

.category-list-page .category-hero::before,
.category-list-page .category-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.category-list-page .category-hero::before {
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(7, 27, 25, 0.91) 0%, rgba(7, 27, 25, 0.65) 48%, rgba(7, 27, 25, 0.16) 78%),
        linear-gradient(0deg, rgba(7, 25, 23, 0.77) 0%, transparent 58%);
}

.category-list-page .category-hero::after {
    z-index: -1;
    background:
        radial-gradient(circle at 82% 16%, rgba(216, 179, 84, 0.17), transparent 26rem),
        linear-gradient(180deg, transparent 82%, var(--category-cream) 100%);
}

.category-hero-inner {
    width: 100%;
    padding-top: 7.5rem;
    padding-bottom: clamp(5rem, 9vw, 7.5rem);
}

.category-back-link {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: clamp(2.8rem, 7vw, 5rem);
    padding: 0.68rem 1.05rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    backdrop-filter: blur(10px);
    font-size: 0.88rem;
    font-weight: 500;
}

.category-back-link:hover {
    color: var(--category-forest);
    background: #fff;
    transform: translateX(-3px);
}

.category-hero-content {
    max-width: 880px;
    color: #fff;
}

.category-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: #92701f;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.category-eyebrow::before {
    content: "";
    width: 2rem;
    height: 1px;
    background: currentColor;
}

.category-hero .category-eyebrow {
    color: #efd586;
}

.category-hero-title {
    max-width: 820px;
    margin: 0.8rem 0 1rem;
    color: #fff;
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.04em;
    text-wrap: balance;
    text-shadow: 0 14px 35px rgba(0, 0, 0, 0.28);
}

.category-hero-subtitle {
    max-width: 700px;
    margin: 0 0 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--font-heading);
    font-size: clamp(1.15rem, 2.2vw, 1.55rem);
    line-height: 1.5;
}

.category-hero-description {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.96rem;
    line-height: 1.8;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.category-hero-meta {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 1.5rem;
    padding: 0.58rem 0.85rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    backdrop-filter: blur(9px);
    font-size: 0.8rem;
}

.category-hero-meta i {
    color: #efd586;
}

.category-services-section {
    position: relative;
    z-index: 2;
    margin-top: clamp(-3.5rem, -5vw, -2.25rem);
    padding: 0 0 clamp(5rem, 9vw, 8rem);
}

.category-services-surface {
    padding: clamp(1.3rem, 3vw, 2.2rem);
    background: rgba(255, 253, 249, 0.97);
    border: 1px solid rgba(20, 48, 46, 0.08);
    border-radius: 1.8rem;
    box-shadow: 0 22px 65px rgba(26, 50, 46, 0.1);
}

.category-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: clamp(1.8rem, 4vw, 3rem);
    padding: 0.3rem 0.3rem 1.4rem;
    border-bottom: 1px solid rgba(20, 48, 46, 0.09);
}

.category-section-header h2 {
    margin: 0.35rem 0 0;
    color: var(--category-ink);
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.category-section-copy {
    max-width: 420px;
    margin: 0;
    color: var(--category-muted);
    font-size: 0.92rem;
    line-height: 1.7;
    text-align: right;
}

.category-list-page .services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1rem, 2.5vw, 1.5rem);
    margin: 0;
}

.category-list-page .service-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border: 1px solid rgba(20, 48, 46, 0.08);
    border-radius: 1.35rem;
    box-shadow: 0 12px 35px rgba(28, 52, 48, 0.07);
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.2, 0.75, 0.25, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.category-list-page .service-card:hover,
.category-list-page .service-card:focus-visible {
    transform: translateY(-7px);
    border-color: rgba(216, 179, 84, 0.42);
    box-shadow: 0 22px 50px rgba(25, 49, 45, 0.13);
    outline: none;
}

.category-list-page .service-image {
    position: relative;
    height: clamp(230px, 24vw, 305px);
    overflow: hidden;
    background: #e2e5de;
}

.category-list-page .service-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 48%, rgba(8, 28, 26, 0.52) 100%);
    pointer-events: none;
}

.category-list-page .service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.2, 0.75, 0.25, 1);
}

.category-list-page .service-card:hover .service-image img {
    transform: scale(1.055);
}

.service-card-mark {
    position: absolute;
    z-index: 2;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    display: grid;
    place-items: center;
    color: var(--category-forest);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 50%;
    backdrop-filter: blur(8px);
    font-size: 0.82rem;
}

.category-list-page .service-overlay {
    position: absolute;
    z-index: 3;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 1rem;
    opacity: 0;
    background: transparent;
    transition: opacity 0.3s ease;
}

.category-list-page .service-card:hover .service-overlay {
    opacity: 1;
}

.category-list-page .btn-view-detail {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.62rem 0.85rem;
    color: var(--category-forest);
    background: rgba(255, 255, 255, 0.92);
    border: 0;
    border-radius: 999px;
    backdrop-filter: blur(8px);
    font-size: 0.78rem;
    font-weight: 600;
    transform: translateY(8px);
    transition: transform 0.3s ease, background 0.3s ease;
}

.category-list-page .service-card:hover .btn-view-detail {
    transform: translateY(0);
}

.category-list-page .btn-view-detail:hover {
    color: var(--category-forest);
    background: #fff;
}

.category-list-page .service-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.35rem 1.35rem 0.8rem;
}

.category-list-page .service-title {
    margin: 0 0 0.65rem;
    color: var(--category-ink);
    font-size: clamp(1.35rem, 2.3vw, 1.7rem);
    font-weight: 500;
    line-height: 1.25;
}

.category-list-page .service-description {
    margin: 0 0 1rem;
    color: var(--category-muted);
    font-size: 0.88rem;
    line-height: 1.7;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.category-list-page .service-pricing {
    display: grid;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(20, 48, 46, 0.08);
}

.category-list-page .price-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin: 0;
}

.category-list-page .price-label {
    color: #7a8583;
    font-size: 0.76rem;
}

.category-list-page .price-value {
    color: var(--category-forest);
    font-family: var(--font-heading);
    font-size: 1.02rem;
    font-weight: 600;
    white-space: nowrap;
}

.category-list-page .price-updating {
    justify-content: flex-start;
}

.category-list-page .price-updating .price-value {
    color: var(--category-muted);
    font-family: var(--font-primary);
    font-size: 0.82rem;
}

.category-list-page .service-footer {
    padding: 0.4rem 1.35rem 1.35rem;
}

.category-list-page .btn-service-detail {
    width: 100%;
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    padding: 0.78rem 1rem;
    color: #fff;
    background: var(--category-forest);
    border: 1px solid var(--category-forest);
    border-radius: 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.category-list-page .btn-service-detail i {
    width: 1.65rem;
    height: 1.65rem;
    display: grid;
    place-items: center;
    color: var(--category-forest);
    background: #efd586;
    border-radius: 50%;
    font-size: 0.65rem;
}

.category-list-page .btn-service-detail:hover {
    color: #fff;
    background: var(--category-forest-soft);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(20, 48, 46, 0.16);
}

.category-list-page .load-more-wrap {
    margin-top: 2.5rem;
    text-align: center;
}

.category-list-page .load-more-btn {
    min-height: 3.15rem;
    padding: 0.8rem 1.45rem;
    color: #fff;
    background: var(--category-forest);
    border: 1px solid var(--category-forest);
    border-radius: 999px;
    box-shadow: 0 12px 28px rgba(20, 48, 46, 0.15);
    font-size: 0.86rem;
    font-weight: 600;
}

.category-list-page .load-more-btn:hover {
    background: var(--category-forest-soft);
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(20, 48, 46, 0.2);
}

.category-empty-state {
    grid-column: 1 / -1;
    padding: clamp(3rem, 7vw, 5rem) 1rem;
    text-align: center;
}

.category-empty-icon {
    width: 4rem;
    height: 4rem;
    display: grid;
    place-items: center;
    margin: 0 auto 1rem;
    color: #92701f;
    background: rgba(216, 179, 84, 0.14);
    border-radius: 50%;
    font-size: 1.35rem;
}

.category-empty-state h3 {
    margin-bottom: 0.5rem;
    color: var(--category-ink);
    font-size: 1.7rem;
    font-weight: 500;
}

.category-empty-state p {
    max-width: 470px;
    margin: 0 auto;
    color: var(--category-muted);
}

@media (max-width: 1199.98px) {
    .category-list-page .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .category-list-page .category-hero {
        min-height: 600px;
    }

    .category-list-page .category-hero::before {
        background:
            linear-gradient(0deg, rgba(7, 27, 25, 0.94) 0%, rgba(7, 27, 25, 0.48) 76%),
            linear-gradient(90deg, rgba(7, 27, 25, 0.28), transparent);
    }

    .category-hero-inner {
        padding-top: 6.5rem;
        padding-bottom: 5.5rem;
    }

    .category-back-link {
        margin-bottom: 3.2rem;
    }

    .category-hero-description {
        -webkit-line-clamp: 4;
    }

    .category-services-section {
        margin-top: -2.2rem;
    }

    .category-services-surface {
        border-radius: 1.35rem;
    }

    .category-section-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.8rem;
    }

    .category-section-copy {
        text-align: left;
    }

    .category-list-page .services-grid {
        grid-template-columns: 1fr;
    }

    .category-list-page .service-image {
        height: min(70vw, 380px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .category-list-page *,
    .category-list-page *::before,
    .category-list-page *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
