/* Khu vuc Thap Dai Mon Phai: slider lon + luoi tab. Chi nap o trang chu. */
@import url("https://fonts.googleapis.com/css2?family=Zhi+Mang+Xing&text=%E5%B0%91%E6%9E%97%E6%98%8E%E6%95%99%E4%B8%90%E5%B8%AE%E6%AD%A6%E5%BD%93%E5%B3%A8%E7%9C%89%E6%98%9F%E5%AE%BF%E5%A4%A9%E9%BE%99%E5%B1%B1%E9%80%8D%E9%81%A5%E6%85%95%E5%AE%B9&display=swap");

.sect-section { position: relative; isolation: isolate; padding: 210px 0 230px; color: #ecdfc4; }
.sect-section > .wrap { position: relative; z-index: 2; }
/* nen toi chi bat dau sau dai khoi -> phan tren/duoi la giay sang, khoi lam cau noi */
.sect-bg {
  position: absolute; inset: 175px 0 175px; z-index: 0;
  -webkit-mask: linear-gradient(transparent, #000 50px, #000 calc(100% - 50px), transparent); mask: linear-gradient(transparent, #000 50px, #000 calc(100% - 50px), transparent);
  background: radial-gradient(80% 60% at 70% 30%, rgba(168,38,28,.30), transparent 70%), radial-gradient(60% 50% at 10% 90%, rgba(201,154,59,.12), transparent 70%), linear-gradient(#1d1510, #0e0a07 55%, #1d1510);
}

/* dai khoi chuyen tiep: 3 lop troi nguoc chieu nhau, anh khoi lap lien mach 1200px */
.mist { position: absolute; left: 0; right: 0; height: 260px; z-index: 1; overflow: hidden; pointer-events: none;
  -webkit-mask: linear-gradient(transparent, #000 30%, #000 86%, transparent); mask: linear-gradient(transparent, #000 30%, #000 86%, transparent); }
.mist-top { top: 0; }
.mist-bottom { bottom: 0; transform: scaleY(-1); }
.mist i { position: absolute; top: 0; bottom: 0; left: 0; width: calc(100% + 1200px); background: url("../img/mist-dark.webp") 0 0 / 1200px 100% repeat-x; will-change: transform; }
.mist .m-warm { background-image: url("../img/mist-warm.webp"); top: -46px; bottom: 46px; opacity: .6; animation: mist-left 70s linear infinite; }
.mist .m-dark { animation: mist-right 95s linear infinite; }
.mist .m-dark2 { background-position: 520px 0; top: 22px; bottom: -22px; opacity: .85; animation: mist-left 130s linear infinite; }
.mist-top::after {
  content: ""; position: absolute; left: 10%; right: 10%; bottom: 70px; height: 120px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(232,160,70,.18), transparent 70%); animation: mist-glow 6s ease-in-out infinite alternate;
}
@keyframes mist-left { to { transform: translateX(-1200px); } }
@keyframes mist-right { from { transform: translateX(-1200px); } to { transform: translateX(0); } }
@keyframes mist-glow { from { opacity: .5; } to { opacity: 1; } }

/* dom lua bay len tu nen toi xuyen qua lan khoi */
.embers { position: absolute; left: 0; right: 0; top: 40px; height: 460px; z-index: 1; overflow: hidden; pointer-events: none; }
.embers span {
  position: absolute; bottom: 0; left: var(--x); width: var(--s); height: var(--s); border-radius: 50%; opacity: 0;
  background: #ffd38a; box-shadow: 0 0 6px 2px rgba(255,140,50,.75), 0 0 14px 4px rgba(255,90,30,.3);
  animation: ember var(--d) linear var(--dl) infinite;
}
@keyframes ember {
  0% { transform: translate(0, 0) scale(1); opacity: 0; }
  12% { opacity: 1; }
  70% { opacity: .8; }
  100% { transform: translate(var(--dx), -420px) scale(.25); opacity: 0; }
}
@media (max-width: 760px) {
  .sect-section { padding: 150px 0 170px; }
  .sect-bg { inset: 105px 0 110px; }
  .mist { height: 180px; }
}
@media (prefers-reduced-motion: reduce) {
  .mist i, .mist-top::after { animation: none; }
  .embers { display: none; }
}
.sect-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 26px; }
.sect-kicker { margin: 0 0 6px; font-size: 12px; letter-spacing: .32em; text-transform: uppercase; color: #d9b36a; }
.sect-head h2 { margin: 0; font: 700 clamp(30px, 4vw, 48px)/1.1 "LacLongQuan", var(--serif); color: #f6ead2; letter-spacing: .02em; }
.sect-head > p { margin: 0; text-align: right; color: #c9b48e; font-size: 15px; }

/* san khau */
.sect-stage { position: relative; height: 560px; border: 1px solid rgba(232,189,98,.25); overflow: hidden; background: #160f0a; }
.sect-stage::before, .sect-stage::after {
  content: ""; position: absolute; z-index: 5; width: 22px; height: 22px; pointer-events: none; border: 0 solid rgba(232,212,170,.7);
}
.sect-stage::before { top: 10px; left: 10px; border-top-width: 1px; border-left-width: 1px; }
.sect-stage::after { bottom: 10px; right: 10px; border-bottom-width: 1px; border-right-width: 1px; }

.sect-slide, .sect-slide[hidden] {
  position: absolute; inset: 0; display: block; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s;
}
.sect-slide.on { opacity: 1; visibility: visible; }

/* anh / nen mau ben phai */
.sect-art {
  position: absolute; top: 0; right: 0; bottom: 0; width: 70%; overflow: hidden;
  background: radial-gradient(70% 80% at 62% 42%, var(--c1), var(--c2) 62%, #120c08);
  -webkit-mask: linear-gradient(to right, transparent, #000 32%);
          mask: linear-gradient(to right, transparent, #000 32%);
}
.sect-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 12%; }
/* lop am phu len anh that: keo bau troi tim trong anh ve tong vang - do cua web */
.sect-art.has-img::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(rgba(255,196,128,.32), rgba(255,160,90,.28)); mix-blend-mode: multiply;
}
.sect-art-dragon {
  opacity: .32; mix-blend-mode: luminosity; object-fit: contain !important; transform: scale(1.15) translateX(8%);
}
.sect-han {
  position: absolute; right: 9%; top: 50%; transform: translateY(-50%); writing-mode: vertical-rl; white-space: nowrap;
  font: 400 clamp(150px, 17vw, 250px)/1 "Zhi Mang Xing", "KaiTi", serif; color: rgba(255,244,220,.92);
  text-shadow: 0 0 40px var(--c1), 0 6px 24px rgba(0,0,0,.55);
}
.sect-slide.on .sect-han { animation: sect-ink 1.1s ease-out both; }
.sect-slide.on .sect-art img { animation: sect-zoom 7s ease-out both; }
@keyframes sect-ink { from { opacity: 0; filter: blur(8px); letter-spacing: .2em; } to { opacity: 1; filter: none; letter-spacing: 0; } }
@keyframes sect-zoom { from { transform: scale(1.08); } to { transform: none; } }

/* chu ben trai */
.sect-info { position: relative; z-index: 2; max-width: 400px; padding: 86px 0 0 56px; }
.sect-slide.on .sect-info > * { animation: sect-rise .7s ease-out both; }
.sect-slide.on .sect-info > *:nth-child(2) { animation-delay: .08s; }
.sect-slide.on .sect-info > *:nth-child(3) { animation-delay: .16s; }
.sect-slide.on .sect-info > *:nth-child(4) { animation-delay: .24s; }
.sect-slide.on .sect-info > *:nth-child(n+5) { animation-delay: .32s; }
@keyframes sect-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.sect-tagline { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: #c9b48e; }
.sect-tagline::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.sect-info h3 { margin: 18px 0 14px; font: 700 clamp(44px, 5.4vw, 68px)/1.05 "LacLongQuan", var(--serif); color: #f6ead2; }
.sect-motto { margin: 0 0 18px; font: italic 600 18px/1.4 var(--serif); color: color-mix(in srgb, var(--c1) 55%, #fff); }
.sect-motto::after { content: ""; display: block; width: 54px; height: 1px; margin-top: 18px; background: rgba(232,212,170,.5); }
.sect-desc { margin: 0 0 16px; color: #e2d5bc; font-size: 15px; line-height: 1.7; }
.sect-roles { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 24px; }
.sect-roles span { padding: 3px 10px; font-size: 12.5px; border: 1px solid color-mix(in srgb, var(--c1) 60%, transparent); color: color-mix(in srgb, var(--c1) 45%, #fff); border-radius: 999px; }
.sect-cta { display: inline-flex; gap: 10px; align-items: center; padding-bottom: 6px; border-bottom: 1px solid rgba(232,212,170,.55); color: #e8cf96; font-size: 14px; }
.sect-cta:hover { color: #fff; border-color: #fff; }
.sect-cta i { font-size: 11px; transition: transform .2s; }
.sect-cta:hover i { transform: translateX(4px); }

/* dem so + dieu khien */
.sect-count { position: absolute; z-index: 3; left: 56px; bottom: 34px; margin: 0; display: flex; align-items: center; gap: 14px; color: #a8916a; font-size: 13px; }
.sect-count b { font: 700 30px/1 var(--serif); color: #f0dcae; }
.sect-count span { width: 44px; height: 1px; background: #6b5636; }
.sect-ctrl { position: absolute; z-index: 4; right: 30px; bottom: 30px; display: flex; gap: 8px; }
.sect-ctrl button {
  min-width: 42px; height: 42px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: rgba(22,15,10,.6); color: #ecdfc4; border: 1px solid rgba(232,189,98,.4); cursor: pointer; font: 500 13px var(--sans);
  transition: background .2s, border-color .2s;
}
.sect-ctrl button:hover { background: rgba(232,212,170,.14); border-color: #e8cf96; }
.sect-auto { border-color: transparent !important; background: transparent !important; }

/* luoi tab 5 x 2 */
.sect-tabs { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid rgba(232,189,98,.25); border-top: 0; }
.sect-tabs button {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; height: 58px; cursor: pointer;
  background: transparent; color: #d8c6a2; border: 0; border-right: 1px solid rgba(232,189,98,.16); border-top: 1px solid rgba(232,189,98,.16);
  font: 500 15px var(--sans); transition: background .2s, color .2s;
}
.sect-tabs button:nth-child(5n) { border-right: 0; }
.sect-tabs button small { font-size: 10.5px; color: #8f7b58; }
.sect-tabs button:hover { background: rgba(255,255,255,.04); color: #fff; }
.sect-tabs button.on { background: linear-gradient(rgba(232,207,150,.1), rgba(232,207,150,.03)); color: #f6ead2; }
.sect-tabs button.on::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: 0; height: 2px; background: #e8cf96; }

@media (max-width: 860px) {
  .sect-head { flex-direction: column; align-items: flex-start; }
  .sect-head > p { text-align: left; }
  .sect-stage { height: auto; }
  .sect-slide, .sect-slide[hidden] { position: relative; display: none; }
  .sect-slide.on { display: block; }
  .sect-art { position: relative; width: 100%; height: 300px; -webkit-mask: linear-gradient(to bottom, #000 70%, transparent); mask: linear-gradient(to bottom, #000 70%, transparent); }
  .sect-han { right: 50%; transform: translate(50%, -50%); font-size: 150px; }
  .sect-info { max-width: none; padding: 0 22px 90px; margin-top: -30px; }
  .sect-count { left: 22px; bottom: 30px; }
  .sect-ctrl { right: 16px; bottom: 24px; }
  .sect-auto span { display: none; }
  .sect-tabs { display: flex; overflow-x: auto; scrollbar-width: none; }
  .sect-tabs button { flex: none; padding: 0 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .sect-slide, .sect-slide.on .sect-info > *, .sect-slide.on .sect-han, .sect-slide.on .sect-art img { transition: none; animation: none; }
}

/* khung bao slider + luoi tab: vien vang co anh sang chay vong quanh (giong bang May chu) */
.sect-frame { position: relative; isolation: isolate; padding: 3px; border-radius: 6px; box-shadow: 0 18px 40px rgba(20,8,0,.5); }
.sect-frame::before {
  content: ""; position: absolute; inset: 0; z-index: -1; padding: 3px; border-radius: inherit; pointer-events: none;
  background: conic-gradient(from var(--srv-a, 0deg), #7a4510, #f6d58a, #b9782a, #fff2c2, #7a4510 50%, #f6d58a, #b9782a, #7a4510);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: srv-spin 8s linear infinite;
}
/* quang sang mo toa ra ngoai vien */
.sect-frame::after {
  content: ""; position: absolute; inset: -6px; z-index: -2; border-radius: 10px; pointer-events: none;
  background: conic-gradient(from var(--srv-a, 0deg), transparent, rgba(255,200,90,.35), transparent 30%, transparent 50%, rgba(255,200,90,.35), transparent 80%);
  filter: blur(10px); animation: srv-spin 8s linear infinite;
}
@media (prefers-reduced-motion: reduce) { .sect-frame::before, .sect-frame::after { animation: none; } }
