/* ==========================================================================
   Đàn bầu page — warm heritage palette with a "single string" motif
   ========================================================================== */

.db-page {
  --db-ink: #3d302a;
  --db-ink-soft: #6b5a50;
  --db-paper: #fbf7f0;
  --db-card: #fffdf9;
  --db-rose: #f3e6de;
  --db-sand: #efe2cf;
  --db-line: #e2d3c3;
  --db-accent: #8d443b;
  --db-lacquer: #6f3a31;
  --db-lacquer-deep: #4a2620;
  --db-gold: #b8864b;
  --db-radius: 20px;
  --db-shadow: 0 1px 2px rgba(61, 48, 42, 0.05), 0 18px 40px -22px rgba(61, 48, 42, 0.28);
  --db-wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='16' viewBox='0 0 120 16'%3E%3Cpath d='M0 8 Q15 0 30 8 T60 8 T90 8 T120 8' fill='none' stroke='%23b8864b' stroke-width='1.2'/%3E%3C/svg%3E");
  background: var(--db-paper);
  color: var(--db-ink);
  font: 16px/1.75 'Be Vietnam Pro', system-ui, sans-serif;
}

.db-page * { box-sizing: border-box; }
.db-page a { color: inherit !important; }
.db-page h1, .db-page h2, .db-page h3 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; color: inherit; }
.db-page h1 { font-size: clamp(2.75rem, 4.6vw, 4.75rem); line-height: 1.1; letter-spacing: -0.045em; margin: 22px 0; }
.db-page h2 { font-size: clamp(2.2rem, 3.8vw, 3.75rem); line-height: 1.15; letter-spacing: -0.03em; margin: 14px 0 22px; }
.db-page h3 { font-size: 1.55rem; line-height: 1.3; margin: 12px 0; }
.db-page em { color: var(--db-accent); font-weight: 400; }
.db-page h1, .db-page h2, .db-page h3 { text-wrap: balance; }
.db-page p { max-width: 650px; text-wrap: pretty; }
.db-page img { display: block; max-width: 100%; height: auto; }
.db-page figure { margin: 0; }
.db-page a:focus-visible, .db-page summary:focus-visible { outline: 3px solid var(--db-gold); outline-offset: 5px; }

/* Eyebrow: small caps label with a short gold string before it */
.db-page .db-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--db-accent);
}

.db-page .db-eyebrow::before {
  content: '';
  width: 26px;
  height: 1px;
  background: var(--db-gold);
}

/* Buttons */
.db-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin: 30px 0; }
.db-page .db-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid var(--db-lacquer);
  background: var(--db-lacquer);
  color: #fff8ef !important;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 12px 24px -12px rgba(111, 58, 49, 0.7);
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.db-page .db-button:hover { background: var(--db-lacquer-deep); transform: translateY(-2px); }
.db-page .db-button--ghost { background: transparent; color: var(--db-ink) !important; border-color: #cdb9a6; box-shadow: none; }
.db-page .db-button--ghost:hover { background: var(--db-card); border-color: var(--db-accent); }

.db-text-link {
  display: inline-flex;
  gap: 6px;
  margin-top: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--db-gold);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.db-page .db-text-link:hover { color: var(--db-accent) !important; border-color: var(--db-accent); }

.db-note { max-width: none !important; font-size: 0.8rem; margin-top: 26px; color: var(--db-ink-soft); }

/* ---------- Hero ---------- */
.db-hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 72px;
  background:
    radial-gradient(60% 70% at 85% 30%, rgba(184, 134, 75, 0.16), transparent 70%),
    linear-gradient(120deg, #fbf7f0, #efe3d2);
}

/* One long plucked string running behind the hero */
.db-hero__string {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  height: 16px;
  background: var(--db-wave) repeat-x center / 120px 16px;
  opacity: 0.35;
  pointer-events: none;
}

.db-hero__grid { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: 60px; align-items: center; }
.db-hero__copy > p:not(.db-eyebrow) { font-size: 1rem; max-width: 480px; }
.db-hero__copy .db-lead { font: 1.35rem/1.6 Georgia, serif !important; color: var(--db-ink); }

.db-hero__art { position: relative; }
.db-hero__art::before {
  content: '';
  position: absolute;
  inset: -14px 14px 34px -14px;
  border: 1px solid var(--db-gold);
  border-radius: 200px 200px 8px 8px;
  opacity: 0.6;
}
.db-hero__art img {
  position: relative;
  width: 100%;
  border-radius: 200px 200px 8px 8px;
  box-shadow: 0 30px 60px -30px rgba(74, 38, 32, 0.55);
}
.db-hero__art figcaption { font: italic 0.85rem/1.7 Georgia, serif; margin-top: 18px; text-align: center; color: var(--db-ink-soft); }

.db-hero__facts { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 6px; }
.db-hero__facts span {
  padding: 7px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.7);
  border: 1px solid var(--db-line);
}

