/* Shared type scale and spacing for every homepage slide, including CMS size choices. */
.hero-carousel{--hero-title-size:clamp(44px,5.2vw,78px);--hero-copy-width:620px}
.hero-carousel.size-small,.hero-carousel .hero-slide.size-small{--hero-title-size:clamp(40px,4.6vw,68px)}
.hero-carousel.size-large,.hero-carousel .hero-slide.size-large{--hero-title-size:clamp(48px,5.9vw,88px)}
.hero-carousel .hero-slide.size-standard{--hero-title-size:clamp(44px,5.2vw,78px)}
.hero-carousel.width-narrow,.hero-carousel .hero-slide.width-narrow{--hero-copy-width:520px}
.hero-carousel.width-wide,.hero-carousel .hero-slide.width-wide{--hero-copy-width:750px}
.hero-carousel .hero-slide.width-standard{--hero-copy-width:620px}
.hero-carousel .hero-slide .hero-content,.hero-carousel .hero-slide:is(.width-narrow,.width-standard,.width-wide) .hero-content{max-width:var(--hero-copy-width)}
.hero-carousel .hero-slide .hero-content .eyebrow{padding-top:20px;font-size:11px;line-height:1.55;letter-spacing:.19em}
.hero-carousel .hero-slide .hero-content h1{margin-block:17px 20px;font-size:var(--cms-heading-size,var(--hero-title-size))!important;line-height:1.14}
.hero-carousel .hero-slide .lead{max-width:520px;font-size:clamp(15px,1.18vw,16px);line-height:1.7}
.hero-carousel .hero-slide .hero-actions{margin-top:28px;gap:20px}
.hero-carousel .hero-slide .button-outline{min-height:48px;padding:12px 22px;font-size:11px;letter-spacing:.1em;gap:15px}
@media(max-width:700px){
  .hero-carousel .hero-slide .hero-content h1{font-size:var(--cms-heading-size-mobile,var(--cms-heading-size,var(--hero-title-size)))!important}
}
@media(max-width:600px){
  .hero-carousel{--hero-title-size:clamp(34px,8.9vw,48px)}
  .hero-carousel.size-small,.hero-carousel .hero-slide.size-small{--hero-title-size:clamp(32px,8vw,42px)}
  .hero-carousel.size-large,.hero-carousel .hero-slide.size-large{--hero-title-size:clamp(36px,9.8vw,54px)}
  .hero-carousel .hero-slide.size-standard{--hero-title-size:clamp(34px,8.9vw,48px)}
  .hero-carousel .hero-slide{padding:48px 22px 170px}
  .hero-carousel .hero-slide .hero-content .eyebrow{padding-top:16px;font-size:10px;letter-spacing:.16em}
  .hero-carousel .hero-slide .hero-content h1{margin-block:15px 18px;line-height:1.16}
  .hero-carousel .hero-slide .lead{max-width:100%;font-size:14px;line-height:1.65}
  .hero-carousel .hero-slide .hero-actions{margin-top:24px;gap:16px}
  .hero-carousel .hero-slide .button-outline{min-height:44px;padding:10px 18px;font-size:10.5px;gap:13px}
}

/* Preserve the senior participants while keeping the wellness introduction readable. */
.hero-carousel .hero-slide:has(.hero-image:is([src*="tra-duong-sinh-cao-nien"],[data-src*="tra-duong-sinh-cao-nien"])) .hero-shade{background:linear-gradient(90deg,rgba(7,25,18,.88) 0%,rgba(9,28,20,.67) 30%,rgba(9,28,20,.16) 56%,rgba(9,28,20,.02) 78%),linear-gradient(0deg,rgba(7,22,16,.5),transparent 30%)}
@media(max-width:767px){
.hero-carousel .hero-slide:has(.hero-image:is([src*="tra-duong-sinh-cao-nien"],[data-src*="tra-duong-sinh-cao-nien"])){align-items:flex-start;padding-top:38px}
.hero-carousel .hero-slide:has(.hero-image:is([src*="tra-duong-sinh-cao-nien"],[data-src*="tra-duong-sinh-cao-nien"])) .hero-content{margin:0}
.hero-carousel .hero-slide:has(.hero-image:is([src*="tra-duong-sinh-cao-nien"],[data-src*="tra-duong-sinh-cao-nien"])) .hero-shade{background:linear-gradient(180deg,rgba(6,22,15,.82) 0%,rgba(6,22,15,.76) 32%,rgba(6,22,15,.34) 48%,rgba(6,22,15,.08) 67%,rgba(6,22,15,.53) 100%)}
.hero-carousel .hero-slide:has(.hero-image:is([src*="tra-duong-sinh-cao-nien"],[data-src*="tra-duong-sinh-cao-nien"])) h1{line-height:1.14;margin-block:15px 18px}
.hero-carousel .hero-slide:has(.hero-image:is([src*="tra-duong-sinh-cao-nien"],[data-src*="tra-duong-sinh-cao-nien"])) .lead{font-size:14px;line-height:1.55;max-width:36ch}
.hero-carousel .hero-slide:has(.hero-image:is([src*="tra-duong-sinh-cao-nien"],[data-src*="tra-duong-sinh-cao-nien"])) .hero-actions{margin-top:20px}
}

