/* Homepage experience and contact bands share one continuous composition. */
/* Homepage Videos Section */
.home-videos {
    background: var(--nh-paper);
    padding-block: clamp(24px, 2.8vw, 36px);
    overflow: hidden;
}
.home-videos .nh-container {
    width: min(100% - (var(--gutter) * 2), 1298px);
    margin-inline: auto;
}
.home-videos__head {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}
.home-videos__title-text {
    font-family: var(--font-legacy-serif, "Cinzel", "Playfair Display", Georgia, serif);
    font-size: clamp(22px, 2.5vw, 30px);
    font-weight: 600;
    color: var(--nh-ink, #1f1d1a);
    line-height: 1.2;
    margin: 0;
    letter-spacing: -0.01em;
}
.home-videos__nav {
    display: flex;
    align-items: center;
    gap: 8px;
}
.home-videos__nav-btn {
    align-items: center;
    background: transparent;
    border: 1px solid rgba(195, 140, 41, 0.45);
    border-radius: 50%;
    color: var(--nh-ink, #222);
    cursor: pointer;
    display: inline-flex;
    height: 34px;
    width: 34px;
    justify-content: center;
    padding: 0;
    transition: all 0.2s ease;
}
.home-videos__nav-btn:hover:not(:disabled) {
    background: var(--nh-gold, #D9A036);
    border-color: var(--nh-gold, #D9A036);
    color: #fff;
    transform: scale(1.05);
}
.home-videos__nav-btn:disabled,
.home-videos__nav-btn[aria-disabled="true"] {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: rgba(0, 0, 0, 0.15);
}
.home-videos__wrapper {
    position: relative;
    width: 100%;
}

/* Track when > 3 items (Carousel show 3 items) */
.home-videos__track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-block: 4px;
    -webkit-overflow-scrolling: touch;
}
.home-videos__track::-webkit-scrollbar {
    display: none;
}
.home-videos__track .home-videos__item {
    flex: 0 0 calc((100% - 2 * 24px) / 3);
    max-width: calc((100% - 2 * 24px) / 3);
    min-width: 0;
    scroll-snap-align: start;
}
@media (max-width: 992px) {
    .home-videos__track {
        gap: 18px;
    }
    .home-videos__track .home-videos__item {
        flex: 0 0 calc((100% - 18px) / 2);
        max-width: calc((100% - 18px) / 2);
    }
}
@media (max-width: 600px) {
    .home-videos__track {
        gap: 14px;
    }
    .home-videos__track .home-videos__item {
        flex: 0 0 85%;
        max-width: 85%;
    }
}

/* Grid when <= 3 items (khi không đủ 3 item thì canh giữa) */
.home-videos__grid--centered {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    width: 100%;
}
.home-videos__grid--centered .home-videos__item {
    flex: 0 0 calc((100% - 2 * 24px) / 3);
    max-width: calc((100% - 2 * 24px) / 3);
    min-width: 260px;
}
@media (max-width: 992px) {
    .home-videos__grid--centered {
        gap: 18px;
    }
    .home-videos__grid--centered .home-videos__item {
        flex: 0 0 calc((100% - 18px) / 2);
        max-width: calc((100% - 18px) / 2);
    }
}
@media (max-width: 600px) {
    .home-videos__grid--centered .home-videos__item {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Video Card Item */
.home-videos__item {
    display: flex;
    flex-direction: column;
    margin: 0;
    min-width: 0;
}
.home-videos__play {
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 6px;
    display: block;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.home-videos__play img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.home-videos__item:hover .home-videos__play img {
    transform: scale(1.03);
}
.home-videos__badge {
    align-items: center;
    display: flex;
    inset: 0;
    justify-content: center;
    pointer-events: none;
    position: absolute;
    transition: transform 0.25s ease;
}
.home-videos__item:hover .home-videos__badge {
    transform: scale(1.08);
}
.home-videos__badge svg {
    width: 44px;
    height: 31px;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.35));
}
.home-videos__title {
    color: var(--nh-ink, #222);
    font-family: var(--font-body, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    margin: 10px 0 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    min-height: 2.8em;
    overflow: hidden;
}
.home-videos__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}
.home-videos__title a:hover {
    color: var(--nh-gold-deep, #c38c29);
}

/* "Xem thêm ⤋" Button */
.home-videos__actions {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}
.home-videos__more {
    align-items: center;
    background: #D9A036;
    border: 0;
    border-radius: 6px;
    color: #fff;
    display: inline-flex;
    font-family: var(--font-ui, var(--font-body, inherit));
    font-size: 13.5px;
    font-weight: 500;
    gap: 6px;
    justify-content: center;
    line-height: 20px;
    min-height: 38px;
    padding: 8px 24px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(217, 160, 54, 0.25);
}
.home-videos__more:hover {
    background: #c38c29;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(217, 160, 54, 0.35);
}
.home-videos__more svg {
    width: 13px;
    height: 13px;
    fill: currentColor;
    flex-shrink: 0;
}
.page-home .home-stack > .nh-lifestyle-projects + .nh-booking,
.page-home .home-stack > .nh-booking + .home-videos,
.page-home .home-stack > .home-videos + .nh-contact-band {
    margin-top: -80px;
}
@media (min-width:621px) and (max-width:800px){.page-home .about-value-card:last-child:nth-child(odd){grid-column:1/-1;justify-self:center;width:calc((100% - 1.25rem)/2)}}
@media (max-width:620px){
    .page-home .home-stack > .nh-lifestyle-projects + .nh-booking,
    .page-home .home-stack > .nh-booking + .home-videos,
    .page-home .home-stack > .home-videos + .nh-contact-band {
        margin-top: -56px;
    }
}
.page-home .nh-booking{padding:0}
.page-home .nh-booking__inner{align-items:flex-start;flex-direction:column;gap:24px;width:min(calc(100% - var(--gutter) * 2),1296px)}
.page-home .nh-booking__copy{flex:0 1 auto;max-width:38rem}
.page-home .nh-booking__title{font-size:clamp(2rem,3vw,2.5rem);line-height:1.16}
.page-home .nh-booking + .nh-contact-band{margin-top:-80px}
.page-home .nh-contact-band:last-child{margin-bottom:-80px}
.page-home .nh-contact-band{padding-block:clamp(48px,6vw,80px)}
.page-home .nh-contact-band__inner{align-items:stretch;display:grid;gap:clamp(32px,4vw,56px);grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.page-home .nh-contact-band__form,.page-home .nh-contact-band__aside{gap:24px}
.page-home .nh-contact-band__aside{border-left:1px solid rgba(255,255,255,.25);padding-left:clamp(24px,3vw,48px)}
.page-home .nh-contact-band__lead,.page-home .nh-contact-band__title{font-size:clamp(1.5rem,2.2vw,2rem);line-height:1.18}
.page-home .nh-contact-band__details{gap:12px}
.page-home .nh-contact-band__body,.page-home .nh-contact-band__details p{line-height:1.6}
.page-home .nh-contact-band .nh-contact-form__fields{gap:16px}
.page-home .nh-contact-band textarea.nh-plate{height:120px;min-height:120px}
.page-home .nh-contact-band .nh-contact-form__foot{position:relative}
.page-home .nh-contact-band .nh-contact-form__foot .wpcf7-submit{margin-left:auto}
.page-home .nh-contact-band .nh-contact-form__foot .wpcf7-spinner{margin:4px 0 0;position:absolute;right:0;top:100%}
@media (max-width:800px){
    .page-home .nh-contact-band__inner{gap:40px;grid-template-columns:minmax(0,1fr)}
    .page-home .nh-contact-band__aside{border-left:0;border-top:1px solid rgba(255,255,255,.25);padding-left:0;padding-top:32px}
}
@media (max-width:620px){
    .page-home .nh-booking + .nh-contact-band{margin-top:-56px}
    .page-home .nh-contact-band:last-child{margin-bottom:-56px}
    .page-home .nh-booking__title{font-size:clamp(1.875rem,8vw,2.25rem)}
    .page-home .nh-contact-band__lead,.page-home .nh-contact-band__title{font-size:1.5rem}
    .page-home .nh-contact-band__form,.page-home .nh-contact-band__aside{gap:20px}
    .page-home .nh-contact-band .nh-contact-form__foot .wpcf7-submit{margin-left:0}
}

@media (min-width: 621px) and (max-width: 900px) {
    .home-stories .nh-section-title,
    .home-collection .nh-section-title {
        font-size: clamp(2rem, 4.5vw, 2.5rem);
        line-height: 1.08;
    }
}

@media (max-width: 620px) {
    .home-collection .nh-eyebrow{font-size:13px;gap:8px;line-height:1.35}
    .home-collection .nh-eyebrow::before{width:24px}
    .home-collection .nh-section-title{font-size:clamp(1.75rem,7.7vw,2rem);line-height:1.12;text-wrap:balance}
    .home-collection .nh-collection-card__subtitle{font-size:.8125rem;letter-spacing:.02em;line-height:1.35}
    .home-collection .nh-collection-card__text{font-size:.9375rem;line-height:1.5;text-wrap:pretty}
    .nh-collection-card__title {
        font-size: clamp(1.125rem, 5.2vw, 1.35rem);
    }

    .nh-collection-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nh-collection-card:last-child:nth-child(odd) .nh-collection-card__media {
        aspect-ratio: auto;
        height: 100%;
        min-height: 0;
        min-width: 0;
        width: 100%;
    }

    .about-network-content .nh-intro__title {
        font-size: clamp(1.875rem, 8.5vw, 2.125rem);
        line-height: 1.1;
    }
}

/* Narrow phones: a full-width editorial row gives the copy room to breathe. */
@media (max-width:480px){
    .home-collection{gap:24px}
    .home-collection .nh-collection-grid{gap:20px;grid-template-columns:minmax(0,1fr)}
    .home-collection .nh-collection-card,.home-collection .nh-collection-card:last-child:nth-child(odd){display:flex;flex-direction:column;grid-column:auto;overflow:hidden}
    .home-collection .nh-collection-card__media,.home-collection .nh-collection-card:last-child:nth-child(odd) .nh-collection-card__media{aspect-ratio:16/9;height:auto;position:relative;width:100%}
    .home-collection .nh-collection-card__image{height:100%;inset:0;object-fit:cover;position:absolute;width:100%}
    .home-collection .nh-collection-card__body{gap:8px;min-width:0;padding:20px 18px 22px}
    .home-collection .nh-collection-card__title{font-size:1.35rem;line-height:1.2}
    .home-collection .nh-collection-card__subtitle{font-size:.8125rem;letter-spacing:.04em;text-transform:uppercase}
    .home-collection .nh-collection-card__text{font-size:.9375rem;line-height:1.55}
    .home-collection .nh-collection-card__action{align-items:center;border-top:1px solid rgba(150,150,150,.2);display:flex;flex-wrap:nowrap;font-size:.8125rem;justify-content:space-between;letter-spacing:.02em;line-height:1.35;margin-top:8px;padding-top:14px;white-space:nowrap}
    .home-collection .nh-collection-card__arrow{flex:0 0 28px}
}

.nh-footer__links span {
    color: var(--nh-gray-3);
    font-size: var(--fs-13);
    line-height: 20px;
}

.nh-contact-form__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.nh-contact-form__label,
.nh-newsletter__label {
    color: var(--nh-white);
    font-family: var(--font-body);
    font-size: var(--fs-14);
    line-height: 1.4;
}

.nh-newsletter__label {
    flex: 0 0 100%;
    margin-bottom: 6px;
}

/* Keep both link columns available without a very long single-column footer. */
@media (max-width: 420px) {
    .nh-footer__main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 2rem;
    }

    .nh-footer__intro,
    .nh-footer__contact,
    .nh-footer__newsletter {
        grid-column: 1 / -1;
    }
}
/* NHATO Collection — late responsive polish from the UI audit. */

/* Keep the editorial intro image from becoming a tall, narrow crop at tablet widths. */
@media (min-width:621px) and (max-width:800px){
  .nh-editorial-intro--lifestyle .nh-editorial-intro__inner{
    grid-template-columns:minmax(0,1fr);
    gap:32px;
  }
  .nh-editorial-intro--lifestyle .nh-editorial-intro__copy{
    max-width:46rem;
  }
  .nh-editorial-intro--lifestyle .nh-editorial-intro__media{
    align-self:auto;
    aspect-ratio:16 / 9;
    min-height:0;
  }
}

/* Preserve the news category rail's horizontal affordance on touch devices. */
@media (max-width:900px){
  .page-news .nh-cat-nav__track{
    overflow-x:auto;
    overflow-y:clip;
    padding-inline-end:clamp(24px,6vw,48px);
    scrollbar-color:var(--nh-gold) transparent;
    scrollbar-width:thin;
  }
  .page-news .nh-cat-nav__track::-webkit-scrollbar{display:block;height:4px}
  .page-news .nh-cat-nav__track::-webkit-scrollbar-thumb{background:var(--nh-gold);border-radius:999px}
  .page-news .nh-cat-nav__track::-webkit-scrollbar-track{background:transparent}
}

/* The collapsed header and hero pause control remain comfortably touchable. */
@media (max-width:1180px){
  .nh-header__nav .sub-menu a{
    align-items:center;
    display:flex;
    min-height:44px;
  }
}
@media (max-width:680px){
  .nh-home-hero__toggle{min-height:44px;min-width:44px}
}

/* Project details retain the article structure with an editorial reading width. */
.page-project .page-news__body{padding-block:calc(var(--header-height) + 44px) 88px}
.page-project .article{grid-template-columns:minmax(0,1fr);margin-inline:auto;max-width:880px}
.page-project .article__main{min-width:0}
.page-project .article__top{padding-bottom:14px}
.page-project .article__title{font-family:var(--font-legacy-serif);font-size:clamp(2.125rem,3.75vw,3rem);font-weight:var(--weight-regular);letter-spacing:-.02em;line-height:1.1;margin-top:24px;text-wrap:balance}
.page-project .article__lead{font-size:var(--fs-16);line-height:1.7;margin-top:18px;max-width:720px}
.page-project .article__hero{display:block;margin-top:32px;max-height:540px;object-fit:cover}
.page-project .article__body{gap:24px;margin-top:32px}
.page-project .single-content__meta{gap:20px 48px;padding-block:20px}
.page-project .single-content__meta-item{min-width:0}
.page-project .single-content__meta-item strong{line-height:1.4}
.page-project .article__body > :not(.single-content__meta):not(.single-content__gallery){max-width:880px}
.page-project .article__body .article__section{gap:12px}
.page-project .article__body .article__section h2{font-family:var(--font-legacy-serif);font-size:clamp(1.5rem,2.2vw,1.75rem);font-weight:var(--weight-regular);line-height:1.2;scroll-margin-top:calc(var(--header-height) + 24px)}
.page-project .article__body p{line-height:1.75}
.page-project .article__body .article__section p{font-size:var(--fs-16);line-height:1.7}
.page-project .article__body .wp-caption,.page-project .article__body figure:not(.single-content__gallery figure){box-sizing:border-box;max-width:100%}
.page-project .article__body .wp-caption img,.page-project .article__body .wp-block-image img{display:block;height:auto;max-width:100%}
.page-project .article__body .wp-caption-text,.page-project .article__body figcaption{text-align:center;text-align-last:center}
.page-project .article__toc{background:var(--nh-paper-warm);border-left:2px solid var(--nh-gold);padding:18px 22px;width:100%}
.page-project .article__toc-head{justify-content:space-between}
.page-project .article__toc-head button{color:var(--nh-ink);cursor:pointer;min-height:44px;min-width:44px}
.page-project .article__toc a:focus-visible,.page-project .article__toc button:focus-visible{outline:2px solid var(--nh-gold);outline-offset:3px}
@media (max-width:620px){
  .page-project .page-news__body{padding-block:calc(var(--header-height) + 28px) 64px}
  .page-project .article__title{font-size:clamp(2rem,8vw,2.5rem);margin-top:20px}
  .page-project .article__lead{margin-top:14px}
  .page-project .article__hero{margin-top:24px}
  .page-project .article__body{gap:22px;margin-top:24px}
  .page-project .single-content__meta{display:grid;gap:20px;grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:1024px){
  .page-project .article__body .wp-caption,.page-project .article__body figure{box-sizing:border-box;max-width:100% !important}
  .page-project .article__body img{box-sizing:border-box;height:auto;max-width:100% !important}
  .page-project .article__body .wp-caption-text{box-sizing:border-box;max-width:100% !important}
}
