/* ==========================================================================
   CHỦ ĐỀ 2026 — đồng bộ nhận diện với matsaigontravinh.vn
   Tệp này được nạp SAU CÙNG. Phần 1 khai báo màu/phông dùng chung và ánh xạ
   lại các biến của giao diện cũ; phần 2 là các khối mới (tiền tố msg-);
   phần 3 chỉnh các khối nội dung còn dùng lớp cũ.
   ========================================================================== */

/* ---------- 1. Biến thiết kế ---------- */
:root {
  --brand: #3189a1;
  --brand-strong: #005567;
  --brand-soft: #c8e9ef;
  --indigo: #2a2a86;
  --indigo-soft: #e6e6f5;
  --accent-red: #ce181e;
  --red-soft: #fbe4e5;
  --sky: #5bcbf5;
  --sky-50: #eaf8fd;
  --surface: #ffffff;
  --surface-100: #f4f7f9;
  --surface-200: #e9eff2;
  --line: #d5dfe4;
  --ink: #16212b;
  --ink-muted: #4f5f6b;
  --success: #16794a;
  --success-soft: #ddf2e7;
  --warning: #a1520a;
  --warning-soft: #fbecd9;
  --msg-radius-sm: 6px;
  --msg-radius-md: 10px;
  --msg-radius-lg: 16px;
  --msg-shadow-sm: 0 1px 2px rgba(22, 33, 43, .06), 0 1px 3px rgba(22, 33, 43, .08);
  --msg-shadow-md: 0 8px 24px rgba(0, 85, 103, .12);
  --msg-shadow-lg: 0 18px 48px rgba(0, 85, 103, .18);
  --msg-container: 1200px;
  --msg-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Ánh xạ biến của giao diện cũ sang bảng màu mới */
  --color-primary-900: var(--brand-strong);
  --color-primary-800: #0a6478;
  --color-primary-700: var(--brand);
  --color-primary-600: var(--brand);
  --color-primary-500: #4aa3ba;
  --color-primary-100: var(--brand-soft);
  --color-primary-050: var(--sky-50);
  --color-cyan: var(--sky);
  --color-cyan-soft: var(--sky-50);
  --color-red: var(--accent-red);
  --color-red-soft: var(--red-soft);
  --color-green: var(--success);
  --color-green-soft: var(--success-soft);
  --color-ink: var(--ink);
  --color-ink-soft: #33424e;
  --color-muted: var(--ink-muted);
  --color-line: var(--line);
  --color-canvas: var(--surface);
  --color-dark-surface: var(--brand-strong);
  --font-sans: var(--msg-font);
  --container: var(--msg-container);
  --section-space: clamp(56px, 6vw, 88px);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-sm: var(--msg-shadow-sm);
  --shadow-md: var(--msg-shadow-md);
  --shadow-lg: var(--msg-shadow-lg);
  --redesign-navy: var(--brand-strong);
  --redesign-blue: var(--brand);
  --redesign-sky: var(--sky-50);
  --redesign-green: var(--success);
  --redesign-red: var(--accent-red);
  --redesign-ink: var(--ink);
  --redesign-muted: var(--ink-muted);
  --redesign-line: var(--line);
}

html { scroll-padding-top: 150px; }

body,
body[class] {
  --font-be-vietnam-pro: var(--msg-font);
  font-family: var(--msg-font);
  font-size: 15px;
  color: var(--ink);
  background: var(--surface);
}

body :is(h1, h2, h3, h4, button, input, select, textarea) { font-family: var(--msg-font); }
:focus-visible { outline: 3px solid var(--indigo); outline-offset: 2px; }

.msg-container {
  width: min(100% - 32px, var(--msg-container));
  margin-inline: auto;
}

/* ---------- 2. Khối mới ---------- */

