/* CSS riêng từng trang (.p-*). Ảnh nền đặt ở đây, không dùng style="" (CSP). Số đo theo production @1920px. */

/* ================= Trang chủ ================= */
.p-home__hero {
  position: relative;
  height: 99.6rem;
  background:
    linear-gradient(180deg, rgba(6, 79, 120, 0) 12%, rgba(6, 79, 120, .3) 60%, rgba(6, 79, 120, .58) 100%),
    #dfe3e8 url(/assets/img/2022/07/banner-home-1-2-2.webp) center top / 192rem auto no-repeat;
}
.p-home__hero-text { position: absolute; left: 53.4%; top: 51rem; z-index: 2; }
.p-home__hero-title {
  margin: 0;
  width: 36.6rem;
  text-align: center;
  font-size: 7rem;
  font-weight: 600;
  line-height: .87;
  letter-spacing: 0;
  color: var(--c5);
  text-transform: uppercase;
}
.p-home__hero-lead, .p-home__hero-word { display: block; white-space: nowrap; }
.p-home__hero-sub {
  margin: 2.2rem 0 0 10rem;
  white-space: nowrap;
  font-size: 2.6rem;
  font-weight: 600;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--c6);
}
/* "find your" và phụ đề tan vào một lần khi tải trang; "balance" (chữ xoay) hiện từng ký tự và lặp lại */
/* Nhịp: FIND 0ms → YOUR 200ms → B của BALANCE 380ms (data-delay) → phụ đề 600ms */
.p-home__hero-lead-w { display: inline-block; animation: kd-dissolveIn 1.6s var(--ease-soft) both; }
.p-home__hero-lead-w + .p-home__hero-lead-w { animation-delay: .2s; }
.p-home__hero-sub { animation: kd-dissolveIn 1.6s var(--ease-soft) .6s both; }
.p-home__hero .c-wave__layer { fill-opacity: .25; }

/* Hero phụ chỉ hiện ≤970px (container mobile của bản gốc): nền banner-home-1-2 + màu chính */
.p-home__hero-m {
  position: relative;
  padding: 64px 24px calc(15.625vw + 48px);
  background: var(--c5) url(/assets/img/2022/07/banner-home-1-2.webp) center / cover no-repeat;
  text-align: center;
  isolation: isolate;
}
.p-home__hero-m::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(6, 79, 120, .35); }
.p-home__hero-m-title { margin: 0; font-size: clamp(26px, 8vw, 36px); font-weight: 600; line-height: 1.1; text-transform: uppercase; color: var(--c1); }
.p-home__hero-m-sub { margin: 10px 0 0; font-size: 15px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--c6); }
.p-home__hero-m .c-wave { z-index: 1; }

.p-home__courses { padding: 17.7rem 0 13.3rem; }
.p-home__courses .c-section-head { margin-bottom: 7.6rem; }
.p-home__course-grid { margin-bottom: 6rem; }

.p-home__benefits {
  position: relative;
  height: 100rem;
  padding-top: 9.5rem;
  background: var(--c1) url(/assets/img/2022/06/bene3.webp) center bottom / 192rem auto no-repeat;
}
.p-home__benefits .c-section-head { margin-bottom: 7.8rem; }
.p-home__benefit-cols { display: flex; justify-content: space-between; }
.p-home__benefit-col { width: 44.7rem; }
.p-home__benefit { display: flex; align-items: flex-start; gap: 2rem; }
.p-home__benefit:nth-child(1) { min-height: 14.8rem; }
.p-home__benefit:nth-child(2) { min-height: 17.6rem; }
.p-home__benefit-col--left .p-home__benefit { flex-direction: row-reverse; text-align: right; }
.p-home__benefit-col--left .is-inset { margin-right: 7.5rem; }
.p-home__benefit-col--right .is-inset { margin-left: 7.5rem; }
.p-home__benefit-icon {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 8.4rem; height: 8.4rem;
  border-radius: 50%;
  background: var(--c5);
  color: var(--c1);
}
.p-home__benefit-icon .c-icon { width: 4rem; height: 4rem; }
.p-home__benefit-title { margin: .4rem 0 1.4rem; font-size: max(2rem, 14px); font-weight: 600; line-height: 1.4; color: var(--c5); text-transform: uppercase; }
.p-home__benefit-text p { margin: 0; font-size: max(1.55rem, 13px); line-height: 1.45; }
@media (min-width: 1000px) { .p-home__benefit-title { white-space: nowrap; } }

