/* Giao diện riêng của Mai yoga & bodyfit, nạp sau phần kiểu dáng có sẵn của bộ khung. */
:root {
  --bg: #fbf7ec;
  --green-mid: #2f6f73;
  --green-soft: #bfdedd;
  --clay-soft: #e2f0ef;
  --line: #e6dcc3;
  --ink: #253f3f;
  --m-beige: #f4e9cf;
  --m-sand: #e3cf9f;
  --m-mist: #e2f0ef;
  --m-aqua: #bfdedd;
  --m-teal: #2f6f73;
  --m-teal-dark: #1f5155;
  --m-soft: #4f6766;
}

body { background: var(--bg); }
header { background: rgba(251, 247, 236, .92); }
header.is-stuck { background: rgba(251, 247, 236, .97); }

/* Tạm ẩn cho tới khi khu học /lophoc và mục Blog hoạt động. Xoá khối này để hiện lại. */
#navNews, #navLib, #navAccount, a.nav-login { display: none !important; }

.mai section { padding: 0; }
.mai .wrap { max-width: 1080px; }
.mai h2 { font-size: clamp(1.7rem, 3.4vw, 2.35rem); font-weight: 600; line-height: 1.3; }
.mai h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.4; }
.mai p { margin: 0 0 1em; }

.m-eyebrow { color: var(--m-teal); font-size: .86rem; font-weight: 600; letter-spacing: .03em; }
.mai .m-eyebrow { margin-bottom: 14px; }

.m-btn {
  display: inline-block;
  padding: 13px 26px;
  border: 1.5px solid var(--m-teal);
  border-radius: 999px;
  background: var(--m-teal);
  color: #fff;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  transition: background .2s, border-color .2s;
}
.m-btn:hover { background: var(--m-teal-dark); border-color: var(--m-teal-dark); }
.m-btn-ghost { background: transparent; color: var(--m-teal-dark); }
.m-btn-ghost:hover { background: var(--m-mist); border-color: var(--m-teal); }
.m-btn-light { background: var(--bg); border-color: var(--bg); color: var(--m-teal-dark); }
.m-btn-light:hover { background: var(--m-beige); border-color: var(--m-beige); }

/* Mở đầu */
.mai .m-hero { padding: 72px 0 56px; background: linear-gradient(180deg, var(--m-mist) 0%, var(--bg) 100%); }
.m-hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }
.mai h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 600; line-height: 1.25; letter-spacing: 0; }
.mai h1 em { font-weight: 500; color: var(--m-teal); }
.mai .m-lead { margin: 22px 0 28px; max-width: 34em; color: var(--m-soft); font-size: 1.1rem; line-height: 1.7; }
.m-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Vòng tròn hít thở: 10 giây, hít vào 4 giây, thở ra 6 giây */
.m-breath { position: relative; width: min(340px, 100%); aspect-ratio: 1; margin: 0 auto; }
.m-ring, .m-core { position: absolute; inset: 0; border-radius: 50%; animation: m-breathe 10s ease-in-out infinite; }
.m-ring { background: var(--m-aqua); opacity: .35; }
.m-ring-2 { inset: 9%; background: var(--m-beige); opacity: .75; animation-delay: .15s; }
.m-core {
  inset: 20%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  box-shadow: 0 10px 30px rgba(47, 111, 115, .14);
  animation-delay: .3s;
}
.m-core svg { width: 76px; height: 44px; margin-bottom: 26px; color: var(--m-teal); }
.m-word {
  position: absolute;
  top: 58%;
  color: var(--m-teal-dark);
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
}
.m-in { animation: m-word-in 10s linear infinite; }
.m-out { animation: m-word-out 10s linear infinite; }
@keyframes m-breathe { 0%, 100% { transform: scale(.76); } 40% { transform: scale(1); } }
@keyframes m-word-in { 0%, 36% { opacity: 1; } 42%, 94% { opacity: 0; } 100% { opacity: 1; } }
@keyframes m-word-out { 0%, 36% { opacity: 0; } 42%, 94% { opacity: 1; } 100% { opacity: 0; } }

