/* ==========================================================================
   Sáo trúc page — sage & bamboo palette with a small "flute" motif
   ========================================================================== */

.fl-page {
  --fl-ink: #273d37;
  --fl-ink-soft: #5c6e63;
  --fl-paper: #fbf8f0;
  --fl-card: #fffdf8;
  --fl-sage: #e8ede5;
  --fl-sage-deep: #d5dfd0;
  --fl-line: #d5dacd;
  --fl-accent: #8a623d;
  --fl-gold: #d8bc8f;
  --fl-forest: #283f36;
  --fl-bamboo: #7f9b78;
  --fl-radius: 22px;
  --fl-shadow: 0 1px 2px rgba(39, 61, 55, 0.05), 0 20px 44px -24px rgba(39, 61, 55, 0.32);
  --fl-flute: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='46' height='10' viewBox='0 0 46 10'%3E%3Crect x='.75' y='2.25' width='44.5' height='5.5' rx='2.75' fill='none' stroke='%238a623d' stroke-width='1.1'/%3E%3Cpath d='M9 2.5v5' stroke='%238a623d' stroke-width='1.1'/%3E%3Cg fill='%238a623d'%3E%3Ccircle cx='15' cy='5' r='1.1'/%3E%3Ccircle cx='22' cy='5' r='1.1'/%3E%3Ccircle cx='27' cy='5' r='1.1'/%3E%3Ccircle cx='32' cy='5' r='1.1'/%3E%3Ccircle cx='37' cy='5' r='1.1'/%3E%3Ccircle cx='41.5' cy='5' r='1.1'/%3E%3C/g%3E%3C/svg%3E");
  --fl-leaves: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='200' viewBox='0 0 240 200'%3E%3Cg fill='%237f9b78'%3E%3Cpath d='M20 40c40-30 100-34 150-14-50 6-100 16-150 14Z' opacity='.5'/%3E%3Cpath d='M60 96c34-22 84-24 126-8-42 4-84 12-126 8Z' opacity='.35'/%3E%3Cpath d='M10 150c36-26 92-30 140-12-48 6-94 14-140 12Z' opacity='.42'/%3E%3C/g%3E%3C/svg%3E");
  background: var(--fl-paper);
  color: var(--fl-ink);
  font: 16px/1.8 'Be Vietnam Pro', system-ui, sans-serif;
  overflow-x: clip;
}

.fl-page a { color: inherit !important; }
.fl-page p { max-width: 620px; text-wrap: pretty; }
.fl-page img { display: block; max-width: 100%; height: auto; }
.fl-page figure { margin: 0; }
.fl-page h1, .fl-page h2, .fl-page h3 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; color: inherit; text-wrap: balance; }
.fl-page h1 { font-size: clamp(3rem, 6vw, 6rem); line-height: 1.04; letter-spacing: -0.045em; margin: 25px 0; }
.fl-page h2 { font-size: clamp(2.3rem, 4.4vw, 4rem); line-height: 1.15; letter-spacing: -0.035em; margin: 15px 0 26px; }
.fl-page em { font-weight: 400; color: var(--fl-accent); }
.fl-page a:focus-visible, .fl-page summary:focus-visible { outline: 3px solid #a66520; outline-offset: 6px; }

/* Eyebrow: small caps label led by a tiny six-hole bamboo flute */
.fl-page .fl-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0;
}

.fl-page .fl-eyebrow::before {
  content: '';
  flex: 0 0 46px;
  height: 10px;
  background: var(--fl-flute) no-repeat center / contain;
}

/* ---------- Hero ---------- */

.fl-hero {
  position: relative;
  padding: 60px 0 25px;
  background:
    radial-gradient(circle at 78% 30%, rgba(216, 188, 143, 0.28), transparent 32%),
    radial-gradient(circle at 8% 90%, rgba(127, 155, 120, 0.16), transparent 30%),
    var(--fl-paper);
}

.fl-hero__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 70px; align-items: center; }
.fl-hero__copy > p:not(.fl-eyebrow) { font-size: 0.92rem; max-width: 450px; }
.fl-hero__copy .fl-lead { font: 1.5rem/1.5 Georgia, serif !important; }

