.nv-home {
    --nv-ink: #272421;
    --nv-muted: #746d66;
    --nv-line: #d8d0c8;
    --nv-warm: #f4f0ec;
    --nv-dark: #554f48;
    color: var(--nv-ink);
    font-family: Manrope, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
    overflow-x: hidden;
}

.nv-home *,
.nv-home *::before,
.nv-home *::after {
    box-sizing: border-box;
}

.nv-home a:hover {
    opacity: 1;
}

.nv-home a:focus-visible,
.nv-home button:focus-visible {
    outline: 3px solid var(--ghost-accent-color, #8b8177);
    outline-offset: 4px;
}

.nv-section-inner {
    padding-bottom: 10rem;
    padding-top: 10rem;
}

.nv-section-heading {
    margin-bottom: 5rem;
    max-width: 760px;
}

.nv-eyebrow {
    color: #8b8177;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: .22em;
    margin: 0 0 1.4rem;
}

.nv-section-heading h2,
.nv-consulting h2,
.nv-support h2 {
    color: var(--nv-ink);
    font-family: inherit;
    font-size: clamp(3.4rem, 4.2vw, 5.8rem);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.16;
    margin: 0;
}

.nv-section-heading > p:last-child,
.nv-journal-heading > div > p:last-child,
.nv-consulting-inner h2 + p,
.nv-support-inner h2 + p {
    color: var(--nv-muted);
    font-size: 1.7rem;
    line-height: 1.8;
    margin: 1.8rem 0 0;
}

.nv-consulting-inner h2 + p {
    margin-top: 2.4rem;
}

.nv-service-grid {
    display: grid;
    gap: 2.4rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-left: auto;
    margin-right: auto;
    max-width: 1100px;
    width: 100%;
}

.nv-service-card {
    align-items: flex-end;
    aspect-ratio: 4 / 5;
    background-position: center;
    background-size: cover;
    border-radius: 2.4rem;
    color: #fff;
    display: flex;
    isolation: isolate;
    overflow: hidden;
    padding: 3.2rem;
    position: relative;
    text-decoration: none;
    transform: translateZ(0);
    transition: box-shadow .3s ease, transform .3s ease;
}

.nv-service-card::before {
    background: linear-gradient(180deg, rgba(18, 17, 16, .05) 15%, rgba(18, 17, 16, .35) 48%, rgba(18, 17, 16, .94) 100%);
    content: "";
    inset: 0;
    position: absolute;
    transition: background .3s ease;
    z-index: -1;
}

.nv-service-card:hover::before {
    background: linear-gradient(180deg, rgba(18, 17, 16, .12) 10%, rgba(18, 17, 16, .43) 45%, rgba(18, 17, 16, .96) 100%);
}

.nv-service-card:hover {
    box-shadow: 0 22px 48px rgba(32, 28, 25, .2);
    transform: scale(1.025);
    z-index: 2;
}

.nv-service-card:hover .nv-text-link span {
    transform: translateX(.5rem);
}

.nv-service-host { background-image: url(../images/home-host.webp); background-position: 58% center; }
.nv-service-training { background-image: url(../images/home-training.webp); background-position: 65% center; }
.nv-service-courses { background-image: url(../images/home-courses.webp); background-position: 57% center; }

.nv-service-content {
    width: 100%;
}

.nv-service-subtitle-empty {
    display: none;
}

.nv-service-card h3 {
    color: inherit;
    font-family: inherit;
    font-size: clamp(2.7rem, 2.8vw, 4.2rem);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.18;
    margin: 0;
}

.nv-service-card h3 > span {
    display: block;
}

.nv-service-subtitle {
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.5;
    margin: 1rem 0 0;
}

.nv-service-description {
    color: rgba(255,255,255,.88);
    font-size: 1.45rem;
    line-height: 1.72;
    margin: 1.4rem 0 0;
}

.nv-text-link {
    align-items: center;
    border-top: 1px solid rgba(255,255,255,.38);
    display: flex;
    font-size: 1.45rem;
    font-weight: 700;
    justify-content: space-between;
    margin-top: 2.4rem;
    padding-top: 1.8rem;
}

.nv-text-link span {
    font-size: 2.2rem;
    transition: transform .25s ease;
}

@media (min-width: 768px) {
    .nv-service-card {
        align-items: stretch;
    }

    .nv-service-content {
        display: flex;
        flex-direction: column;
        padding-top: 44%;
    }

    .nv-service-subtitle {
        min-height: 1.5em;
    }

    .nv-service-subtitle-empty {
        display: block;
        visibility: hidden;
    }

    .nv-text-link {
        margin-top: auto;
    }
}

.nv-consulting {
    background: var(--nv-warm);
}

.nv-consulting-inner,
.nv-support-inner {
    padding-bottom: 7rem;
    padding-top: 7rem;
}

.nv-consulting-inner > div,
.nv-support-inner > div {
    max-width: 780px;
}

.nv-consulting-inner > div {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.nv-consulting h2,
.nv-support h2 {
    font-size: clamp(2.8rem, 3.3vw, 4.6rem);
}

.nv-outline-button,
.nv-support-button {
    align-items: center;
    border: 1px solid #81786f;
    border-radius: 999px;
    color: var(--nv-ink);
    display: inline-flex;
    font-size: 1.5rem;
    font-weight: 700;
    gap: 1.5rem;
    justify-content: center;
    padding: 1.6rem 2.4rem;
    text-decoration: none;
    transition: background .2s ease, color .2s ease, transform .2s ease;
    white-space: nowrap;
}

.nv-consulting-inner .nv-outline-button,
.nv-support-inner .nv-support-button {
    margin-top: 2.6rem;
}

.nv-outline-button:hover {
    background: var(--nv-dark);
    border-color: var(--nv-dark);
    color: #fff;
    transform: translateY(-2px);
}

.nv-journal-heading {
    align-items: end;
    display: flex;
    justify-content: space-between;
    max-width: none;
}

.nv-journal-heading > div {
    max-width: 760px;
}

.nv-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-bottom: 4.5rem;
}

.nv-filter {
    appearance: none;
    background: transparent;
    border: 1px solid #91877e;
    border-radius: 999px;
    color: #554f49;
    cursor: pointer;
    font-family: inherit;
    font-size: 1.45rem;
    font-weight: 600;
    line-height: 1;
    padding: 1.25rem 1.9rem;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.nv-filter:hover,
.nv-filter.is-active {
    background: var(--nv-dark);
    border-color: var(--nv-dark);
    color: #fff;
}

.nv-post-grid {
    display: grid;
    gap: 2.8rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nv-post-card {
    background: #fff;
    border: 1px solid #e5dfd9;
    border-radius: 1.8rem;
    display: none;
    min-width: 0;
    overflow: hidden;
}

.nv-post-card.is-visible {
    display: flex;
    flex-direction: column;
}

.nv-post-image-link {
    background: var(--nv-warm);
    display: block;
    overflow: hidden;
    position: relative;
}

.nv-post-image,
.nv-post-placeholder {
    aspect-ratio: 16 / 10;
    display: block;
    object-fit: cover;
    transition: transform .35s ease;
    width: 100%;
}

.nv-post-placeholder {
    align-items: center;
    color: #8b8177;
    display: flex;
    font-size: 1.3rem;
    justify-content: center;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.nv-post-card:hover .nv-post-image {
    transform: scale(1.025);
}

.nv-post-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 2.4rem;
}

.nv-post-content h3 {
    font-family: inherit;
    font-size: clamp(2rem, 1.8vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.45;
    margin: 0 0 3rem;
}

.nv-post-content h3 a {
    color: var(--nv-ink);
    text-decoration: none;
}

.nv-post-meta {
    align-items: center;
    color: #8a837c;
    display: flex;
    font-size: 1.3rem;
    gap: 1.2rem;
    justify-content: space-between;
    margin-top: auto;
}

.nv-post-meta a {
    color: #5f5851;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.nv-no-posts {
    color: var(--nv-muted);
    font-size: 1.6rem;
    padding: 3rem 0;
}

.nv-pagination {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 5rem;
}

.nv-pagination[hidden] {
    display: none;
}

.nv-page-button {
    align-items: center;
    appearance: none;
    background: transparent;
    border: 1px solid #aaa198;
    border-radius: 50%;
    color: #655e57;
    cursor: pointer;
    display: inline-flex;
    font-family: inherit;
    font-size: 1.5rem;
    font-weight: 700;
    height: 4.6rem;
    justify-content: center;
    padding: 0;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
    width: 4.6rem;
}

.nv-page-button:hover,
.nv-page-button.is-active {
    background: var(--nv-dark);
    border-color: var(--nv-dark);
    color: #fff;
}

.nv-page-button:disabled {
    cursor: default;
    opacity: .35;
}

.nv-page-ellipsis {
    color: #7e766f;
    font-size: 1.8rem;
    padding: 0 .2rem;
}

.nv-support {
    background: var(--nv-dark);
    color: #fff;
}

.nv-support .nv-eyebrow,
.nv-support h2,
.nv-support-inner > div > p:last-child {
    color: #fff;
}

.nv-support-inner > div > p:last-child {
    color: rgba(255,255,255,.78);
}

.nv-support-button {
    background: #fff;
    border-color: #fff;
    color: var(--nv-dark);
}

.nv-support-button:hover {
    background: transparent;
    color: #fff;
    transform: translateY(-2px);
}

@media (max-width: 1100px) {
    .nv-service-grid,
    .nv-post-grid {
        gap: 1.8rem;
    }

    .nv-service-card {
        padding: 2.4rem;
    }

    .nv-service-description {
        font-size: 1.35rem;
    }
}

@media (max-width: 767px) {
    .nv-section-inner {
        padding-bottom: 7rem;
        padding-top: 7rem;
    }

    .nv-section-heading {
        margin-bottom: 3.5rem;
    }

    .nv-section-heading h2,
    .nv-consulting h2,
    .nv-support h2 {
        font-size: 3.2rem;
    }

    .nv-section-heading > p:last-child,
    .nv-journal-heading > div > p:last-child,
    .nv-consulting-inner h2 + p,
    .nv-support-inner h2 + p {
        font-size: 1.55rem;
        line-height: 1.75;
    }

    .nv-service-grid,
    .nv-post-grid {
        grid-template-columns: 1fr;
    }

    .nv-service-grid {
        gap: 2rem;
    }

    .nv-service-card {
        aspect-ratio: 4 / 5;
        min-height: 460px;
        max-width: 100%;
        padding: 2.8rem;
        transform: none;
        width: 100%;
    }

    .nv-service-card:hover {
        box-shadow: none;
        transform: none;
    }

    .nv-service-card h3 {
        font-size: 3.2rem;
    }

    .nv-service-description {
        font-size: 1.45rem;
    }

    .nv-consulting-inner,
    .nv-support-inner {
        padding-bottom: 5.5rem;
        padding-top: 5.5rem;
    }

    .nv-outline-button,
    .nv-support-button {
        width: 100%;
    }

    .nv-consulting .nv-outline-button {
        width: auto;
    }

    .nv-journal-heading {
        display: block;
    }

    .nv-filters {
        flex-wrap: wrap;
        margin-left: 0;
        margin-right: 0;
        overflow: visible;
        padding: 0;
    }

    .nv-filter {
        font-size: 1.4rem;
        flex: 0 0 auto;
        padding: 1.15rem 1.55rem;
    }

    .nv-post-grid {
        gap: 2.2rem;
    }

    .nv-post-content h3 {
        font-size: 2.2rem;
    }

    .nv-pagination {
        gap: .8rem;
        margin-top: 4rem;
    }

    .nv-page-button {
        height: 4.2rem;
        width: 4.2rem;
    }

}

@media (prefers-reduced-motion: reduce) {
    .nv-home *,
    .nv-home *::before,
    .nv-home *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