.m-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  list-style: none;
  color: var(--m-soft);
  font-size: .95rem;
}
.m-facts strong { display: block; color: var(--m-teal-dark); font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600; }

/* Về Mai */
.mai .m-about { padding: 88px 0; }
.m-about-grid { display: grid; grid-template-columns: 1fr 1.45fr; gap: 64px; align-items: center; font-size: 1.05rem; line-height: 1.7; }
.m-about-grid h2 { margin-bottom: 20px; }
.m-portrait {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  aspect-ratio: 4 / 5;
  padding-bottom: 20%;
  border-radius: 999px 999px 16px 16px;
  background: linear-gradient(180deg, var(--m-beige), var(--m-sand));
  color: var(--m-teal);
}
.m-portrait svg { width: 62%; height: 36%; }
.mai .m-sign { margin: 22px 0 2px; color: var(--m-teal-dark); font-family: var(--font-serif); font-size: 1.25rem; font-style: italic; }
.mai .m-note { margin: 0; color: var(--m-soft); font-size: .92rem; }

/* Quà tặng và khoá học */
.mai .m-paths { padding: 88px 0; background: var(--m-beige); }
.m-head { max-width: 640px; margin-bottom: 40px; line-height: 1.7; }
.m-head h2 { margin-bottom: 14px; }
.mai .m-head p:last-child { margin: 0; color: var(--m-soft); }
.m-path-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.m-path { padding: 32px; border-radius: 16px; background: var(--bg); }
.m-path-heal { border-top: 5px solid var(--m-teal); }
.m-path-fit { border-top: 5px solid var(--m-sand); }
.mai .m-tag { margin: 0 0 4px; color: var(--m-teal-dark); font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600; }
.m-for { color: var(--m-soft); }
.m-step { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.m-step h3 { margin: 6px 0 2px; }
.mai .m-step p { margin: 0; color: var(--m-soft); font-size: .94rem; }
.m-label { color: var(--m-soft); font-size: .8rem; font-weight: 600; }
.m-free { display: inline-block; padding: 1px 10px; border-radius: 999px; background: var(--m-mist); color: var(--m-teal-dark); }

.m-learn { margin-top: 48px; }
.m-learn ol {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 18px 0 28px;
  list-style: none;
  counter-reset: m-learn;
}
.m-learn li { counter-increment: m-learn; font-weight: 500; }
.m-learn li::before {
  content: counter(m-learn);
  display: block;
  color: var(--m-teal);
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-style: italic;
  line-height: 1.3;
}

/* Liên hệ */
.mai .m-contact { padding: 88px 0; background: var(--m-teal-dark); color: #eaf3f2; text-align: center; }
.mai .m-contact h2 { margin-bottom: 12px; color: var(--bg); }
.mai .m-contact-text { margin-bottom: 26px; }
.m-contact-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  margin-top: 32px;
  list-style: none;
  font-size: .96rem;
}
.m-contact-list a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 820px) {
  .mai .m-hero { padding: 44px 0 40px; }
  .m-hero-grid, .m-about-grid, .m-path-grid { grid-template-columns: 1fr; }
  .m-breath { width: min(260px, 80%); }
  .mai .m-about, .mai .m-paths, .mai .m-contact { padding: 60px 0; }
  .m-about-grid { gap: 36px; }
  .m-portrait { width: min(240px, 70%); margin: 0 auto; }
}

@media (max-width: 560px) {
  .mai .wrap { padding: 0 16px; }
  .m-facts, .m-learn ol { grid-template-columns: 1fr; gap: 14px; }
  .m-facts { margin-top: 40px; }
  .m-path { padding: 24px 20px; }
  .m-actions .m-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .m-ring, .m-core, .m-in, .m-out { animation: none !important; }
  .m-out { display: none; }
}
