/* Mực Đỏ Tattoo Studio (xamhinh) — trang chủ theo mockup (đợt 9). Nền đen #0f0f0f + đỏ #d71920. Tiền tố md- */
:root { --c1: #d71920; --c1d: #b8121a; --c2: #1c1c1c; --ink: #ffffff; --mu: #b9b9b9; --ft: #0f0f0f; --line: #2a2a2a; --hf: "Be Vietnam Pro", Inter, sans-serif; --bf: Inter, sans-serif; --r: 4px; --rb: 3px; --b9-ib: #0f0f0f; }
html, body, #wrapper, #main { background: #0f0f0f !important; }
#header .header-main, #header .header-bg-color { background: #0f0f0f !important; }
#header #logo a { display: block; width: 236px; height: 68px; background: url("icons/logo.png") left center / contain no-repeat; font-size: 0 !important; color: transparent !important; }
#header .header-nav-main > li { margin: 0 18px; }
#header .header-nav-main > li > a { font-size: 17px; font-weight: 500; color: #fff !important; padding: 0; }
#header .header-nav-main > li > a:hover { color: #ff4a4f !important; }
#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 30px; border-radius: 3px !important; font-size: 15.5px; font-weight: 600; text-transform: none; letter-spacing: 0; }
#header .mobile-nav i, #header .icon-menu { color: #fff !important; }
.md-sec h2, .md-h2, .md-h2l { font-size: 38px; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; margin: 0; color: #fff !important; }
.md-sec .b9-all { color: #ff3b42 !important; }
.md-sec .b9-hd h2 small { font-size: 15px; font-weight: 400; font-style: italic; color: #cfcfcf; margin-left: 12px; letter-spacing: 0; }
/* hero */
.md-hero { min-height: 440px; padding: 50px 0 !important; }
.md-hero .section-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,15,15,.92) 0%, rgba(15,15,15,.55) 38%, rgba(15,15,15,0) 58%); }
.md-h1 { color: #fff !important; font-size: 66px; line-height: 1.14; font-weight: 800; letter-spacing: -.02em; margin: 0 0 18px; }
.md-hero-s { color: #e6e6e6; font-size: 22px; line-height: 1.5; margin-bottom: 30px; }
.md-btns { display: flex; gap: 22px; }
.md-btns a { min-height: 54px; padding: 0 34px; font-size: 16px; }
/* danh mục */
.md-cat-sec { padding: 30px 0 26px !important; }
.md-cat { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.md-cat a { background: #1e1e1e; border-radius: 4px; display: flex; flex-direction: column; align-items: center; padding: 12px 10px 16px; transition: background .2s; }
.md-cat a:hover { background: #2a2a2a; }
.md-cat img { width: 86%; aspect-ratio: 1; object-fit: contain; display: block; mix-blend-mode: lighten; }
.md-cat b { color: #f2f2f2; font-size: 18px; font-weight: 500; margin-top: 6px; }
/* tác phẩm */
.md-work-sec { padding: 34px 0 30px !important; }
.md-work { display: grid; grid-template-columns: 1.45fr repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, auto); gap: 12px 14px; }
.md-work figure { margin: 0; }
.md-work img { width: 100%; aspect-ratio: 278 / 296; object-fit: cover; display: block; }
.md-work figcaption { color: #e6e6e6; font-size: 17px; padding: 8px 0 0; }
.md-wb { grid-row: span 2; display: flex; flex-direction: column; }
.md-wb img { flex: 1; aspect-ratio: auto; height: 100%; min-height: 0; }
/* nghệ sĩ */
.md-art-sec { padding: 34px 0 30px !important; }
.md-art { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.md-art img { width: 100%; aspect-ratio: 414 / 344; object-fit: cover; object-position: 50% 20%; display: block; }
.md-art b { display: block; color: #fff; font-size: 19px; margin-top: 12px; font-family: var(--hf); }
.md-art span { display: block; color: #c4c4c4; font-size: 15px; margin-top: 2px; }
/* quy trình + báo giá */
.md-step-sec { padding: 30px 0 30px !important; }
.md-step { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 24px 0 30px; }
.md-step > div { position: relative; padding-right: 30px; }
.md-step em { display: block; font-style: normal; color: var(--c1); font-family: var(--hf); font-size: 58px; font-weight: 800; line-height: 1; margin-bottom: 14px; }
.md-step > div:not(:last-child)::after { content: ""; position: absolute; top: 30px; left: 110px; right: 26px; height: 1px; background: #5a5a5a; }
.md-step b { display: block; color: #fff; font-size: 21px; font-family: var(--hf); }
.md-step span { display: block; color: #bdbdbd; font-size: 15.5px; margin-top: 4px; }
.md-quote { display: flex; align-items: center; justify-content: space-between; gap: 30px; background: #1a1a1a center / cover no-repeat; border-left: 4px solid var(--c1); padding: 34px 40px; min-height: 148px; }
.md-quote b { display: block; color: #fff; font-size: 30px; font-family: var(--hf); margin-bottom: 10px; }
.md-quote span { color: #e2e2e2; font-size: 17px; }
.md-quote .b9-btn { min-height: 54px; padding: 0 34px; }
/* đào tạo */
.md-train-sec { padding: 34px 0 34px !important; }
.md-train-img img { width: 100%; height: 410px; object-fit: cover; display: block; }
.md-train-r .col-inner { padding-left: 34px; }
.md-eb { color: #e6e6e6; font-size: 15px; display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.md-eb::before { content: ""; width: 34px; height: 3px; background: var(--c1); }
.md-txt { color: #d0d0d0; font-size: 16.5px; line-height: 1.6; margin: 16px 0 20px; }
.md-chk { list-style: none; margin: 0 0 26px; padding: 0; }
.md-chk li { display: flex; align-items: center; gap: 12px; color: #fff; font-size: 16.5px; margin-bottom: 12px; }
.md-chk .b9-ic { width: 24px; height: 24px; color: var(--c1); }
.md-train-r .b9-btn { min-height: 52px; padding: 0 40px; }
/* chia sẻ */
.md-news-sec { padding: 30px 0 40px !important; }
.md-news { --gap: 16px; --po-ar: 414 / 216; }
.md-news .b9-po { background: transparent; border: 0; }
.md-news .b9-po-b { padding: 14px 0 0; }
.md-news .b9-po-t a { color: #fff; } .md-news .b9-po-t { font-size: 19px; }
.md-news .b9-po-e { color: #c4c4c4; font-size: 15px; }
.md-news .b9-more { color: #ff3b42 !important; }
/* CTA */
.md-cta-sec { padding: 40px 0 !important; }
.md-cta-t { color: #fff !important; font-size: 46px !important; }
.md-cta-s { color: #fff; font-size: 20px; margin-top: 12px; }
.md-f2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.md-form label { color: #fff !important; font-size: 14px; margin: 0 0 6px; }
.md-form input, .md-form textarea { margin-bottom: 12px; border: 0; }
.md-form textarea { height: 86px; }
.md-form-b { width: 100%; height: 50px; background: #111; color: #fff; border: 0; border-radius: 3px; font-weight: 700; font-size: 16px; margin: 4px 0 0; text-transform: none; }
.md-form .b9-form-msg { color: #fff; }
#footer .b9-ft { --ft: #0f0f0f; --ftlogo: 60px; border-top: 1px solid #222; }
.b9-ft-soc .b9-ic { --b9-ib: #0f0f0f; }
@media (min-width: 850px) and (max-width: 1199px) { .md-step em { font-size: 44px; } .md-step > div::after { display: none; } }
@media (max-width: 849px) {
  #header #logo a { width: 150px; height: 46px; background-position: center; }
  .md-sec h2, .md-h2, .md-h2l { font-size: 27px; } .md-sec .b9-hd h2 small { display: block; margin: 6px 0 0; }
  .md-hero { min-height: 0; padding: 262px 0 30px !important; }
  .md-hero .section-bg { bottom: auto; height: 250px; } .md-hero .section-bg .bg { object-position: 70% 40% !important; } .md-hero .section-bg::after { display: none; }
  .md-h1 { font-size: 34px; } .md-hero-s { font-size: 16px; } .md-btns a { flex: 1; padding: 0 12px; }
  .md-cat { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .md-cat b { font-size: 13px; text-align: center; }
  .md-work { grid-template-columns: repeat(2, minmax(0, 1fr)); } .md-wb { grid-column: 1 / -1; grid-row: auto; } .md-wb img { aspect-ratio: 4 / 5; }
  .md-art { grid-template-columns: minmax(0, 1fr); }
  .md-step { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 0; } .md-step > div::after { display: none; } .md-step em { font-size: 40px; }
  .md-quote { flex-direction: column; align-items: flex-start; padding: 24px 20px; } .md-quote b { font-size: 24px; }
  .md-train-img img { height: 240px; } .md-train-r .col-inner { padding-left: 0; padding-top: 18px; }
  .md-news { --nm: 1; }
  .md-cta-t { font-size: 28px !important; } .md-f2 { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
/* _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; }
/* ô tách lưới Astra còn mép khe trắng 1-3px -> phóng nhẹ trong khung cắt */
.md-art > div, .md-work figure { overflow: hidden; }
.md-art > div > img, .md-work figure > img { width: 104%; max-width: none; margin-left: -2%; }
.md-art b { font-size: 21px; } .md-art span { font-size: 16.5px; }