/* ---------- In-page nav ---------- */
.db-nav { background: var(--db-card); border-bottom: 1px solid var(--db-line); }
.db-nav > div { display: flex; gap: 6px; overflow-x: auto; padding-top: 12px; padding-bottom: 12px; scrollbar-width: none; }
.db-nav > div::-webkit-scrollbar { display: none; }
.db-nav a {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.db-page .db-nav a:hover { background: var(--db-rose); color: var(--db-accent) !important; }

.db-divider { height: 16px; margin: 36px auto 0; max-width: 360px; background: var(--db-wave) repeat-x center / 120px 16px; opacity: 0.7; }

/* ---------- Sections ---------- */
.db-section { padding-top: 90px; padding-bottom: 90px; scroll-margin-top: 95px; }
.db-section--rose { background: var(--db-rose); }
.db-heading { max-width: 700px; margin-bottom: 44px; }
.db-heading > p:last-child { font-size: 1rem; color: var(--db-ink-soft); }

/* Courses */
.db-courses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.db-course {
  position: relative;
  padding: 36px 32px;
  background: var(--db-card);
  border: 1px solid var(--db-line);
  border-radius: var(--db-radius);
  box-shadow: var(--db-shadow);
  transition: transform 0.3s ease;
}
.db-course:hover { transform: translateY(-4px); }
.db-course--featured { background: var(--db-lacquer); border-color: var(--db-lacquer); color: #fbeee2; }
.db-course--featured .db-eyebrow, .db-course--featured .db-number { color: #f1c9a6; }
.db-course--featured li::before { background: #f1c9a6; }
.db-number { display: block; font: italic 3.2rem/1 Georgia, serif; color: var(--db-gold); margin-bottom: 22px; }
.db-course p, .db-course li { font-size: 0.93rem; }
.db-course ul { list-style: none; padding: 20px 0 0; margin: 20px 0 0; border-top: 1px solid rgba(184, 134, 75, 0.35); }
.db-course li { position: relative; padding-left: 22px; margin-bottom: 12px; }
.db-course li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 7px;
  height: 7px;
  background: var(--db-gold);
  transform: rotate(45deg);
}

/* Curriculum: lessons hang off a vertical "string" */
.db-curriculum { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 70px; align-items: start; }
.db-curriculum > div > p { font-size: 1rem; }
.db-lessons { list-style: none; counter-reset: lesson; position: relative; padding: 0; margin: 36px 0 0; }
.db-lessons::before { content: ''; position: absolute; left: 21px; top: 10px; bottom: 30px; width: 1px; background: var(--db-gold); opacity: 0.6; }
.db-lessons li { counter-increment: lesson; position: relative; padding-left: 68px; margin-bottom: 30px; }
.db-lessons li::before {
  content: counter(lesson, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--db-card);
  border: 1px solid var(--db-gold);
  font: italic 0.95rem Georgia, serif;
  color: var(--db-accent);
}
.db-lessons h3 { font-size: 1.3rem; margin: 6px 0 6px; }
.db-lessons p, .db-teacher p { font-size: 0.95rem; }

.db-repertoire {
  padding: 36px;
  background: var(--db-card);
  border: 1px solid var(--db-line);
  border-radius: var(--db-radius);
  box-shadow: var(--db-shadow);
}
.db-repertoire ul { list-style: none; padding: 0; margin: 22px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.db-repertoire li {
  padding: 8px 16px;
  font-family: Georgia, serif;
  font-size: 1rem;
  border-radius: 999px;
  background: var(--db-rose);
  border: 1px solid var(--db-line);
}
.db-repertoire li::before { content: '♪'; margin-right: 8px; color: var(--db-gold); }

/* Class story */
.db-story { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 90px; align-items: center; }
.db-portrait { position: relative; max-width: 360px; margin: auto !important; }
.db-portrait::before { content: ''; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--db-gold); border-radius: 18px; opacity: 0.6; }
.db-portrait img { position: relative; width: 100%; border-radius: 18px; box-shadow: 0 30px 60px -30px rgba(74, 38, 32, 0.55); }
.db-story p { font-size: 0.97rem; }
.db-class-options { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 30px 0; }
.db-class-options article { padding: 24px; background: var(--db-card); border: 1px solid var(--db-line); border-radius: 16px; }
.db-class-options h3 { font-size: 1.4rem; margin-top: 0; }
.db-class-options p { font-size: 0.92rem; margin-bottom: 0; }

/* Teachers */
.db-teachers { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; margin-bottom: 24px; }
.db-teacher {
  padding: 36px;
  background: var(--db-card);
  border: 1px solid var(--db-line);
  border-radius: var(--db-radius);
  box-shadow: var(--db-shadow);
}
.db-teacher h3 { font-size: 1.8rem; }
.db-teacher__specialty { color: var(--db-accent); font-weight: 600; }
.db-teacher--brief {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 220px;
  background:
    var(--db-wave) repeat-x center 38% / 120px 16px,
    linear-gradient(160deg, var(--db-lacquer), var(--db-lacquer-deep));
  border-color: var(--db-lacquer);
  color: #fbeee2;
}
.db-teacher--brief .db-eyebrow { color: #f1c9a6; }

/* Gallery */
.db-gallery { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 24px; }
.db-gallery figure:first-child { grid-row: span 2; }
.db-gallery figure { overflow: hidden; }
.db-gallery img { width: 100%; height: 250px; object-fit: cover; border-radius: 16px; transition: transform 0.6s ease; }
.db-gallery figure:first-child img { height: 560px; }
.db-gallery figure:hover img { transform: scale(1.02); }
.db-gallery figcaption { font-size: 0.85rem; margin-top: 12px; color: var(--db-ink-soft); }
.db-gallery figcaption::before { content: '— '; color: var(--db-gold); }

/* Every player sits on the same 16:9 stage, so cards line up whatever the source ratio. */
.db-listening { scroll-margin-top: 100px; padding-bottom: 50px; }
.db-listening + .db-divider { margin-top: 0; }
.db-listening + .db-divider + .db-section { padding-top: 70px; }
.db-videos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.db-video { display: flex; flex-direction: column; min-width: 0; background: var(--db-card); border: 1px solid var(--db-line); border-radius: var(--db-radius); overflow: hidden; box-shadow: var(--db-shadow); }
.db-video__stage { display: grid; place-items: center; aspect-ratio: 16 / 9; background: #1a1513; }
.db-video__frame { position: relative; height: 100%; max-width: 100%; aspect-ratio: var(--db-video-ratio, 16/9); }
.db-video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.db-video__copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 26px 28px 28px; }
.db-video__copy h3 { margin: 10px 0 8px; }
.db-video__copy p:not(.db-eyebrow) { font-size: 0.93rem; color: var(--db-ink-soft); }
.db-video__copy .db-eyebrow { font-size: 0.65rem; letter-spacing: 0.14em; }
.db-video__copy .db-text-link { margin-top: auto; }
.db-video--featured { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); align-items: stretch; margin-bottom: 28px; }
.db-video--featured .db-video__copy { justify-content: center; padding: 34px; }
.db-video--featured .db-video__copy .db-text-link { margin-top: 10px; }
.db-video--featured h3 { font-size: clamp(1.6rem, 2.4vw, 2.3rem); }

/* Student story */
.db-section--ink {
  position: relative;
  background:
    radial-gradient(50% 80% at 0% 0%, rgba(184, 134, 75, 0.18), transparent 70%),
    #3a302a;
  color: #faf2e6;
}
.db-section--ink em { color: #efbfa3; }
.db-section--ink .db-eyebrow { color: #efbfa3; }
.db-student { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: center; }
.db-student article {
  padding: 40px;
  border-radius: var(--db-radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(239, 191, 163, 0.22);
}
.db-student article p { font-size: 0.97rem; color: rgba(250, 242, 230, 0.85); }

/* Locations */
.db-locations { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.db-locations article {
  padding: 30px;
  background: var(--db-card);
  border: 1px solid var(--db-line);
  border-top: 3px solid var(--db-gold);
  border-radius: 16px;
  box-shadow: var(--db-shadow);
}
.db-locations h3 { font-size: 1.6rem; }
.db-locations p { font-size: 0.93rem; color: var(--db-ink-soft); }

/* FAQ */
.db-faq-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 60px; }
.db-faq { display: grid; gap: 12px; }
.db-faq details { background: var(--db-card); border: 1px solid var(--db-line); border-radius: 14px; padding: 0 24px; transition: box-shadow 0.25s ease; }
.db-faq details[open] { box-shadow: var(--db-shadow); }
.db-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font-size: 1rem;
  font-weight: 600;
}
.db-faq summary::-webkit-details-marker { display: none; }
.db-faq summary::after {
  content: '+';
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--db-rose);
  color: var(--db-accent);
  font-size: 1.2rem;
  font-weight: 400;
  transition: transform 0.25s ease, background 0.25s ease;
}
.db-faq details[open] summary::after { transform: rotate(45deg); background: var(--db-lacquer); color: #fff8ef; }
.db-faq p { font-size: 0.95rem; margin: 0 0 22px; color: var(--db-ink-soft); }

/* Closing CTA */
.db-cta {
  position: relative;
  overflow: hidden;
  padding: 100px 0;
  text-align: center;
  color: #fbeee2;
  background:
    var(--db-wave) repeat-x center 85% / 120px 16px,
    radial-gradient(60% 90% at 50% 0%, rgba(184, 134, 75, 0.3), transparent 70%),
    linear-gradient(160deg, var(--db-lacquer), var(--db-lacquer-deep));
}
.db-cta .db-eyebrow { color: #f1c9a6; }
.db-cta em { color: #f1c9a6; }
.db-cta p { font-size: 1rem; margin-left: auto; margin-right: auto; color: rgba(251, 238, 226, 0.85); }
.db-cta .db-actions { justify-content: center; }
.db-page .db-cta .db-button { background: #fbeee2; border-color: #fbeee2; color: var(--db-lacquer-deep) !important; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.6); }
.db-page .db-cta .db-button:hover { background: #ffffff; }
.db-page .db-cta .db-button--ghost { background: transparent; color: #fbeee2 !important; border-color: rgba(251, 238, 226, 0.45); box-shadow: none; }
.db-page .db-cta .db-button--ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: #fbeee2; }

.page-pages-dan_bau .site-header .btn-primary { background: #773f36; border-color: #773f36; }
.page-pages-dan_bau .promo-popup__dialog { background: #fbf7f0; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .db-hero__grid { gap: 36px; }
  .db-story { gap: 50px; }
  .db-course { padding: 28px 24px; }
  .db-section { padding-top: 70px; padding-bottom: 70px; }
  .db-student { gap: 36px; }
  .db-faq-grid { gap: 30px; }
  .db-video--featured { grid-template-columns: minmax(0, 1fr); }
  .db-video__copy, .db-video--featured .db-video__copy { padding: 22px 24px 24px; }
}

@media (max-width: 767px) {
  .db-hero { padding: 40px 0 48px; }
  .db-hero__grid,
  .db-courses,
  .db-story,
  .db-class-options,
  .db-student,
  .db-locations,
  .db-faq-grid,
  .db-curriculum,
  .db-teachers,
  .db-gallery,
  .db-videos { grid-template-columns: minmax(0, 1fr); }
  .db-hero__art { max-width: 550px; margin-top: 12px; }
  .db-hero__art::before { inset: -10px 10px 34px -10px; border-radius: 110px 110px 6px 6px; }
  .db-hero__art img { border-radius: 110px 110px 6px 6px; }
  .db-section { padding-top: 56px; padding-bottom: 56px; }
  .db-heading { margin-bottom: 30px; }
  .db-courses, .db-locations, .db-teachers { gap: 16px; }
  .db-curriculum, .db-story { gap: 40px; }
  .db-course, .db-repertoire, .db-teacher, .db-student article { padding: 26px 22px; }
  .db-portrait { max-width: 280px; }
  .db-gallery { gap: 20px; }
  .db-gallery figure:first-child { grid-row: auto; }
  .db-gallery img, .db-gallery figure:first-child img { height: auto; max-height: 480px; object-fit: contain; background: var(--db-sand); }
  .db-videos { gap: 20px; }
  .db-video--featured { margin-bottom: 20px; }
  .db-listening + .db-divider + .db-section { padding-top: 48px; }
  .db-student, .db-faq-grid { gap: 20px; }
  .db-faq details { padding: 0 18px; }
  .db-cta { padding: 64px 0 72px; }
  .db-actions { gap: 10px; }
}