/* Nút */
.msg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 22px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.msg-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.msg-btn:hover { transform: translateY(-1px); }
.msg-btn-primary { background: var(--brand); color: #fff; }
.msg-btn-primary:hover { background: var(--brand-strong); }
.msg-btn-light { background: #fff; color: var(--brand-strong); }
.msg-btn-light:hover { background: var(--sky-50); }
.msg-btn-outline-light { border-color: rgba(255, 255, 255, .85); color: #fff; }
.msg-btn-outline-light:hover { background: rgba(255, 255, 255, .14); }
.msg-btn-accent { background: var(--accent-red); color: #fff; }
.msg-btn-accent:hover { background: #a91217; }

.msg-eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand);
}
.msg-eyebrow-light { color: rgba(255, 255, 255, .86); }

/* Thanh thông báo */
.msg-topbar { background: var(--indigo); color: #fff; font-size: 13px; }
.msg-topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 36px; }
.msg-topbar-notice { display: flex; align-items: center; gap: 10px; min-width: 0; margin: 0; }
.msg-topbar-notice a { overflow: hidden; color: #fff; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.msg-topbar-notice a:hover { text-decoration: underline; }
.msg-topbar-tag { flex: none; padding: 2px 10px; border-radius: 999px; background: var(--accent-red); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.msg-topbar-meta { display: flex; flex: none; gap: 24px; margin: 0; padding: 0; list-style: none; }
.msg-topbar-meta li { display: flex; align-items: center; gap: 6px; }
.msg-topbar-meta a { color: #fff; text-decoration: none; }
.msg-topbar-meta a:hover { text-decoration: underline; }
.msg-topbar-meta svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* Header + menu */
.msg-header { position: sticky; top: 0; z-index: 60; background: #fff; box-shadow: var(--msg-shadow-sm); }
.msg-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; }
.msg-brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.msg-brand img { width: 56px; height: 56px; border-radius: 50%; }
.msg-brand span { display: grid; line-height: 1.25; }
.msg-brand small { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent-red); }
.msg-brand strong { font-size: 20px; font-weight: 700; color: var(--brand-strong); }
.msg-header-actions { display: flex; align-items: center; gap: 20px; }
.msg-hotline { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.msg-hotline-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--red-soft); color: var(--accent-red); }
.msg-hotline-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.msg-hotline span:last-child { display: grid; line-height: 1.2; }
.msg-hotline small { font-size: 12px; color: var(--ink-muted); }
.msg-hotline strong { font-size: 18px; font-weight: 700; color: var(--accent-red); }
.msg-nav { background: var(--brand); }
.msg-nav-inner { display: flex; overflow-x: auto; scrollbar-width: none; }
.msg-nav-inner::-webkit-scrollbar { display: none; }
.msg-nav a { flex: none; padding: 13px 18px; color: #fff; font-size: 14px; font-weight: 600; letter-spacing: .02em; text-decoration: none; text-transform: uppercase; transition: background-color .18s ease; }
.msg-nav a:hover, .msg-nav a:focus-visible { background: var(--brand-strong); }
.msg-nav a:first-child { background: var(--brand-strong); }

/* Hero */
.msg-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 88% 10%, rgba(91, 203, 245, .28), transparent 60%),
    linear-gradient(110deg, var(--brand-strong) 0%, #0a6478 55%, var(--brand) 100%);
  color: #fff;
}
.msg-hero-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: 48px; padding-block: 56px 104px; }
.msg-hero h1 { margin: 0 0 16px; font-size: clamp(30px, 4vw, 46px); font-weight: 700; line-height: 1.18; letter-spacing: -.01em; color: #fff; }
.msg-hero h1 span { display: block; color: #bfeaf5; }
.msg-hero-lead { max-width: 560px; margin: 0 0 28px; font-size: 17px; line-height: 1.65; color: rgba(255, 255, 255, .92); }
.msg-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.msg-hero-points { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 28px 0 0; padding: 0; list-style: none; font-size: 14px; color: rgba(255, 255, 255, .9); }
.msg-hero-points li { display: flex; align-items: center; gap: 8px; }
.msg-hero-points li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: rgba(255, 255, 255, .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat; }
.msg-hero-visual { margin: 0; justify-self: end; width: min(100%, 420px); }
.msg-hero-visual img { display: block; width: 100%; height: auto; border: 6px solid rgba(255, 255, 255, .92); border-radius: 24px; box-shadow: 0 24px 60px rgba(0, 30, 40, .35); }

/* Thẻ thông tin nhanh — nổi lên trên hero như ô đặt lịch của trang chính */
.msg-quick { position: relative; z-index: 2; margin-top: -56px; }
.msg-quick-card { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: #fff; border-radius: var(--msg-radius-lg); box-shadow: var(--msg-shadow-lg); overflow: hidden; }
.msg-quick-item { display: flex; align-items: center; gap: 14px; padding: 22px 24px; color: var(--ink); text-decoration: none; transition: background-color .18s ease; }
.msg-quick-item + .msg-quick-item { border-left: 1px solid var(--line); }
a.msg-quick-item:hover { background: var(--sky-50); }
.msg-quick-icon { display: grid; flex: none; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-strong); }
.msg-quick-icon-red { background: var(--red-soft); color: var(--accent-red); }
.msg-quick-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.msg-quick-item > span:last-child { display: grid; gap: 2px; min-width: 0; }
.msg-quick-item small { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-muted); }
.msg-quick-item strong { font-size: 18px; font-weight: 700; color: var(--brand-strong); }
.msg-quick-item em { font-size: 13px; font-style: normal; color: var(--ink-muted); }

/* CTA cuối trang */
.msg-cta { background: linear-gradient(110deg, var(--indigo) 0%, var(--brand-strong) 50%, var(--brand) 100%); color: #fff; }
.msg-cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding-block: 56px; }
.msg-cta h2 { max-width: 640px; margin: 0; font-size: clamp(24px, 3vw, 32px); font-weight: 700; line-height: 1.3; color: #fff; }
.msg-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Footer */
.msg-footer { background: var(--brand-strong); color: rgba(255, 255, 255, .88); font-size: 14px; line-height: 1.7; }
.msg-footer a { color: rgba(255, 255, 255, .88); text-decoration: none; }
.msg-footer a:hover { color: #fff; text-decoration: underline; }
.msg-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr; gap: 48px; padding-block: 56px 40px; }
.msg-footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.msg-footer-brand img { width: 56px; height: 56px; border-radius: 50%; background: #fff; }
.msg-footer-brand div { display: grid; line-height: 1.3; }
.msg-footer-brand strong { font-size: 18px; color: #fff; }
.msg-footer-about p { max-width: 380px; margin: 0; }
.msg-footer-col { display: grid; align-content: start; gap: 8px; }
.msg-footer-col h2 { margin: 0 0 8px; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.msg-footer-col address { font-style: normal; }
.msg-footer-hotline { font-size: 18px; font-weight: 700; color: #fff !important; }
.msg-footer-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.msg-footer-social a { padding: 6px 14px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; font-size: 13px; font-weight: 600; }
.msg-footer-social a:hover { background: rgba(255, 255, 255, .12); text-decoration: none; }
.msg-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .16); font-size: 13px; }
.msg-footer-bottom .msg-container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 18px; }
.msg-footer-bottom p { margin: 0; }

@media (max-width: 900px) {
  .msg-topbar-meta { display: none; }
  .msg-header-inner { min-height: 68px; }
  .msg-brand img { width: 44px; height: 44px; }
  .msg-brand strong { font-size: 17px; }
  .msg-brand small { font-size: 10.5px; }
  .msg-hotline span:last-child { display: none; }
  .msg-header-actions { gap: 10px; }
  .msg-hero-inner { grid-template-columns: 1fr; gap: 32px; padding-block: 40px 92px; }
  .msg-hero-visual { justify-self: center; width: min(100%, 360px); }
  .msg-quick-card { grid-template-columns: 1fr; }
  .msg-quick-item + .msg-quick-item { border-left: 0; border-top: 1px solid var(--line); }
  .msg-footer-grid { grid-template-columns: 1fr; gap: 32px; padding-block: 40px 28px; }
  html { scroll-padding-top: 130px; }
}

@media (max-width: 520px) {
  .msg-header-cta { padding-inline: 14px; }
  .msg-header-cta svg { display: none; }
  .msg-nav a { padding: 12px 14px; font-size: 13px; }
  .msg-hero-actions .msg-btn { flex: 1 1 100%; }
  .msg-cta-actions, .msg-cta-actions .msg-btn { width: 100%; }
}

/* ---------- 3. Các khối nội dung dùng lớp cũ ---------- */
.eyebrow {
  font-family: var(--msg-font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand);
}
.eyebrow.light { color: rgba(255, 255, 255, .86); }

.button {
  border-radius: 999px;
  font-family: var(--msg-font);
  font-size: 14px;
  font-weight: 600;
}

/* Tiêu đề khối: gọn như trang chính (36px) thay cho cỡ chữ rất lớn của giao diện cũ */
main section:not(.msg-hero):not(.msg-cta) h2,
.community-activity .press-showcase h3,
.community-activity .gallery-showcase-inner > :first-child h3,
.community-activity h3:not(.album-title):not([class]) {
  font-size: clamp(26px, 3.1vw, 38px) !important;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -.01em;
}
.community-schedule h3:not([class]) { letter-spacing: -.01em; }
.community-schedule .schedule-main h3 { font-size: clamp(22px, 2.4vw, 28px); }

/* Nút nổi: giữ màu thương hiệu Zalo */
.float-zalo { background: linear-gradient(145deg, #2a8bff, #0068ff); }

/* Bỏ lớp nền trang trí cũ nếu còn trong trang phụ */
.ambient-background { display: none; }

@media (max-width: 900px) {
  /* Chừa chỗ cho thanh liên hệ cố định ở đáy màn hình điện thoại */
  .msg-footer-bottom { padding-bottom: 88px; }
}
@media (max-width: 520px) {
  .msg-brand small { display: none; }
  .msg-brand strong { white-space: nowrap; }
}

/* Trang phụ (kiến thức, chính sách) */
.content-page-hero h1 { margin-bottom: 14px; font-size: clamp(28px, 4vw, 42px); line-height: 1.2; letter-spacing: -.01em; }