.p-home__companion {
  padding: 13.3rem 0 18rem;
  background: linear-gradient(180deg, var(--c6) 0%, #fdfcfc 100%);
}
.p-home__companion .c-section-head { margin-bottom: 1.8rem; }
.p-home__companion .c-section-head__title { margin-top: .4rem; }
.p-home__companion-intro { max-width: 74rem; margin: 0 auto 3rem; text-align: center; font-size: max(1.5rem, 13px); line-height: 1.5; }
/* Nhịp nổi: tiêu đề 0 → đoạn intro 150ms → thẻ 240ms (cùng kích hoạt theo section, xem data-anim-group) */
.p-home__companion-intro { --anim-delay: .15s; }
.p-home__companion-card {
  --anim-delay: .24s;
  width: 56.8rem;
  max-width: 100%;
  margin: 0 auto;
  padding: 5.8rem 6.5rem 4.8rem;
  background: var(--c1);
  border-radius: .8rem;
  box-shadow: var(--shadow-card-sm);
  text-align: center;
}
.p-home__companion-img {
  width: 19rem; height: 19rem; margin: 0 auto 2.8rem; object-fit: cover;
  -webkit-mask: url(/assets/img/mask-scallop.svg) center / 100% 100% no-repeat;
  mask: url(/assets/img/mask-scallop.svg) center / 100% 100% no-repeat;
}
.p-home__companion-name { margin: 0 0 1rem; font: 400 max(2.2rem, 16px)/1.3 var(--font-accent); color: var(--c5); }
.p-home__companion-bio { font-size: max(1.5rem, 13px); line-height: 1.5; margin-bottom: 2.4rem; }

.p-home__news { padding: 4.8rem 0 13rem; }
.p-home__news .c-section-head { margin-bottom: 2.2rem; }
.p-home__news-more { margin: 5.4rem 0 0; }

/* ================= Banner từng trang ================= */
.p-courses__banner { background-image: url(/assets/img/2022/06/banner-khoa-hoc.webp); }
.p-about__banner { height: 63.2rem; background-image: url(/assets/img/2022/06/dscf3328-min.webp); }
.p-shop__banner { background-image: url(/assets/img/2022/06/banner-kidao-shop-2.webp); }
.p-contact__banner { height: 62.5rem; background-image: url(/assets/img/2022/06/e2-scaled.webp); }
.p-blog__banner { background-image: url(/assets/img/2022/06/dscf3319-1-min.webp); }

/* ================= Khóa học ================= */
.p-courses__intro { padding: 13.6rem 0 20.5rem; }
.p-courses__intro .c-section-head { margin-bottom: 4.5rem; }
.p-courses__intro .c-section-head__lead { margin-top: 5rem; }
.p-courses__trainer {
  position: relative;
  height: 112.7rem;
  padding-top: 38.4rem;
  background: #c8c7cf url(/assets/img/2022/06/hlv.webp) center -2.1rem / 192rem auto no-repeat;
}
.p-courses__trainer-inner { position: relative; z-index: 2; }
.p-courses__trainer .c-section-head { margin-bottom: 2rem; }
.p-courses__trainer .c-section-head__title { font-size: 4.4rem; }
.p-courses__trainer-text { max-width: 92rem; color: var(--c1); font-size: max(1.8rem, 14px); line-height: 2.8; margin: 0 0 1.6rem; }
.p-courses__trainer-list { list-style: none; margin: 0; padding: 0 0 0 1rem; display: grid; gap: 2.2rem; }
.p-courses__trainer-list li { display: flex; align-items: center; gap: 2.4rem; font-size: max(1.8rem, 14px); }
.p-courses__trainer-list .c-icon { color: var(--c1); }
.p-courses__trainer .c-wave__layer { fill-opacity: .35; }
.p-courses__outing { padding: 12.4rem 0 18.4rem; }
.p-courses__outing .c-section-head__lead { margin-top: 5rem; }
.p-courses__outing .c-section-head { margin-bottom: 3.1rem; }

/* ================= Về chúng tôi ================= */
.p-about__intro { padding: 9rem 0 6rem; }
.p-about__intro .c-section-head { margin-bottom: 4.5rem; }
.p-about__intro p { max-width: 73.5rem; font-size: max(1.55rem, 13px); }
.p-about__video { padding: 7rem 0 4rem; }
.p-about__video .c-video__media { width: 100%; }
.p-about__mindbody {
  position: relative;
  min-height: 124rem;
  padding: 11rem 0 20rem;
  background: var(--c5) url(/assets/img/2022/06/dscf3280-1-min.webp) center / cover no-repeat;
  isolation: isolate;
}
.p-about__mindbody::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(6, 79, 120, 1) 0%, rgba(6, 79, 120, .85) 25%, rgba(6, 79, 120, .45) 55%, rgba(6, 79, 120, 0) 80%);
}
.p-about__mindbody .c-section-head { margin-bottom: 4.5rem; }
.p-about__mindbody-text { max-width: 73.5rem; font-size: max(1.55rem, 13px); line-height: 1.45; }
.p-about__gallery { margin-top: 7.8rem; }
.p-about__features { margin-top: 7rem; }
.p-about__features { gap: 4.5rem; }
.c-feature { text-align: center; }
.c-feature__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 6.4rem; height: 6.4rem; min-width: 48px; min-height: 48px;
  margin-bottom: 1.6rem;
  border-radius: 50%;
  background: var(--c1); color: var(--c5);
}
.c-feature__icon .c-icon { width: 3rem; height: 3rem; }
.c-feature__title { margin: 0 0 1rem; font-size: max(2rem, 15px); text-transform: uppercase; color: var(--c1); }
.c-feature__text { margin: 0; font-size: max(1.55rem, 13px); line-height: 1.5; color: var(--c1); }
.p-about__gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.p-about__experience { padding: 7.5rem 0 14rem; }
.p-about__experience .c-section-head { margin-bottom: 6rem; }
/* Hàng số mờ vào nhẹ làm nền; hiệu ứng chính là bộ đếm (counter.js) */
.p-about__experience .c-counters { --anim-fade: .8s; --anim-move: 1s; --anim-rise: 6px; }
.p-about__stories { gap: 4.5rem; }
.p-about__cta { padding: 4rem 0 14rem; }