/* Keep uploaded header compositions intact instead of enlarging them to viewport height. */
.hero-carousel .hero-image,
.hero-carousel .hero-slide:is(.is-active,.is-leaving) .hero-image{
  object-fit:contain;
  transform:none!important;
  animation:none!important;
  will-change:auto;
}
@media(min-width:1024px){
  .hero-carousel{
    height:auto;
    min-height:0;
    aspect-ratio:16/9;
  }
  .hero-carousel .hero-slide{
    padding-top:clamp(28px,3.5vw,68px);
    padding-bottom:clamp(100px,9vw,150px);
  }
}
@media(max-width:1023px){
  .hero-carousel{
    height:auto;
    min-height:0;
    aspect-ratio:auto;
  }
  .hero-carousel .hero-slides{
    position:relative;
    inset:auto;
  }
  .hero-carousel .hero-slide{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    padding:0;
    width:100%;
  }
  .hero-carousel .hero-slide.is-active{
    position:relative;
    inset:auto;
  }
  .hero-carousel .hero-slide .hero-image{
    display:block;
    position:static;
    width:100%;
    height:auto;
    max-height:none;
    object-fit:contain!important;
    z-index:auto;
  }
  .hero-carousel .hero-slide .hero-shade{display:none}
  .hero-carousel .hero-slide .hero-content{
    width:100%;
    max-width:none;
    margin:0;
    padding:32px clamp(22px,5vw,40px) 24px;
    background:#1a2d23;
  }
  .hero-carousel .hero-slide .hero-content .eyebrow{padding-top:16px}
  .hero-carousel .hero-slide .hero-credit{
    position:relative;
    inset:auto;
    max-width:none;
    padding:0 22px 20px;
  }
  .hero-carousel .hero-controls{
    position:relative;
    inset:auto;
    background:#1a2d23;
  }
  .hero-carousel .hero-controls-inner{
    padding-top:10px;
    padding-right:22px;
    padding-left:22px;
  }
}