.fl-hero__notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fl-hero__notes li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--fl-line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.8);
  font-size: 0.74rem;
  color: var(--fl-ink-soft);
}

.fl-hero__notes li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fl-bamboo);
}

.fl-hero__visual { position: relative; isolation: isolate; }

/* A soft "moon" disc sits behind the arched portrait */
.fl-hero__visual::before {
  content: '';
  position: absolute;
  z-index: -2;
  width: 78%;
  aspect-ratio: 1;
  top: -6%;
  right: -10%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #f3e6cd, #e7d4b1 70%, transparent 71%);
  opacity: 0.75;
}

.fl-hero__visual > .fl-bamboo {
  position: absolute;
  z-index: -1;
  left: -64px;
  bottom: -10px;
  height: 92%;
  width: auto;
  color: var(--fl-bamboo);
}

.fl-hero__image {
  position: relative;
  border-radius: 46% 46% 22px 22px;
  overflow: hidden;
  background: var(--fl-sage);
  box-shadow: 0 0 0 10px var(--fl-paper), 0 0 0 11px var(--fl-gold), 0 40px 70px -30px rgba(39, 61, 55, 0.45);
}

.fl-hero__image img { width: 100%; max-height: 670px; object-fit: cover; }

.fl-hero__image figcaption {
  position: absolute;
  bottom: 0;
  padding: 65px 22px 20px;
  background: linear-gradient(transparent, #142c25b8);
  width: 100%;
  color: white;
  font-style: italic;
}

.fl-actions { display: flex; gap: 25px; align-items: center; flex-wrap: wrap; margin: 28px 0; }
.fl-actions a { font-size: 0.8rem; }

.fl-button {
  display: inline-block;
  padding: 14px 24px;
  background: linear-gradient(180deg, #e2c99d, #d3b483);
  border: 1px solid #c2a574;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 10px 22px -12px rgba(138, 98, 61, 0.7);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.fl-button:hover {
  background: linear-gradient(180deg, #dcbf8e, #cdae7d);
  transform: translateY(-2px);
  box-shadow: 0 16px 28px -14px rgba(138, 98, 61, 0.8);
}

.fl-hero__footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 46px;
  padding-top: 20px;
  border-top: 1px solid #cbd1c7;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ---------- Section navigation ---------- */

.fl-section-nav {
  z-index: 20;
  border-top: 1px solid var(--fl-line);
  border-bottom: 1px solid var(--fl-line);
  background: rgba(251, 248, 240, 0.9);
  backdrop-filter: blur(12px);
}

.fl-section-nav > div {
  display: flex;
  justify-content: center;
  gap: 8px;
  overflow-x: auto;
  padding-top: 10px;
  padding-bottom: 10px;
  scrollbar-width: none;
}

.fl-section-nav a {
  white-space: nowrap;
  font-size: 0.78rem;
  text-decoration: none;
  padding: 7px 16px;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.fl-section-nav a:hover { background: var(--fl-sage); }

/* Pinned under the site header only where that header is a single fixed-height row */
@media (min-width: 1200px) {
  .fl-section-nav { position: sticky; top: 57px; }
}

/* ---------- Sections ---------- */

.fl-section { position: relative; padding-top: 100px; padding-bottom: 100px; scroll-margin-top: 130px; }

.fl-section--sage { background: var(--fl-sage); isolation: isolate; }

/* Sage bands carry a few drifting bamboo leaves in the corner */
.fl-section--sage::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 30px;
  right: 2%;
  width: 240px;
  height: 200px;
  background: var(--fl-leaves) no-repeat center / contain;
  opacity: 0.55;
  pointer-events: none;
}

.fl-heading { max-width: 700px; margin-bottom: 52px; }
.fl-heading > p:last-child { font-size: 0.9rem; color: var(--fl-ink-soft); }

/* Pillars become soft paper cards */
.fl-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

.fl-pillars article {
  position: relative;
  padding: 32px 30px 30px;
  background: var(--fl-card);
  border: 1px solid var(--fl-line);
  border-radius: var(--fl-radius);
  box-shadow: var(--fl-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.fl-pillars article:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(39, 61, 55, 0.05), 0 28px 50px -24px rgba(39, 61, 55, 0.4); }
.fl-section--sage .fl-pillars article { background: var(--fl-paper); }

.fl-pillars span { font: italic 1.15rem Georgia, serif; color: var(--fl-accent); }
.fl-pillars h3 { font-size: 1.65rem; margin: 16px 0 14px; }
.fl-pillars p { font-size: 0.88rem; color: var(--fl-ink-soft); }
.fl-pillars p:last-child { margin-bottom: 0; }

.fl-pillars--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Learning path: numbered stops joined by a dashed "breath" line */
.fl-pillars--path { counter-reset: fl-step; padding-top: 34px; }

.fl-pillars--path::before {
  content: '';
  grid-column: 1 / -1;
  grid-row: 1;
  align-self: start;
  margin: 0 16.66%;
  border-top: 2px dashed #c3ccbd;
}

.fl-pillars--path article { grid-row: 1; counter-increment: fl-step; padding-top: 46px; }
.fl-pillars--path article:nth-of-type(1) { grid-column: 1; }
.fl-pillars--path article:nth-of-type(2) { grid-column: 2; }
.fl-pillars--path article:nth-of-type(3) { grid-column: 3; }

.fl-pillars--path article::before {
  content: counter(fl-step);
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--fl-forest);
  color: var(--fl-gold);
  font: 1.15rem Georgia, serif;
  box-shadow: 0 0 0 6px var(--fl-paper);
}

.fl-pillars--path article:nth-of-type(3) { background: linear-gradient(180deg, #fffdf8, #f6efe1); border-color: #e2d3b6; }

/* ---------- Story ---------- */

.fl-story, .fl-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 65px; align-items: center; }

.fl-story figure { position: relative; }

.fl-story figure::before {
  content: '';
  position: absolute;
  inset: 22px -22px -22px 22px;
  border: 1px solid var(--fl-gold);
  border-radius: 28px;
  z-index: -1;
}

.fl-story img, .fl-detail img { border-radius: 26px; box-shadow: var(--fl-shadow); }
.fl-story p, .fl-detail p, .fl-teacher p { font-size: 0.9rem; }

.fl-text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  text-underline-offset: 6px;
  text-decoration-color: var(--fl-gold) !important;
  font-size: 0.84rem;
  font-weight: 500;
}

.fl-text-link:hover { color: var(--fl-accent) !important; }

/* ---------- Teachers ---------- */

.fl-teachers { display: grid; gap: 32px; }

.fl-teacher {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: center;
  padding: 48px 52px;
  background: var(--fl-card);
  border: 1px solid var(--fl-line);
  border-radius: 30px;
  box-shadow: var(--fl-shadow);
}

.fl-teacher h3 { font-size: 2.6rem; line-height: 1.2; margin: 12px 0 20px; }

.fl-teacher > img {
  width: 100%;
  max-height: 460px;
  aspect-ratio: 747 / 850;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 999px 999px 22px 22px;
  background: #31050b;
  box-shadow: 0 0 0 8px var(--fl-card), 0 0 0 9px var(--fl-gold);
}

.fl-subtitle { color: var(--fl-accent); }

.fl-teacher--long { grid-template-columns: 1fr 1fr; gap: 55px; }
.fl-teacher--long img { width: 100%; border-radius: 22px; }
.fl-teacher figcaption { font-size: 0.73rem; color: var(--fl-ink-soft); margin-top: 12px; }

/* ---------- Videos ---------- */

.fl-videos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }

.fl-video-card {
  background: var(--fl-paper);
  border: 1px solid #d4ddcf;
  border-radius: var(--fl-radius);
  overflow: hidden;
  box-shadow: var(--fl-shadow);
}

.fl-video-frame { position: relative; aspect-ratio: var(--video-ratio, 16/9); background: #182b25; }
.fl-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.fl-video-copy { padding: 26px; }
.fl-video-copy h3 { font-size: 1.6rem; line-height: 1.3; }
.fl-video-copy > p:not(.fl-eyebrow) { font-size: 0.83rem; margin-top: 15px; }
.fl-video-copy .fl-eyebrow { font-size: 0.68rem; letter-spacing: 0.12em; }
.fl-media-note { max-width: none !important; font-size: 0.75rem; margin: 24px 0 0; color: var(--fl-ink-soft); }

/* ---------- Gallery: arched frames, every other one stepped down ---------- */

.fl-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; align-items: start; }
.fl-gallery figure:nth-child(even) { margin-top: 48px; }

.fl-gallery img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 999px 999px 18px 18px;
  box-shadow: var(--fl-shadow);
  transition: transform 0.35s ease;
}

.fl-gallery figure:hover img { transform: translateY(-6px); }

.fl-gallery figcaption {
  font: italic 0.95rem/1.5 Georgia, serif;
  margin-top: 16px;
  text-align: center;
  color: var(--fl-ink-soft);
}

.fl-gallery-footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
  margin-top: 40px;
  padding: 24px 30px;
  border-radius: 999px;
  background: var(--fl-sage);
}

