/* Học Viện Tư Duy Mầm Xanh (edukid) — trang chủ theo mockup (đợt 9). Navy #0b2585 + cam #ff9c14. Tiền tố mx- */
:root { --c1: #ff9c14; --c1d: #f08a00; --c2: #0b2585; --ink: #0b2585; --mu: #5a6275; --ft: #0a2a8a; --line: #ece6da; --hf: "Be Vietnam Pro", "Nunito Sans", sans-serif; --bf: "Nunito Sans", sans-serif; --r: 12px; --rb: 22px; }
#header #logo a { display: block; width: 250px; height: 72px; background: url("icons/logo.png") left center / contain no-repeat; font-size: 0 !important; color: transparent !important; }
#header .header-nav-main > li { margin: 0 17px; }
#header .header-nav-main > li > a { font-size: 15.5px; font-weight: 600; color: #0b2585 !important; padding: 0; }
#header .header-button-1 .button { background: var(--c1) !important; border-color: var(--c1) !important; color: #fff !important; min-height: 48px; line-height: 48px; padding: 0 28px; border-radius: 6px !important; font-size: 16px; font-weight: 700; text-transform: none; letter-spacing: 0; }
.mx-sec h2, .mx-h2 { font-size: 40px; line-height: 1.2; font-weight: 800; letter-spacing: -.015em; margin: 0; color: var(--c2) !important; }
.mx-c { text-align: center; }
.mx-sub { text-align: center; color: #3f4860; font-size: 17px; margin: 6px 0 0; }
.mx-sec .b9-hd p { color: #3f4860; font-size: 18.5px; }
a.mx-all { color: var(--c2) !important; font-weight: 700; font-size: 18px; text-decoration: underline; text-underline-offset: 4px; display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
/* hero */
.mx-hero { min-height: 560px; padding: 54px 0 !important; }
.mx-eb { color: var(--c1); font-weight: 700; font-size: 15px; letter-spacing: .03em; text-transform: uppercase; margin-bottom: 14px; }
.mx-h1 { font-size: 58px; line-height: 1.14; font-weight: 800; letter-spacing: -.02em; margin: 0 0 18px; color: var(--c2) !important; }
.mx-hero-s { font-size: 23px; line-height: 1.5; color: #2c3550; margin-bottom: 26px; }
.mx-age-t { font-weight: 700; color: #1a2140; font-size: 17px; margin-bottom: 12px; }
.mx-age { display: flex; gap: 14px; flex-wrap: wrap; }
.mx-age a { min-width: 160px; min-height: 56px; padding: 0 24px; border: 1.5px solid #f6c27c; border-radius: 28px; display: inline-flex; align-items: center; justify-content: center; color: #e17f00 !important; font-weight: 700; font-size: 19px; background: #fff; }
.mx-age a.on, .mx-age a:hover { background: var(--c1); border-color: var(--c1); color: #fff !important; }
/* lộ trình */
.mx-route-sec { padding: 40px 0 46px !important; }
.mx-route { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; margin-top: 26px; }
.mx-wave { position: absolute; left: 0; top: 50px; width: 100%; height: 140px; z-index: 0; }
.mx-route > div { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.mx-route > div.mx-mid { margin-top: 40px; }
.mx-route img { width: 230px; height: 230px; border-radius: 50%; object-fit: cover; border: 3px solid #fde3bd; }
.mx-route span { background: var(--c1); color: #fff; font-weight: 800; font-size: 18px; border-radius: 20px; padding: 6px 26px; margin-top: -18px; position: relative; }
.mx-route b { font-family: var(--hf); font-size: 31px; color: var(--c2); margin: 14px 0 8px; }
.mx-route p { font-size: 18.5px; color: #3f4860; margin: 0 0 12px; line-height: 1.55; }
.mx-route a { color: var(--c2) !important; font-weight: 700; font-size: 18px; display: inline-flex; gap: 6px; align-items: center; }
/* phương pháp */
.mx-meth-sec { padding: 34px 0 30px !important; }
.mx-meth { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 26px; }
.mx-meth > div { background: #fdf6ea; border-radius: 12px; padding: 26px 22px 28px; text-align: center; }
.mx-meth img { width: 96px; height: 96px; display: block; margin: 0 auto 14px; }
.mx-meth b { display: block; font-size: 22px; color: var(--c2); font-family: var(--hf); margin-bottom: 10px; }
.mx-meth span { display: block; font-size: 17.5px; color: #3f4860; line-height: 1.55; }
/* đội ngũ */
.mx-team-sec { padding: 22px 0 22px !important; }
.mx-team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.mx-team > div { background: #fdf6ea; border-radius: 12px; overflow: hidden; text-align: center; padding-bottom: 16px; }
.mx-team img { width: 100%; aspect-ratio: 322 / 322; object-fit: cover; display: block; margin-bottom: 12px; }
.mx-team b { display: block; font-size: 22.5px; color: var(--c2); font-family: var(--hf); }
.mx-team span { display: block; font-size: 17.5px; color: #3f4860; }
/* thư viện */
.mx-gal-sec { padding: 30px 0 36px !important; }
.mx-gal { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mx-gal img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 8px; }
.mx-gal-b { grid-row: span 2; aspect-ratio: 650 / 456; }
/* góc cha mẹ */
.mx-blog-sec { padding: 36px 0 36px !important; }
.mx-blog { --gap: 18px; --po-ar: 420 / 222; }
.mx-blog .b9-po { border: 0; border-radius: 12px; }
.mx-blog .b9-po-tag { background: var(--c1); border-radius: 12px; }
.mx-blog .b9-po-t { font-size: 22px; } .mx-blog .b9-po-t a { color: var(--c2); }
.mx-blog .b9-po-e { display: none; }
.mx-blog .b9-more { color: #e17f00 !important; }
/* phụ huynh */
.mx-tes-sec { padding: 36px 0 36px !important; }
.mx-tes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 20px; }
.mx-tes > div { background: #fdf6ea; border-radius: 12px; padding: 22px 24px; display: flex; gap: 14px; }
.mx-tes > div > .b9-ic { width: 40px; height: 40px; color: var(--c1); flex: none; }
.mx-tes p { font-size: 16.5px; color: #2c3550; margin: 0 0 14px; line-height: 1.55; }
.mx-who { display: flex; align-items: center; gap: 12px; } .mx-who img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; } .mx-who b { font-size: 16px; color: var(--c2); }
/* CTA */
.mx-cta-sec { min-height: 400px; padding: 40px 0 !important; }
.mx-cta-t { color: #fff !important; font-size: 46px !important; line-height: 1.2; }
.mx-cta-s { color: #fff; font-size: 22px; margin-top: 16px; }
.mx-form { background: #fff; border-radius: 12px; padding: 24px 26px; max-width: 450px; margin-left: auto; }
.mx-form-t { font-family: var(--hf); font-size: 22px; font-weight: 800; color: var(--c2); margin-bottom: 14px; }
.mx-ip { position: relative; margin-bottom: 12px; }
.mx-ip .b9-ic { position: absolute; left: 14px; top: 14px; width: 18px; height: 18px; color: #555; }
.mx-ip input, .mx-ip select { padding-left: 42px !important; height: 48px !important; }
.mx-form-b { width: 100%; height: 52px; background: var(--c1); color: #fff; border: 0; border-radius: 8px; font-weight: 800; font-size: 17px; margin: 4px 0 0; text-transform: none; }
.mx-form .b9-form-msg { color: #333; }
#footer .b9-ft { --ft: #0a2a8a; --ftlogo: 60px; }
.b9-ft-soc .b9-ic { --b9-ib: #0a2a8a; }
@media (min-width: 850px) and (max-width: 1199px) { .mx-route img { width: 180px; height: 180px; } .mx-route b { font-size: 22px; } }
@media (max-width: 849px) {
  #header #logo a { width: 160px; height: 48px; background-position: center; }
  .mx-sec h2, .mx-h2 { font-size: 28px; }
  .mx-hero { min-height: 0; padding: 262px 0 30px !important; background-color: #fdf6ea !important; }
  .mx-hero .section-bg { bottom: auto; height: 250px; } .mx-hero .section-bg .bg { object-position: 75% 40% !important; }
  .mx-h1 { font-size: 32px; } .mx-h1 br, .mx-hero-s br { display: none; } .mx-hero-s { font-size: 17px; } .mx-age a { min-width: 0; flex: 1; font-size: 15px; padding: 0 10px; }
  .mx-route { grid-template-columns: minmax(0, 1fr); gap: 26px; } .mx-wave { display: none; } .mx-route > div.mx-mid { margin-top: 0; } .mx-route img { width: 180px; height: 180px; } .mx-route p br { display: none; }
  .mx-meth { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .mx-meth > div { padding: 16px 12px; } .mx-meth img { width: 56px; height: 56px; } .mx-meth b { font-size: 16px; } .mx-meth span { font-size: 14px; }
  .mx-team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .mx-team b { font-size: 16px; }
  .mx-gal { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; } .mx-gal-b { grid-column: 1 / -1; grid-row: auto; } .mx-gal img:not(.mx-gal-b) { aspect-ratio: 4 / 3; }
  .mx-blog { --nm: 1; } .mx-tes { grid-template-columns: minmax(0, 1fr); }
  .mx-cta-sec { padding: 262px 0 30px !important; } .mx-cta-sec .section-bg { bottom: auto; height: 250px; } .mx-cta-t { font-size: 30px !important; } .mx-cta-t br, .mx-cta-s br { display: none; } .mx-cta-s { font-size: 17px; } .mx-form { margin: 18px 0 0; max-width: none; }
}
/* _midwidth: header Flatsome ở 850-1399px (laptop nhỏ/tablet ngang) — menu dựng theo mockup 1440 tràn phải; dùng chung mọi site */
@media (min-width: 850px) and (max-width: 1399px) {
  #header .header-nav-main > li, #header .header-bottom-nav > li { margin-left: 6px !important; margin-right: 6px !important; }
  #header .header-nav-main > li > a, #header .header-bottom-nav > li > a { font-size: 14px !important; }
  #header .header-search-form { max-width: 300px !important; width: 300px !important; margin-left: 20px !important; }
}
@media (min-width: 850px) and (max-width: 1199px) {
  #logo { width: auto !important; max-width: 210px !important; } #logo a { font-size: 21px !important; }
  #header .header-main .flex-right .header-button-1, #header .header-main .flex-right li.html, #header .header-search-form, #top-bar .flex-right { display: none !important; }
  #header .header-nav-main > li, #header .header-bottom-nav > li { margin-left: 3px !important; margin-right: 3px !important; }
  #header .header-nav-main > li > a, #header .header-bottom-nav > li > a { font-size: 13px !important; }
  #header .flex-col { min-width: 0; } #header .header-inner, #header .header-bottom .container { overflow: hidden; }
}
.col-inner a[href^="mailto"], .col-inner a[href^="tel"] { overflow-wrap: anywhere; }