/* The homepage navigation sits on the hero and scrolls with the document. */
body[data-page="/"]{--home-ribbon-height:35px;--home-hero-copy-center:71%}
/* Match the owner's portrait crop of the original DSC02311 mobile upload. */
@media(max-width:700px){
  body[data-page="/"] .hero-carousel .hero-slide[data-slide="0"] .hero-image[data-mobile-src*="DSC02311"]{
    transform:scale(1.12)!important;
    transform-origin:50% 70%;
  }
}
body[data-page="/"] .site-header{
  position:absolute;
  top:var(--home-ribbon-height);
  left:0;
  right:0;
  background:transparent!important;
  border:0;
  backdrop-filter:none;
  box-shadow:none;
}
body[data-page="/"] .site-header .header-inner{height:var(--header)}
body[data-page="/"] .site-header .brand img{filter:drop-shadow(0 1px 6px rgba(0,0,0,.3))}
body[data-page="/"] .desktop-nav a{
  color:#f8f7f1;
  text-shadow:0 1px 6px rgba(0,0,0,.45);
}
body[data-page="/"] .desktop-nav a:hover,
body[data-page="/"] .desktop-nav a[aria-current="page"]{color:#d9e8c9}
body[data-page="/"] .desktop-nav a::after{background:#d9e8c9}
body[data-page="/"] .menu-toggle{border-color:rgba(248,247,241,.65)}
body[data-page="/"] .menu-toggle span{background:#f8f7f1}
body[data-page="/"] .mobile-nav{
  background:#1a2d23;
  color:#f8f7f1;
  border-color:rgba(248,247,241,.16);
}
body[data-page="/"] .mobile-nav a{border-color:rgba(248,247,241,.16)}
body[data-page="/"] .mobile-nav a[aria-current="page"]{color:#d9e8c9}
@media(min-width:1024px){
  body[data-page="/"] .site-header .desktop-nav{
    position:absolute;
    left:var(--home-hero-copy-center);
    top:50%;
    width:max-content;
    justify-content:center;
    transform:translate(-50%,-50%);
  }
  body[data-page="/"] .hero-carousel .hero-slide{
    padding-top:max(clamp(28px,3.5vw,68px),calc(var(--header) + 20px));
  }
}
@media(min-width:1024px) and (max-width:1199px){
  body[data-page="/"] .hero-carousel .hero-slide .hero-content h1{
    font-size:var(--cms-heading-size,clamp(40px,4.2vw,50px))!important;
    margin-block:12px 16px;
  }
  body[data-page="/"] .hero-carousel .hero-slide .lead{font-size:14px;line-height:1.6}
  body[data-page="/"] .hero-carousel .hero-slide .hero-actions{margin-top:20px}
}
@media(max-width:600px){
  body[data-page="/"]{--home-ribbon-height:29px}
}

/* Align the fermented tea introduction with the open space above the bowl. */
@media(min-width:1024px){
  body[data-page="/"] .hero-carousel .hero-slide[data-slide="0"] .hero-content{
    position:absolute;
    left:var(--home-hero-copy-center);
    bottom:calc(61.5% + 8px);
    top:auto;
    width:40%;
    max-width:760px;
    margin:0;
    padding:0;
    transform:translateX(-50%);
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
  }
  body[data-page="/"] .hero-carousel .hero-slide[data-slide="0"] .hero-content .eyebrow{
    padding-top:10px;
    margin:0;
    font-size:clamp(10px,.78vw,13px);
    line-height:1.45;
    letter-spacing:.17em;
  }
  body[data-page="/"] .hero-carousel .hero-slide[data-slide="0"] .hero-content h1{
    width:100%;
    font-size:var(--cms-heading-size,clamp(38px,3.65vw,70px))!important;
    line-height:1.1;
    margin:12px 0 14px;
    color:#f8f7f1;
    text-wrap:balance;
  }
  body[data-page="/"] .hero-carousel .hero-slide[data-slide="0"] .lead{
    max-width:100%;
    margin:0;
    font-size:clamp(13px,1.08vw,18px);
    font-weight:500;
    line-height:1.5;
    color:rgba(248,247,241,.94);
    text-wrap:pretty;
  }
  body[data-page="/"] .hero-carousel .hero-slide[data-slide="0"] .hero-actions{
    justify-content:center;
    align-items:center;
    margin-top:15px;
  }
  body[data-page="/"] .hero-carousel .hero-slide[data-slide="0"] .button-outline{
    min-height:40px;
    padding:8px 20px;
    font-size:clamp(10px,.82vw,12px);
    letter-spacing:.09em;
    gap:12px;
  }
}
@media(min-width:1024px) and (max-width:1199px){
  body[data-page="/"] .hero-carousel .hero-slide[data-slide="0"] .hero-content{bottom:calc(60% + 6px);width:39%}
  body[data-page="/"] .hero-carousel .hero-slide[data-slide="0"] .hero-content h1{
    font-size:var(--cms-heading-size,clamp(30px,2.8vw,34px))!important;
    margin-block:7px 9px;
  }
  body[data-page="/"] .hero-carousel .hero-slide[data-slide="0"] .lead{font-size:11.5px;line-height:1.45}
  body[data-page="/"] .hero-carousel .hero-slide[data-slide="0"] .hero-content .eyebrow{padding-top:8px;font-size:8.5px}
  body[data-page="/"] .hero-carousel .hero-slide[data-slide="0"] .hero-actions{margin-top:10px}
  body[data-page="/"] .hero-carousel .hero-slide[data-slide="0"] .button-outline{min-height:32px;font-size:9px;padding:6px 14px}
}
@media(max-width:1023px){
  body[data-page="/"] .hero-carousel .hero-slide[data-slide="0"] .hero-content{padding-block:24px 20px;text-align:center}
  body[data-page="/"] .hero-carousel .hero-slide[data-slide="0"] .hero-content .eyebrow{padding-top:12px;font-size:9px}
  body[data-page="/"] .hero-carousel .hero-slide[data-slide="0"] .hero-content h1{
    font-size:var(--cms-heading-size-mobile,var(--cms-heading-size,clamp(28px,5vw,36px)))!important;
    margin-block:10px 14px;
  }
  body[data-page="/"] .hero-carousel .hero-slide[data-slide="0"] .lead{max-width:520px;margin-inline:auto;font-size:13px;line-height:1.6}
  body[data-page="/"] .hero-carousel .hero-slide[data-slide="0"] .hero-actions{justify-content:center;align-items:center;margin-top:18px}
  body[data-page="/"] .hero-carousel .hero-slide[data-slide="0"] .button-outline{min-height:38px;padding:8px 16px;font-size:10px}
}

/* Align the Ngoc tea copy with the homepage logo while keeping its lower position. */
body[data-page="/"] .hero-carousel .hero-slide[data-slide="1"] .hero-content{
  text-align:left;
}
body[data-page="/"] .hero-carousel .hero-slide[data-slide="1"] .hero-content h1{
  width:100%;
  margin-inline:0;
  white-space:normal;
  text-align:left;
}
body[data-page="/"] .hero-carousel .hero-slide[data-slide="1"] .lead{
  max-width:100%;
  margin-inline:0;
}
body[data-page="/"] .hero-carousel .hero-slide[data-slide="1"] .hero-actions{
  justify-content:flex-start;
}
@media(min-width:1024px){
  body[data-page="/"] .hero-carousel .hero-slide[data-slide="1"] .hero-content{
    position:absolute;
    left:max(32px,calc((100% - var(--wrap))/2 + 32px));
    top:calc(var(--header) + clamp(18px,2vw,36px) + clamp(24px,2.5vw,44px) + clamp(40px,4vw,70px));
    bottom:auto;
    width:27%;
    max-width:520px;
    margin:0;
    padding:0;
    transform:none;
    display:flex;
    flex-direction:column;
    align-items:flex-start;
  }
  body[data-page="/"] .hero-carousel .hero-slide[data-slide="1"] .hero-shade{
    background:linear-gradient(90deg,rgba(7,25,18,.30) 0%,rgba(7,25,18,.74) 18%,rgba(7,25,18,.78) 32%,rgba(7,25,18,.48) 44%,rgba(7,25,18,.10) 62%,rgba(7,25,18,.08) 100%),linear-gradient(0deg,rgba(7,22,16,.6),transparent 32%);
  }
}
@media(min-width:1024px) and (max-width:1199px){
  body[data-page="/"] .hero-carousel .hero-slide[data-slide="1"] .hero-content{top:calc(var(--header) + 48px)}
}
@media(min-width:1024px) and (max-width:1050px){
  body[data-page="/"] .hero-carousel .hero-slide[data-slide="1"] .hero-content{left:26px}
}
@media(max-width:1023px){
  body[data-page="/"] .hero-carousel .hero-slide[data-slide="1"] .hero-content{padding-block:40px 24px}
}

/* Keep the wellness introduction in the former flower-tea position above the cup. */
@media(min-width:1024px){
  body[data-page="/"] .hero-carousel .hero-slide[data-slide="2"] .hero-content{
    position:absolute;
    top:20%;
    bottom:auto;
    left:max(32px,calc((100vw - var(--wrap))/2 + 32px));
    width:calc(100% - 64px);
    max-width:var(--hero-copy-width);
    margin:0;
    padding:0;
  }
}

/* Raise the heritage gift introduction into the marked upper foliage area. */
@media(min-width:1024px){
  body[data-page="/"] .hero-carousel .hero-slide[data-slide="3"] .hero-content{
    position:absolute;
    top:max(13%,calc(var(--header) + 24px));
    bottom:auto;
    left:max(32px,calc((100vw - var(--wrap))/2 + 32px));
    width:calc(100% - 64px);
    max-width:var(--hero-copy-width);
    margin:0;
    padding:0;
  }
}