.fl-gallery-footer p { font-size: 0.85rem; margin: 0; }
.fl-gallery-footer a { flex-shrink: 0; margin-top: 0; }

/* ---------- Locations ---------- */

.fl-locations { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.fl-locations article { padding: 28px 24px 24px; }

.fl-locations article::after {
  content: '';
  position: absolute;
  top: 24px;
  right: 22px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--fl-sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23273d37' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") no-repeat center;
}

.fl-locations span { font-size: 1rem; padding-right: 40px; display: block; }
.fl-locations h3 { font-size: 1.45rem; margin: 12px 0 10px; }
.fl-locations p { font-size: 0.82rem; }

/* ---------- FAQ ---------- */

.fl-faq { max-width: 900px; display: grid; gap: 12px; }

/* Desktop: heading beside the questions instead of a half-empty row */
@media (min-width: 992px) {
  .fl-section--faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
  .fl-section--faq .fl-heading { position: sticky; top: 110px; margin-bottom: 0; }
  .fl-section--faq .fl-faq { max-width: none; }
}

.fl-faq details {
  padding: 0;
  background: var(--fl-card);
  border: 1px solid var(--fl-line);
  border-radius: 18px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.fl-faq details[open] { border-color: #cbbf9f; box-shadow: var(--fl-shadow); }

.fl-faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 26px;
  font-size: 1rem;
  font-weight: 500;
}

.fl-faq summary::-webkit-details-marker { display: none; }

.fl-faq summary::after {
  content: '+';
  flex: 0 0 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--fl-sage);
  font: 1.3rem/1 Georgia, serif;
  color: var(--fl-accent);
  transition: transform 0.25s ease;
}

.fl-faq details[open] summary::after { transform: rotate(45deg); }
.fl-faq p { margin: 0; padding: 0 26px 24px; font-size: 0.9rem; color: var(--fl-ink-soft); }

/* ---------- Closing call to action ---------- */

.fl-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 100px 0;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(216, 188, 143, 0.28), transparent 55%),
    var(--fl-forest);
  color: #f9f6ec;
}