/* ================= Liên hệ ================= */
.p-contact__info { position: relative; z-index: 2; margin-top: -2.3rem; }
.p-contact__card {
  padding: 2.7rem 2.4rem 2.8rem;
  background: var(--c1);
  border-radius: var(--radius);
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, .1);
  text-align: center;
}
.p-contact__card p { margin: 0; font-size: max(1.5rem, 13px); line-height: 1.5; }
.p-contact__card p a { color: var(--c8); }
.p-contact__icon { display: inline-flex; color: var(--c5); margin-bottom: 1.6rem; }
.p-contact__icon .c-icon { width: 5.4rem; height: 5.4rem; }
.p-contact__title { margin: 0 0 1.4rem; font-size: max(2.4rem, 16px); color: var(--c5); text-transform: uppercase; }
.p-contact__form { padding: 15rem 0 12.2rem; }
.p-contact__form-col { width: 74.4rem; max-width: 100%; }
.p-contact__form .c-section-head { margin-bottom: 4rem; }
.p-contact__form .c-section-head__title { font-size: 4.2rem; }

/* ================= Blog ================= */
.p-blog__layout { display: grid; grid-template-columns: 1fr; }
.p-blog__main { padding: 10rem 8rem 12rem; }
.p-blog__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 5.5rem 2rem; }
@media (min-width: 1000px) {
  .p-blog__layout { grid-template-columns: 1fr 59rem; gap: 4rem; }
  .p-blog__main { padding-right: 0; }
}

/* ================= Shop ================= */
.p-shop__layout { display: grid; gap: 4.8rem; }
@media (min-width: 1000px) {
  .p-shop__layout { grid-template-columns: 1fr 2fr; }
  .p-shop__aside { order: -1; }
}
.p-shop__aside { display: grid; gap: 2.4rem; align-content: start; }
.p-shop__aside-title { font-size: max(2.4rem, 18px); margin: 0; color: var(--c5); letter-spacing: -.06em; }
.p-shop__promo { margin-bottom: 3.2rem; padding: 6rem 3.2rem; background: var(--c5) url(/assets/img/2019/11/blog-hero-background.webp) center / cover no-repeat; text-align: center; }
.p-shop__promo p { margin: 0; }
.p-shop__promo-title { font-size: max(5.6rem, 32px); font-weight: 600; line-height: 1.1; }
.p-shop__blog {
  padding: 34rem 0 12rem;
  background: var(--c5) url(/assets/img/2022/06/112dscf3701-1.webp) center / cover no-repeat;
  isolation: isolate;
}
.p-shop__blog::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--c4); }
.p-shop__blog .l-container { position: relative; z-index: 2; }

