:root {
  --teal-900: #0b3d3a;
  --teal-700: #0d6e63;
  --teal-600: #0f9488;
  --teal-500: #14b8a6;
  --teal-50: #ecfdf9;
  --coral: #f97350;
  --coral-dark: #e35a37;
  --cream: #fffaf3;
  --ink: #1e2a2a;
  --ink-soft: #4b5d5b;
  --line: #e4ded2;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 12px 30px -12px rgba(11, 61, 58, 0.25);
  --font: 'Be Vietnam Pro', system-ui, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { padding-left: 1.2em; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; margin: 0 0 0.5em; color: var(--teal-900); }
p { margin: 0 0 1em; color: var(--ink-soft); }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Topbar ---------- */
.topbar {
  background: var(--teal-900);
  color: #d9efe9;
  font-size: 0.85rem;
}
.topbar-inner {
  display: flex;
  gap: 24px;
  justify-content: flex-end;
  padding: 8px 24px;
  flex-wrap: wrap;
}
.topbar-item:hover { color: var(--coral); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 243, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  font-size: 1.6rem;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--teal-50);
  border-radius: 50%;
  border: 1px solid var(--teal-500);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 1.05rem; color: var(--teal-900); }
.brand-text small { color: var(--ink-soft); font-size: 0.75rem; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-weight: 500; color: var(--ink); }
.nav a:hover { color: var(--teal-600); }
.nav-cta {
  background: var(--coral);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--coral-dark); color: #fff !important; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--teal-900);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 10px 24px -8px rgba(249, 115, 80, 0.55); }
.btn-primary:hover { background: var(--coral-dark); }
.btn-ghost { background: transparent; border-color: var(--teal-700); color: var(--teal-700); }
.btn-ghost:hover { background: var(--teal-50); }
.btn-outline { background: transparent; border-color: var(--teal-600); color: var(--teal-700); }
.btn-outline:hover { background: var(--teal-50); }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 40px; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  background: var(--teal-50);
  color: var(--teal-700);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  margin-bottom: 20px;
}
.hero h1 .accent { color: var(--coral); }
.hero .lead { font-size: 1.05rem; max-width: 54ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 40px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
.stat strong { display: block; font-family: var(--font-display); font-size: 1.4rem; color: var(--coral); }
.stat span { font-size: 0.82rem; color: var(--ink-soft); }

.hero-media { position: relative; }
.hero-photo-wrap {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
  border: 6px solid var(--white);
}
.hero-photo { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute;
  bottom: -18px;
  left: -18px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
}
.hero-badge span { font-size: 1.5rem; }
.hero-badge strong { display: block; color: var(--teal-900); }
.hero-badge small { color: var(--ink-soft); }

/* ---------- Sections generic ---------- */
.section { padding: 88px 0; }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-eyebrow {
  display: inline-block;
  color: var(--coral);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }

/* ---------- About ---------- */
.about { background: var(--white); }
.about-inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: center;
}
.about-photo {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 3/4;
  object-fit: cover;
}
.about-copy blockquote {
  border-left: 4px solid var(--coral);
  padding: 6px 0 6px 18px;
  margin: 24px 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--teal-900);
}

/* ---------- Certs ---------- */
.certs { background: var(--white); }
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cert-item {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  text-align: left;
  font-family: var(--font);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cert-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cert-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-bottom: 1px solid var(--line); }
.cert-label { display: block; padding: 12px 14px; font-size: 0.85rem; font-weight: 600; color: var(--teal-900); }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(11, 22, 21, 0.9);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 40px 20px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(90vw, 700px); max-height: 75vh; object-fit: contain; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox-caption { color: #eef7f4; font-size: 0.9rem; text-align: center; max-width: 60ch; }
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }

/* ---------- MIDU MenaQ7 ---------- */
.midu { background: var(--teal-50); }
.midu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.phacdo-card, .evidence-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.phacdo-card h3, .evidence-card h3 { font-size: 1.15rem; margin-bottom: 12px; }
.midu-note { font-size: 0.88rem; color: var(--ink-soft); }
.phacdo-demo {
  background: var(--cream);
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 16px 0;
}
.phacdo-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
  flex-wrap: wrap;
}
.phacdo-row:last-child { border-bottom: none; }
.phacdo-row span { color: var(--ink-soft); }
.phacdo-row strong { color: var(--teal-900); }
.phacdo-row em { font-size: 0.78rem; color: var(--teal-600); font-style: normal; }
.phacdo-row.highlight strong { color: var(--coral); font-size: 1.05rem; }
.phacdo-row.highlight-up strong { color: var(--teal-600); }
.phacdo-disclaimer { font-size: 0.74rem; color: var(--ink-soft); opacity: 0.85; margin: 10px 0 18px; }
.evidence-list { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 14px; }
.evidence-list li {
  background: var(--teal-50);
  border-left: 3px solid var(--teal-500);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.evidence-list strong { display: block; color: var(--teal-900); margin-bottom: 3px; }

.phacdo-real {
  margin-top: 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.phacdo-real h3 { font-size: 1.15rem; margin-bottom: 8px; }
.phacdo-real-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 16px;
}
.phacdo-real-item {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.phacdo-real-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.phacdo-real-item img { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: top; }

/* ---------- Knowledge / Articles ---------- */
.knowledge { background: var(--cream); }
.article-grid { display: flex; flex-direction: column; gap: 14px; max-width: 860px; margin: 0 auto; }
.article-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}
.article-card[data-open="true"] { box-shadow: var(--shadow); }
.article-toggle {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  cursor: pointer;
  text-align: left;
  font-family: var(--font);
}
.article-emoji { font-size: 1.6rem; flex-shrink: 0; }
.article-title-wrap { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.article-title { font-weight: 700; color: var(--teal-900); font-size: 1.02rem; }
.article-teaser { color: var(--ink-soft); font-size: 0.88rem; }
.article-chevron {
  color: var(--coral);
  font-size: 1.1rem;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.article-card[data-open="true"] .article-chevron { transform: rotate(180deg); }
.article-body {
  max-height: 0;
  overflow: hidden;
  padding: 0 22px;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.article-card[data-open="true"] .article-body {
  max-height: 900px;
  padding: 0 22px 24px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.article-body p, .article-body ul { font-size: 0.94rem; }
.article-body li { margin-bottom: 4px; color: var(--ink-soft); }

/* ---------- Pillars ---------- */
.pillars { background: var(--teal-900); }
.pillars .section-eyebrow { color: #7ee0cf; }
.pillars .section-head h2, .pillars .section-head p { color: #eef7f4; }
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.pillar-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 26px 22px;
  color: #eef7f4;
}
.pillar-icon { font-size: 2rem; margin-bottom: 12px; }
.pillar-card h3 { color: #fff; font-size: 1.15rem; margin-bottom: 8px; }
.pillar-card p { color: #cfe6df; font-size: 0.92rem; margin: 0; }

/* ---------- Học viện MIDU ---------- */
.hocvien { background: linear-gradient(180deg, #fff8ec 0%, var(--cream) 100%); }
.hocvien-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: start;
}
.hocvien-video {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.hocvien-video video {
  width: 100%;
  border-radius: 12px;
  background: #000;
  aspect-ratio: 16/9;
}
.hocvien-video-caption { font-size: 0.85rem; color: var(--ink-soft); margin: 12px 4px 0; }
.hocvien-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.sponsor-code {
  background: linear-gradient(135deg, #fff3d6, #ffe4b8);
  border: 1px solid #f0c988;
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sponsor-code span { font-size: 0.82rem; color: #8a6417; font-weight: 600; }
.sponsor-code strong { font-family: var(--font-display); font-size: 2rem; color: #a6690a; letter-spacing: 0.04em; }
.hocvien-notes { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 10px; }
.hocvien-notes li {
  font-size: 0.85rem;
  color: var(--ink-soft);
  padding-left: 20px;
  position: relative;
}
.hocvien-notes li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal-600);
  font-weight: 700;
}

/* ---------- Contact ---------- */
.contact { background: var(--white); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--teal-50);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.contact-card:hover { transform: translateY(-2px); background: #def6ef; }
.contact-icon { font-size: 1.4rem; }
.contact-card strong { display: block; font-size: 0.9rem; color: var(--teal-900); }
.contact-card span { font-size: 0.82rem; color: var(--ink-soft); }

.contact-form {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 32px;
  box-shadow: var(--shadow);
}
.contact-form h3 { margin-bottom: 18px; }
.contact-form label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--teal-900);
  margin-bottom: 14px;
}
.req { color: var(--coral); }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--white);
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--ink);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.18);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { font-size: 0.78rem; color: var(--ink-soft); text-align: center; margin-top: 12px; }
.form-success, .form-error {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
}
.form-success { background: #e3faf1; color: var(--teal-700); }
.form-error { background: #fdeceb; color: var(--coral-dark); }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-900); color: #cfe6df; padding: 40px 0; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-footer .brand-mark { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.3); }
.site-footer .brand-text strong { color: #fff; }
.site-footer .brand-text small { color: #9fc4ba; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--coral); }
.footer-copy { width: 100%; font-size: 0.78rem; color: #7fa89d; margin: 0; text-align: center; }

/* ---------- Floating Zalo ---------- */
.float-zalo {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: var(--coral);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 10px 24px -6px rgba(249, 115, 80, 0.6);
  z-index: 60;
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(249, 115, 80, 0.5); }
  70% { box-shadow: 0 0 0 14px rgba(249, 115, 80, 0); }
  100% { box-shadow: 0 0 0 0 rgba(249, 115, 80, 0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-inner, .about-inner, .contact-inner { grid-template-columns: 1fr; }
  .about-media { order: -1; max-width: 320px; margin: 0 auto; }
  .pillar-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .midu-grid { grid-template-columns: 1fr; }
  .phacdo-real-grid { grid-template-columns: repeat(3, 1fr); }
  .hocvien-grid { grid-template-columns: 1fr; }
  .nav { position: fixed; top: 68px; left: 0; right: 0; background: var(--cream); flex-direction: column; align-items: flex-start; gap: 0; border-bottom: 1px solid var(--line); transform: translateY(-150%); transition: transform 0.25s ease; padding: 8px 24px 18px; }
  .nav.open { transform: translateY(0); }
  .nav a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-top: 10px; text-align: center; }
  .nav-toggle { display: block; }
}
@media (max-width: 640px) {
  .hero-stats { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .topbar-inner { justify-content: center; }
  .section { padding: 60px 0; }
  .cert-grid { grid-template-columns: 1fr; }
  .phacdo-real-grid { grid-template-columns: repeat(2, 1fr); }
}