.fl-cta .container { position: relative; }
.fl-cta p { margin-left: auto; margin-right: auto; }
.fl-cta .fl-actions { justify-content: center; }
.fl-cta .fl-eyebrow { flex-direction: column; gap: 14px; }
.fl-cta .fl-eyebrow::before { filter: brightness(2.2) saturate(0.6); }
.fl-cta em { color: var(--fl-gold); }
.fl-cta .fl-button { color: #273d37 !important; }

.fl-bamboo__nodes { stroke: var(--fl-paper); }

.fl-cta > .fl-bamboo {
  position: absolute;
  z-index: -1;
  bottom: -30px;
  height: 115%;
  width: auto;
  color: #6f8c68;
  --fl-paper: var(--fl-forest);
  opacity: 0.55;
}

.fl-cta > .fl-bamboo--left { left: 2%; }
.fl-cta > .fl-bamboo--right { right: 2%; transform: scaleX(-1); }

/* ---------- Responsive ---------- */

@media (max-width: 991px) {
  .fl-hero__grid { gap: 35px; }
  .fl-hero__image img { height: 540px; }
  .fl-hero__visual > .fl-bamboo { left: -40px; }
  .fl-story, .fl-detail, .fl-teacher { gap: 35px; }
  .fl-teacher { padding: 36px; }
  .fl-section { padding-top: 70px; padding-bottom: 70px; }
  .fl-teacher > img { max-height: 420px; }
  .fl-videos { gap: 16px; }
  .fl-video-copy { padding: 18px; }
  .fl-gallery, .fl-locations { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fl-gallery figure:nth-child(even) { margin-top: 32px; }
  .fl-gallery-footer { display: block; border-radius: 22px; }
  .fl-gallery-footer a { margin-top: 14px; }
  .fl-cta > .fl-bamboo { opacity: 0.3; }
}

@media (max-width: 767px) {
  .fl-hero { padding-top: 35px; }
  .fl-hero__grid, .fl-story, .fl-detail, .fl-teacher, .fl-pillars, .fl-pillars--pair { grid-template-columns: 1fr; }
  .fl-pillars.fl-locations { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .fl-pillars.fl-locations article { padding: 18px 14px 16px; }
  .fl-locations article::after { top: 14px; right: 12px; transform: scale(.8); transform-origin: top right; }
  .fl-locations span { font-size: .82rem; padding-right: 26px; }
  .fl-locations h3 { font-size: 1.15rem; margin: 8px 0 6px; }
  .fl-locations p { font-size: .78rem; line-height: 1.5; }
  .fl-hero__visual { max-width: 440px; width: 100%; margin: 10px auto 0; }
  .fl-hero__visual > .fl-bamboo { left: -18px; height: 70%; }
  .fl-hero__image img { height: auto; }
  .fl-hero__footer { flex-direction: column; }
  .fl-hero__copy { padding-bottom: 10px; }
  .fl-section { padding-top: 56px; padding-bottom: 56px; }
  .fl-section--sage::before { width: 150px; height: 125px; opacity: 0.4; }
  .fl-pillars { gap: 18px; }
  .fl-pillars article { padding: 26px 22px 22px; }

  /* The timeline turns vertical: dots on the left, line running down */
  .fl-pillars--path { position: relative; padding-top: 0; padding-left: 30px; }
  .fl-pillars--path::before { position: absolute; top: 40px; bottom: 40px; left: 15px; margin: 0; border-top: 0; border-left: 2px dashed #c3ccbd; }
  .fl-pillars--path article { padding-top: 26px; }
  .fl-pillars--path article:nth-of-type(n) { grid-column: 1; grid-row: auto; }
  .fl-pillars--path article::before { top: 24px; left: -30px; transform: none; width: 32px; height: 32px; font-size: 0.95rem; box-shadow: 0 0 0 5px var(--fl-paper); }

  .fl-story figure::before { inset: 14px -10px -14px 10px; }
  .fl-teacher { padding: 28px 22px; border-radius: 24px; }
  .fl-teacher > img { max-width: 320px; justify-self: center; }
  .fl-teacher h3 { font-size: 2.2rem; }
  .fl-teachers { gap: 24px; }
  .fl-teacher--long { gap: 24px; }
  /* Portrait reels swipe sideways instead of stacking three phone-height cards */
  .fl-videos { display: flex; gap: 14px; margin-inline: -16px; padding: 0 16px 6px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none; }
  .fl-videos::-webkit-scrollbar { display: none; }
  .fl-video-card { flex: 0 0 76%; scroll-snap-align: start; }
  .fl-video-copy { padding: 18px; }
  .fl-video-copy h3 { font-size: 1.25rem; }
  .fl-gallery { gap: 22px 14px; }
  .fl-gallery figcaption { font-size: 0.82rem; }
  .fl-page h1 { font-size: 3.6rem; }
  .fl-cta { padding: 64px 0; }
  .fl-cta > .fl-bamboo { opacity: 0.2; height: 80%; }
  .fl-actions { gap: 18px; }
  .fl-section-nav > div { justify-content: flex-start; gap: 4px; }
  .fl-faq summary { padding: 18px 20px; }
  .fl-faq p { padding: 0 20px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .fl-pillars article, .fl-button, .fl-gallery img, .fl-faq summary::after { transition: none; }
}