/* ================= Sự kiện ================= */
.p-event__layout { display: grid; gap: 4rem; }
@media (min-width: 1000px) {
  .p-event__layout { grid-template-columns: 2fr 1fr; }
  .c-event-info { position: sticky; top: calc(var(--header-h) + 2.4rem); }
}
.p-event__main .c-article__thumb { margin-bottom: 3rem; }

/* ================= 404 ================= */
.p-404__body { text-align: center; padding-block: 12rem 16rem; }
.p-404__body .c-btn { margin: .4rem; }

/* ================= Mobile (< 1000px) ================= */
@media (max-width: 999px) {
  .p-home__hero { height: auto; min-height: 520px; padding: 80px 24px 140px; background-size: cover; background-position: 25% top; }
  .p-home__hero-text--compact { padding-top: 260px; }
  .p-home__hero-text { position: relative; left: auto; top: auto; margin-left: auto; width: fit-content; max-width: 100%; padding-top: 220px; }
  .p-home__hero-title { width: auto; font-size: clamp(30px, 9vw, 40px); }
  .p-home__hero-sub { margin-left: 0; font-size: 15px; text-align: center; white-space: normal; }
  .p-home__courses { padding: 64px 0; }
  .p-home__courses .c-section-head { margin-bottom: 40px; }
  .p-home__benefits { height: auto; padding: 64px 0 52vw; background-size: 100% auto; }
  .p-home__benefits .c-section-head { margin-bottom: 40px; }
  .p-home__benefit-cols { flex-direction: column; gap: 28px; }
  .p-home__benefit-col { width: auto; display: grid; gap: 28px; }
  .p-home__benefit, .p-home__benefit:nth-child(n) { min-height: 0; }
  .p-home__benefit-col--left .p-home__benefit { flex-direction: row; text-align: left; }
  .p-home__benefit-col .is-inset { margin: 0 !important; }
  .p-home__benefit-icon { width: 56px; height: 56px; }
  .p-home__benefit-icon .c-icon { width: 26px; height: 26px; }
  .p-home__companion { padding: 64px 0; }
  .p-home__companion-card { padding: 40px 24px; }
  .p-home__companion-img { width: 160px; height: 160px; }
  .p-home__news { padding-top: 48px; }

  .p-courses__intro, .p-courses__outing { padding: 56px 0; }
  .p-courses__trainer { height: auto; padding: 120px 0 200px; background-size: cover; background-position: 70% top; }
  .p-courses__trainer::before { content: ""; position: absolute; inset: 0; background: rgba(60, 60, 75, .45); }
  .p-courses__trainer .c-section-head__title { font-size: 28px; }
  .p-courses__trainer-text { line-height: 1.6; }

  .p-about__intro, .p-about__experience, .p-about__cta { padding: 56px 0; }
  .p-about__video { padding: 0 0 40px; }
  .p-about__mindbody { min-height: 0; padding: 64px 0; }
  .p-about__mindbody::before { background: rgba(6, 79, 120, .85); }
  .p-about__gallery { margin-top: 32px; }

  .p-contact__info { margin-top: -24px; }
  .p-contact__info .l-container { gap: 20px; }
  .p-contact__icon .c-icon { width: 40px; height: 40px; }
  .p-contact__form { padding: 56px 0 80px; }
  .p-contact__form .c-section-head__title { font-size: 28px; }

  .p-blog__main { padding: 48px 24px; }
  .c-sidebar { padding: 40px 24px; }
  .p-shop__blog { padding: 140px 0 64px; }
}
@media (max-width: 599px) {
  .p-blog__grid { grid-template-columns: 1fr; }
}

/* ≤767px: ảnh nền hero căn trái như custom CSS gốc (.background-hero-0) */
@media (max-width: 767px) {
  .p-home__hero { background-position: 0 top; }
}
