/* ============================================================
   IMV Homepage — layout flex/grid responsive
   Tông màu + illustration lấy từ bản thiết kế WEB3 (Figma export),
   nhưng dựng lại bằng flexbox/grid semantic để chạy responsive
   trong WordPress (không dùng position:absolute tọa độ cứng).
   ============================================================ */

.imv-home * { box-sizing: border-box; }

.imv-home {
  --imv-blue: #0062e7;
  --imv-blue-dark: #0255af;
  --imv-navy: #053b6d;
  --imv-red: #eb1f3c;
  --imv-orange: #ed740d;
  --imv-green: #22a06b;
  --imv-text: #1f2430;
  --imv-muted: #83849f;
  --imv-line: #eaeaea;
  --imv-bg: #ffffff;
  --imv-card: #ffffff;
  --imv-radius: 16px;
  --imv-shadow: 0 2px 8px rgba(16,24,40,.06), 0 8px 24px rgba(16,24,40,.06);
  /* Hệ lưới thống nhất để mọi hàng thẳng trục: cột phải ngoài cùng (rail) + cột giữa. */
  --imv-gap: 20px;
  --imv-rail: 340px;   /* cột phải: Quick Access / Upcoming list / Quick Announcements */
  --imv-mid: 300px;    /* cột giữa: Upcoming Events (số liệu) */
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  color: var(--imv-text);
  background: var(--imv-bg);
  font-size: 14px;
  line-height: 1.5;
}

body.imv-body, body.imv-homepage-body { margin: 0; background: var(--imv-bg); }

.imv-home a { text-decoration: none; color: inherit; }

/* Nếu trang chủ nhúng bằng shortcode [imv_homepage] trong 1 trang Flatsome,
   nội dung bị bọc trong .container/.page-wrapper (~1030px) của theme. Ép các
   wrapper đó full-width để .imv-container 1440px hiển thị đúng. Chỉ ảnh hưởng
   khi bên trong có .imv-home nên không đụng trang khác. */
.page-wrapper:has(.imv-home),
.page-wrapper:has(.imv-home) #content,
#content:has(.imv-home),
.entry-content:has(.imv-home),
.container:has(> .imv-home),
.row:has(> .col .imv-home),
.col:has(.imv-home) {
  max-width: none !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  flex-basis: 100% !important;
}
/* Ép wrapper của .imv-home full-width, thoát giới hạn "Site Width" Flatsome */
#imv-homepage-wrap, .imv-home {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
}
.imv-container {
  max-width: 1440px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 20px 24px 60px !important;
  box-sizing: border-box;
}

/* ---------- Hàng đầu: 3 cột (Featured | Birthdays+Members | Quick Access) ---------- */
.imv-toprow {
  display: grid;
  /* Trục dọc thống nhất với các hàng dưới: cột giữa = mid, cột phải = rail. */
  grid-template-columns: minmax(0, 1fr) var(--imv-mid) var(--imv-rail);
  /* Welcome ở hàng trên (cột 1-2); Quick Access span cả 2 hàng (cột 3) nên CAO HƠN.
     Featured, Birthday+Members, Quick Access đều kết thúc ở đáy hàng 2 → đáy NGANG NHAU. */
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "welcome  welcome  qa"
    "featured side     qa";
  gap: 16px var(--imv-gap);
  align-items: stretch;
  margin-bottom: 20px;
}
.imv-top-welcome { grid-area: welcome; margin-bottom: 0; align-self: center; }
.imv-top-col1 { grid-area: featured; }
.imv-top-col2 { grid-area: side; }
.imv-top-col3 { grid-area: qa; }
.imv-toprow > .imv-top-col1,
.imv-toprow > .imv-top-col2,
.imv-toprow > .imv-top-col3 { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
/* Featured giãn full chiều cao hàng 2 (min-height nhỏ để stretch quyết định) */
.imv-top-col1 > .imv-featured { flex: 1; min-height: 300px; }
/* New Members giãn xuống lấp đáy */
.imv-top-col2 > .imv-card:last-child { flex: 1; }
/* Quick Access giãn full chiều cao (span 2 hàng) */
.imv-top-col3 > .imv-card { flex: 1; }

/* ---------- Các hàng dưới: dùng CÙNG hệ 3 cột với hàng Hot News ----------
   main (Life/Recognition/Project) trải CỘT 1 + 2 → lề trái = Hot News,
   lề phải = mép phải ô Upcoming Events (số liệu, cột giữa). Side (Quick
   Announcements/Quote) ở cột rail ngoài cùng, thẳng với Upcoming list + Quick Access. */
.imv-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--imv-mid) var(--imv-rail);
  gap: var(--imv-gap);
  align-items: start;
}
.imv-col-main { grid-column: 1 / 3; }     /* phủ cột 1 (Hot News) + cột 2 (Upcoming stats) */
.imv-col-side { grid-column: 3; }         /* rail ngoài cùng */
.imv-col-main, .imv-col-side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

/* ---------- Card base: nền trắng, CHỈ ĐỔ BÓNG (không viền) ---------- */
.imv-card {
  background: var(--imv-card);
  border-radius: var(--imv-radius);
  box-shadow: var(--imv-shadow);
  padding: 18px;
}
.imv-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.imv-card-head h3, .imv-card-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}
.imv-head-ic { width: 18px; height: 20px; object-fit: contain; }
.imv-viewall {
  font-size: 12.5px;
  font-weight: 700;
  color: #0062e7 !important;
}
.imv-viewall:hover { text-decoration: underline; }
.imv-section-title { margin: 0 0 14px; font-size: 17px; font-weight: 800; display:flex; align-items:center; gap:8px; }

/* ---------- Welcome: không nền/viền, chỉ text ---------- */
.imv-welcome { margin-bottom: 20px; }
.imv-welcome h2 { margin: 0 0 6px; font-size: 24px; font-weight: 800; }
.imv-welcome h2 .imv-hl { color: var(--imv-blue); }
.imv-welcome p { margin: 0; color: var(--imv-muted); font-weight: 600; }
.imv-welcome p .imv-hl { color: var(--imv-blue); }

/* ---------- Featured Event banner ---------- */
.imv-featured {
  position: relative;
  border-radius: var(--imv-radius);
  overflow: hidden;
  min-height: 356px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: linear-gradient(135deg, #0a3a86, #0062e7);
}
.imv-featured__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  z-index: 0;
}
.imv-featured::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(6,26,66,.94) 0%, rgba(6,26,66,.82) 42%, rgba(6,26,66,.25) 100%);
}
.imv-featured__body { position: relative; z-index: 2; padding: 30px 34px; max-width: 620px; }
.imv-badge-featured {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--imv-blue); color: #fff;
  font-size: 11px; font-weight: 800; letter-spacing: .4px;
  padding: 6px 14px; border-radius: 20px; margin-bottom: 16px;
}
.imv-badge-featured svg { width: 13px; height: 13px; }
.imv-featured__title { margin: 0 0 6px; font-size: 30px; font-weight: 800; line-height: 1.15; }
.imv-featured__tagline { margin: 0 0 18px; font-size: 15px; color: #cfe0ff; }
.imv-featured__meta { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.imv-featured__meta li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: #eaf1ff; }
.imv-featured__meta .imv-ic { width: 26px; height: 26px; border-radius: 7px; background: rgba(255,255,255,.16); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.imv-featured__meta .imv-ic svg { width: 14px; height: 14px; }
.imv-featured__btn,
.imv-featured .imv-featured__btn {
  display: inline-block; background: #fff !important; color: var(--imv-blue) !important;
  font-weight: 700; font-size: 14px; padding: 11px 26px; border-radius: 10px;
  border: none; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease;
  text-decoration: none;
}
.imv-featured__btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.2); color: var(--imv-blue-dark) !important; background: #fff !important; }

/* ---------- Card grids (news / life / recognition-row) ---------- */
.imv-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.imv-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.imv-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

/* News card — chỉ đổ bóng, không viền */
.imv-post {
  display: flex; flex-direction: column;
  border-radius: 12px; overflow: hidden; background: #fff;
  box-shadow: 0 1px 4px rgba(16,24,40,.06), 0 4px 12px rgba(16,24,40,.05);
  transition: transform .2s ease, box-shadow .2s ease;
  height: 100%;
}
.imv-post:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(16,24,40,.12); }
.imv-post__thumb { position: relative; aspect-ratio: 16/9; background: #e9edf3 center/cover no-repeat; }
.imv-post__thumb--tall { aspect-ratio: 4/3; }
.imv-post__badge {
  position: absolute; top: 10px; left: 10px;
  font-size: 10px; font-weight: 800; letter-spacing: .3px;
  padding: 3px 9px; border-radius: 6px; color: #fff; background: var(--imv-red);
}
.imv-post__badge--event { background: var(--imv-green); }
.imv-post__badge--new { background: var(--imv-blue); }
.imv-post__body { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.imv-post__title { margin: 0; font-size: 14px; font-weight: 700; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.imv-post__excerpt { margin: 0; font-size: 12.5px; color: var(--imv-muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.imv-post__meta { margin-top: auto; display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--imv-muted); }
.imv-post__meta span { display: inline-flex; align-items: center; gap: 4px; }

/* ---------- List card (Recognition / AI / Learning) ---------- */
.imv-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.imv-list li { padding: 12px 0; border-bottom: 1px solid var(--imv-line); }
.imv-list li:last-child { border-bottom: none; padding-bottom: 0; }
.imv-list li:first-child { padding-top: 0; }
.imv-list a { display: flex; gap: 12px; align-items: flex-start; }
.imv-list__ic { width: 38px; height: 38px; border-radius: 9px; flex-shrink: 0; background: #eef3ff center/22px no-repeat; display:flex; align-items:center; justify-content:center; font-size:18px; }
.imv-list__ic img { width: 38px; height: 38px; object-fit: cover; border-radius: 9px; }
.imv-list__ic svg { width: 26px; height: 26px; display: block; }
.imv-list__tx strong { display: block; font-size: 13.5px; font-weight: 700;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.imv-list__tx span { font-size: 12px; color: var(--imv-muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Hàng 3 ô: Hot News | Upcoming Events (số liệu) | Upcoming Events (danh sách) ---------- */
/* Full-width 3 cột, các ô cao BẰNG NHAU (align-items: stretch mặc định của grid). */
.imv-hotnews-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--imv-mid) var(--imv-rail);
  gap: var(--imv-gap);
  align-items: stretch;
  margin-bottom: 20px;
}
/* Cột 1: Hot News — head + 2 thẻ, chiếm hết chiều cao để bằng 2 cột kia */
.imv-hotnews-col { display: flex; flex-direction: column; }
/* 2 thẻ Hot News: mỗi thẻ ~311px, ảnh cao 160px; giãn để lấp đầy chiều cao cột */
.imv-hotnews-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; flex: 1; }
.imv-hotnews-cards .imv-post { height: 100%; }
.imv-hotnews-cards .imv-post__thumb { aspect-ratio: auto; height: 160px; flex-shrink: 0; }

/* Đưa tiêu đề "Upcoming Events" (trong card có padding) ngang hàng với "Hot News"
   (nằm ngoài card, không padding): bù đúng phần padding-top của card. */
.imv-hotnews-col .imv-card-head { padding: 16px 2px 0; margin-bottom: 14px; }

/* Cột giữa: card Upcoming Events (301x343) — 3 hàng */
.imv-stats-card {
  padding: 16px;
  display: flex;
  flex-direction: column;
}
.imv-stats-rows { display: flex; flex-direction: column; gap: 10px; flex: 1; }
/* Mỗi hàng con */
.imv-stat {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 14px 16px; border-radius: 12px;
  min-height: 74px;
}
.imv-stat--event    { background: #ffffff; box-shadow: 0 1px 4px rgba(16,24,40,.05), 0 4px 12px rgba(16,24,40,.04); }
.imv-stat--announce { background: #E5EEFC; }
.imv-stat__text strong { display: block; font-size: 28px; font-weight: 800; line-height: 1; color: var(--imv-text); }
.imv-stat__text span   { font-size: 13px; font-weight: 600; color: var(--imv-muted); }
.imv-stat__ic { width: 44px; height: 44px; object-fit: contain; flex-shrink: 0; }

/* Hàng 3: bài nổi bật */
.imv-stat--spot {
  display: block; background: #fff; padding: 12px 16px 14px;
  box-shadow: 0 1px 4px rgba(16,24,40,.05), 0 4px 12px rgba(16,24,40,.04);
  transition: transform .15s ease, box-shadow .2s ease;
}
.imv-stat--spot:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(16,24,40,.1); }
.imv-stat__spot-title {
  margin: 0 0 8px; font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--imv-text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.imv-stat__spot-meta { display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--imv-muted); }
.imv-stat__spot-meta span { display: inline-flex; align-items: center; gap: 4px; }

/* ---------- Carousel (Project Highlight) ---------- */
.imv-carousel-wrap { position: relative; background: #F7F8FB; border-radius: var(--imv-radius); padding: 20px 44px; }
.imv-carousel { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 2px; }
.imv-carousel::-webkit-scrollbar { display: none; }
.imv-carousel > * { flex: 0 0 calc(25% - 12px); min-width: 220px; scroll-snap-align: start; }
.imv-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%; border: none;
  background: #fff; color: #1f2430; font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; z-index: 5;
  box-shadow: 0 2px 10px rgba(16,24,40,.15);
  transition: background .15s ease, color .15s ease;
}
.imv-arrow--prev { left: 6px; }
.imv-arrow--next { right: 6px; }
.imv-arrow:hover { background: var(--imv-blue); color: #fff; }

/* ---------- Sidebar: Birthdays ---------- */
/* Birthdays: card có confetti trang trí góc (như demo) */
.imv-card--birthday { position: relative; overflow: hidden; }
.imv-card--birthday .imv-card-head { position: relative; z-index: 2; }
.imv-card--birthday::before,
.imv-card--birthday::after {
  content: ""; position: absolute; pointer-events: none; z-index: 1;
  background-repeat: no-repeat;
}
/* Confetti góc phải-trên */
.imv-card--birthday::before {
  top: 6px; right: 8px; width: 120px; height: 60px;
  background-image:
    radial-gradient(circle, #ffca28 2.5px, transparent 3px),
    radial-gradient(circle, #e43b3f 2px, transparent 2.5px),
    radial-gradient(circle, #00b69c 2px, transparent 2.5px),
    radial-gradient(circle, #4f7cff 2px, transparent 2.5px);
  background-position: 10px 8px, 40px 2px, 70px 14px, 95px 4px;
  background-size: 20px 20px, 20px 20px, 20px 20px, 20px 20px;
  opacity: .9;
}
/* Confetti góc trái */
.imv-card--birthday::after {
  top: 40px; left: 10px; width: 60px; height: 40px;
  background-image:
    radial-gradient(circle, #ffe94d 2px, transparent 2.5px),
    radial-gradient(circle, #ec4899 2px, transparent 2.5px);
  background-position: 4px 6px, 26px 18px;
  background-size: 22px 22px, 22px 22px;
  opacity: .8;
}

.imv-avatars { display: flex; gap: 8px; position: relative; z-index: 2; }
.imv-avatars .imv-person { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.imv-person__ava {
  width: 60px; height: 60px; border-radius: 50%; object-fit: cover;
  background: #eef0f4; border: 2px solid #fff; box-shadow: 0 0 0 1px #eaeaea;
}
.imv-person__name { font-size: 12px; font-weight: 600; color: var(--imv-text); line-height:1.2; }

/* New members */
.imv-members { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.imv-members li { display: flex; align-items: center; gap: 12px; }
.imv-members img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: #eef0f4; box-shadow: 0 0 0 1px #eaeaea; flex-shrink: 0; }
.imv-members strong { display: block; font-size: 13.5px; font-weight: 700; }
.imv-members span { font-size: 12px; color: var(--imv-muted); }

/* Upcoming events sidebar (nền #F7F8FB, 301px) */
.imv-card--events { background: #F7F8FB; }
.imv-events { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.imv-events li { display: flex; gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px solid #E8E8E8; }
.imv-events li:last-child { border-bottom: none; padding-bottom: 0; }
.imv-events li:first-child { padding-top: 0; }
.imv-events__ic { width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0; overflow: hidden; background: #eef3ff; }
.imv-events__ic img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.imv-events__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.imv-events strong { display: block; font-size: 14px; font-weight: 700; color: var(--imv-text); }
.imv-events__when { font-size: 12px; color: var(--imv-muted); }
.imv-events__loc { font-size: 12px; color: var(--imv-muted); }

/* Quick announcements */
.imv-announce { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.imv-announce li { padding: 12px 0; border-bottom: 1px solid var(--imv-line); }
.imv-announce li:last-child { border-bottom: none; padding-bottom: 0; }
.imv-announce li:first-child { padding-top: 0; }
.imv-announce__tag { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .3px; margin-bottom: 6px; }
.imv-announce__ic { display: inline-flex; flex-shrink: 0; }
.imv-announce__ic svg { width: 18px; height: 18px; display: block; }
.imv-announce--important .imv-announce__tag { color: var(--imv-red); }
.imv-announce--reminder .imv-announce__tag { color: var(--imv-orange); }
/* Announcement: label dạng pill nền xanh nhạt (như thiết kế) */
.imv-announce--announcement .imv-announce__tag {
  color: var(--imv-blue); background: #E5EEFC;
  padding: 3px 10px; border-radius: 20px;
}
.imv-announce__title { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 3px; color: var(--imv-text); }
.imv-announce__due { font-size: 12px; color: var(--imv-muted); }

/* Quick access grid (icons) */
/* Card Quick Access: nền xám nhạt #F7F8FB, các ô con màu trắng (như demo) */
.imv-card--qa { background: #f7f8fb; display: flex; flex-direction: column; }
.imv-quickaccess { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; flex: 1; align-content: stretch; }
.imv-qa {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 6px; border-radius: 12px; background: #fff; text-align: center;
  border: 1px solid var(--imv-line);
  transition: transform .15s ease, box-shadow .15s ease;
}
.imv-qa:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(16,24,40,.08); }
.imv-qa__ic { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.imv-qa__ic img { width: 32px; height: 32px; object-fit: contain; }
.imv-qa__ic svg { width: 28px; height: 28px; }
.imv-qa__label { font-size: 11.5px; font-weight: 600; color: var(--imv-text); line-height: 1.25; }

/* Survey / Poll */
.imv-poll { background: #F7F8FB; }
.imv-poll__q { margin: 0 0 14px; font-size: 15px; font-weight: 800; line-height: 1.35; color: var(--imv-text); }
.imv-poll__opt { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.imv-poll__opt input { width: 17px; height: 17px; accent-color: var(--imv-blue); flex-shrink: 0; }
.imv-poll__actions { display: flex; align-items: center; gap: 18px; margin-top: 14px; }
.imv-poll__submit { background: var(--imv-blue); color: #fff; border: none; font-weight: 700; font-size: 13px; padding: 10px 24px; border-radius: 8px; cursor: pointer; transition: background .15s ease; }
.imv-poll__submit:hover { background: var(--imv-blue-dark); }
.imv-poll__submit:disabled { opacity: .6; cursor: default; }
.imv-poll__viewresults, .imv-poll__revote { font-size: 12.5px; font-weight: 700; color: var(--imv-blue); cursor: pointer; }
.imv-poll__viewresults:hover, .imv-poll__revote:hover { text-decoration: underline; }
/* Kết quả */
.imv-poll__results { display: flex; flex-direction: column; gap: 12px; }
.imv-poll__bar-row { display: flex; flex-direction: column; gap: 5px; }
.imv-poll__bar-top { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; color: var(--imv-text); }
.imv-poll__bar-top b { color: var(--imv-blue); font-weight: 800; }
.imv-poll__bar { height: 8px; border-radius: 5px; background: #eef1f6; overflow: hidden; }
.imv-poll__bar span { display: block; height: 100%; border-radius: 5px; background: var(--imv-blue); transition: width .4s ease; }
.imv-poll__total { font-size: 12px; color: var(--imv-muted); margin-top: 2px; }
.imv-poll__revote { align-self: flex-start; margin-top: 2px; }

/* Quote / Slogan */
.imv-quote {
  position: relative;
  background: #eef4ff;
  border-radius: var(--imv-radius);
  padding: 26px 28px;
  min-height: 190px;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
}
.imv-quote__mark { width: 28px; margin-bottom: 14px; }
.imv-quote p { margin: 0; font-size: 18px; font-weight: 700; color: var(--imv-blue); line-height: 1.5; }
.imv-quote__author { margin-top: 16px; font-size: 13.5px; font-weight: 700; color: var(--imv-navy); }
.imv-quote__logo { position: absolute; right: 24px; bottom: 22px; width: 52px; height: auto; }

/* ---------- Single post (chi tiết bài viết) ---------- */
.imv-single { max-width: 820px; margin: 0 auto; padding: 24px 0 40px; }
.imv-single__cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.imv-single__cats a { font-size: 12px; font-weight: 700; color: var(--imv-blue); background: #E5EEFC; padding: 4px 12px; border-radius: 20px; }
.imv-single__title { margin: 0 0 12px; font-size: 32px; font-weight: 800; line-height: 1.2; color: var(--imv-text); }
.imv-single__meta { display: flex; align-items: center; gap: 18px; font-size: 13px; color: var(--imv-muted); margin-bottom: 22px; }
.imv-single__thumb { border-radius: var(--imv-radius); overflow: hidden; margin-bottom: 24px; }
.imv-single__thumb img { width: 100%; height: auto; display: block; }
.imv-single__content { font-size: 16px; line-height: 1.75; color: #2b3240; }
.imv-single__content p { margin: 0 0 18px; }
.imv-single__content img { max-width: 100%; height: auto; border-radius: 10px; }
.imv-single__content h2, .imv-single__content h3 { margin: 28px 0 12px; font-weight: 800; color: var(--imv-text); }
.imv-single__actions { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--imv-line); }

/* Nút thích */
.imv-like {
  display: inline-flex; align-items: center; gap: 9px;
  background: #fff; border: 1.5px solid var(--imv-line); border-radius: 24px;
  padding: 9px 20px; font-size: 14px; font-weight: 700; color: var(--imv-text);
  cursor: pointer; transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.imv-like:hover { border-color: var(--imv-red); color: var(--imv-red); }
.imv-like__ic { fill: none; stroke: currentColor; stroke-width: 2; transition: fill .15s ease, stroke .15s ease; }
.imv-like__count { color: var(--imv-muted); font-weight: 700; }
.imv-like.is-liked { border-color: var(--imv-red); color: var(--imv-red); background: #fff1f3; }
.imv-like.is-liked .imv-like__ic { fill: var(--imv-red); stroke: var(--imv-red); }
.imv-like.is-liked .imv-like__count { color: var(--imv-red); }
.imv-like:disabled { opacity: .6; cursor: default; }

/* Empty state */
.imv-empty { color: var(--imv-muted); font-size: 13px; padding: 20px 0; text-align: center; }
.imv-empty-card { padding: 30px 20px; text-align: center; color: var(--imv-muted); font-size: 13px; }

/* Footer */
.imv-footer { background: var(--imv-blue); color: #fff; text-align: center; padding: 16px; margin-top: 20px; }
.imv-footer b { font-weight: 600; font-size: 13px; }

/* ============================================================
   HEADER (thanh phẳng full-width, nền trắng, 3 cột — theo demo WEB3)
   ============================================================ */
.imv-header {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid var(--imv-line);
  position: sticky; top: 0; z-index: 100;
  /* Dùng CÙNG font với toàn site (Inter), không để theme cha/serif ghi đè */
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
}
/* Ép mọi phần tử CON của header dùng đúng font header (thắng serif của theme cha) */
.imv-header * { font-family: inherit !important; }
/* Bỏ gạch chân mặc định của link trong header */
.imv-header a { text-decoration: none; }
body.admin-bar .imv-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .imv-header { top: 46px; } }
.imv-header__inner {
  max-width: 1440px; margin: 0 auto; padding: 0 24px;
  min-height: 81px; /* chiều cao header theo Figma: 81.15px */
  display: flex; align-items: center; gap: 24px;
  box-sizing: border-box;
}
.imv-header__logo { flex-shrink: 0; display: flex; align-items: center; }
.imv-header__logo img { height: 34px; width: auto; max-height: 34px; object-fit: contain; }
.imv-header__logo-text { font-size: 20px; font-weight: 800; color: var(--imv-blue-dark); }
/* Cột giữa: menu, tự căn giữa nhờ margin auto 2 bên */
.imv-header__nav { flex: 1 1 auto; min-width: 0; display: flex; justify-content: center; }
.imv-header__menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; gap: 6px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.imv-header__menu::-webkit-scrollbar { display: none; }
.imv-header__menu li { flex-shrink: 0; display: flex; }
.imv-header__menu a {
  position: relative;
  display: flex; align-items: center; height: 81px;
  padding: 0 16px; font-size: 14px; font-weight: 700; color: #1f2430;
  white-space: nowrap;
  transition: color .2s ease;
}
/* Gạch chân trượt từ giữa ra khi hover */
.imv-header__menu a::after {
  content: ""; position: absolute; left: 50%; right: 50%; bottom: 0; height: 3px;
  background: var(--imv-blue); border-radius: 3px 3px 0 0;
  transition: left .22s ease, right .22s ease;
}
.imv-header__menu a:hover { color: var(--imv-blue); }
.imv-header__menu a:hover::after { left: 12px; right: 12px; }
/* Mục đang mở: gạch chân đầy + màu xanh */
.imv-header__menu .current-menu-item a,
.imv-header__menu .current_page_item a,
.imv-header__menu .current-menu-parent a { color: var(--imv-blue); }
.imv-header__menu .current-menu-item a::after,
.imv-header__menu .current_page_item a::after,
.imv-header__menu .current-menu-parent a::after { left: 12px; right: 12px; }
.imv-header__right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.imv-header__search { display: flex; align-items: center; background: #f1f5f9; border-radius: 20px; height: 36px; padding: 0 6px 0 14px; gap: 6px; }
.imv-header__search input { border: none; background: transparent; outline: none; font-size: 13px; width: 130px; color: #0f172a; }
.imv-header__search button { border: none; background: transparent; cursor: pointer; color: #64748b; display: flex; align-items: center; padding: 6px; }
.imv-header__bell { position: relative; width: 36px; height: 36px; border-radius: 50%; background: #f1f5f9; display: flex; align-items: center; justify-content: center; }
.imv-header__bell:hover { background: #e2e8f0; }
.imv-header__bell-badge { position: absolute; top: -2px; right: -2px; background: var(--imv-red); color: #fff; font-size: 10px; font-weight: 700; min-width: 16px; height: 16px; border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.imv-header__lang { display: flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 8px; background: #f8fafc; font-size: 12px; font-weight: 700; color: #64748b; }
.imv-header__lang img { width: 16px; height: 16px; border-radius: 3px; }
/* Nút chuyển ngôn ngữ VI | EN (toggle pill) */
.imv-lang { display: inline-flex; align-items: center; background: #f1f5f9; border-radius: 20px; padding: 3px; gap: 2px; }
.imv-lang__btn {
  display: flex; align-items: center; justify-content: center;
  min-width: 34px; height: 28px; padding: 0 10px;
  border-radius: 16px; font-size: 12.5px; font-weight: 700; color: #64748b;
  transition: background .18s ease, color .18s ease;
}
.imv-lang__btn:hover { color: var(--imv-blue); }
.imv-lang__btn.is-active { background: var(--imv-blue); color: #fff; box-shadow: 0 1px 3px rgba(0,98,231,.3); }
.imv-lang__btn.is-active:hover { color: #fff; }
.imv-header__user { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.imv-header__user-ava { position: relative; }
.imv-header__user-ava img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.imv-header__user-status { position: absolute; bottom: 0; right: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--imv-green); border: 1.5px solid #fff; }
.imv-header__user-name { font-size: 13px; font-weight: 700; color: #0f172a; white-space: nowrap; }

/* Mobile bottom nav (hidden desktop) */
.imv-mobile-nav { display: none; }

/* ============================================================
   TRANG LANDING (Life at IMV …)
   ============================================================ */
.imv-page { background: #fff; }

/* Page head: icon + tiêu đề + breadcrumb */
.imv-pagehead { background: #f7f9fc; border-bottom: 1px solid var(--imv-line); }
.imv-pagehead__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 22px !important; padding-bottom: 22px !important; }
.imv-pagehead__left { display: flex; align-items: center; gap: 16px; }
.imv-pagehead__ic { width: 48px; height: 48px; border-radius: 50%; background: var(--imv-blue); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.imv-pagehead__title { margin: 0 0 4px; font-size: 26px; font-weight: 800; color: var(--imv-text); }
.imv-pagehead__sub { margin: 0; font-size: 14px; color: var(--imv-muted); }
.imv-crumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--imv-muted); white-space: nowrap; }
.imv-crumb a { color: var(--imv-muted); }
.imv-crumb a:hover { color: var(--imv-blue); }
.imv-crumb b { color: var(--imv-blue); font-weight: 700; }

/* Thanh tab + tìm kiếm */
.imv-tabbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0 22px; flex-wrap: wrap; }
.imv-tabbar__tabs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.imv-tab { padding: 9px 18px; border-radius: 22px; font-size: 13.5px; font-weight: 700; color: var(--imv-text); transition: background .15s ease, color .15s ease; }
.imv-tab:hover { background: #eef2f8; color: var(--imv-blue); }
.imv-tab.is-active { background: var(--imv-blue); color: #fff; }
.imv-tabbar__right { display: flex; align-items: center; gap: 12px; }
.imv-tabsearch { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--imv-line); border-radius: 10px; padding: 0 12px; height: 40px; min-width: 240px; }
.imv-tabsearch input { border: none; outline: none; background: transparent; font-size: 13.5px; width: 100%; }
.imv-sortbox { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 1px solid var(--imv-line); border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--imv-text); cursor: pointer; }

/* Bố cục 2 cột: nội dung + sidebar */
.imv-life-layout { display: grid; grid-template-columns: minmax(0, 1fr) var(--imv-rail); gap: var(--imv-gap); align-items: start; padding-bottom: 50px; }
.imv-life-main { display: flex; flex-direction: column; gap: 34px; min-width: 0; }
.imv-life-side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.imv-sec { min-width: 0; }

/* Hero */
.imv-hero { position: relative; border-radius: var(--imv-radius); overflow: hidden; min-height: 340px; display: flex; align-items: center; background: linear-gradient(135deg, #0a2c6b, #123f8f); }
.imv-hero__bg { position: absolute; inset: 0; background: center/cover no-repeat; z-index: 0; }
.imv-hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, #0a2c6b 0%, rgba(10,44,107,.92) 45%, rgba(10,44,107,.25) 100%); }
.imv-hero__body { position: relative; z-index: 2; padding: 40px 44px; max-width: 560px; color: #fff; }
.imv-hero__title { margin: 0 0 16px; font-size: 38px; font-weight: 800; line-height: 1.18; }
.imv-hero__desc { margin: 0 0 24px; font-size: 15px; font-weight: 600; line-height: 1.6; color: #dbe6ff; }
.imv-hero__btn { display: inline-block; background: #fff !important; color: #0062e7 !important; font-weight: 700; font-size: 14px; padding: 12px 26px; border-radius: 10px; transition: transform .15s ease, box-shadow .2s ease; }
.imv-hero__btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,.25); color: #0255af !important; background: #fff !important; }

/* Our Values */
.imv-values { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.imv-value { background: #fff; border: 1px solid var(--imv-line); border-radius: 14px; padding: 20px 16px; text-align: center; transition: transform .15s ease, box-shadow .2s ease; }
.imv-value:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(16,24,40,.09); }
.imv-value__ic { display: inline-flex; margin-bottom: 12px; }
.imv-value strong { display: block; font-size: 14.5px; font-weight: 800; margin-bottom: 7px; color: var(--imv-text); }
.imv-value p { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--imv-muted); }

/* People Stories */
.imv-story { position: relative; background: #fff; border: 1px solid var(--imv-line); border-radius: 14px; padding: 18px 16px; display: flex; flex-direction: column; gap: 12px; height: 100%; }
.imv-story__mark { font-size: 34px; line-height: 1; color: var(--imv-blue); font-weight: 800; height: 20px; }
.imv-story__quote { margin: 0; font-size: 12.8px; line-height: 1.6; color: #475467; flex: 1; }
.imv-story__person strong { display: block; font-size: 14px; font-weight: 800; color: var(--imv-text); }
.imv-story__person span { font-size: 12px; color: var(--imv-muted); }
.imv-story__tag { align-self: flex-start; font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 20px; }
.imv-story__tag--blue   { background: #e5eefc; color: #0062e7; }
.imv-story__tag--green  { background: #e3f6ed; color: #22a06b; }
.imv-story__tag--purple { background: #ede9fe; color: #7c3aed; }
.imv-story__tag--pink   { background: #fde8ef; color: #eb1f3c; }

/* Gallery */
.imv-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.imv-gallery__item { display: block; height: 170px; border-radius: 12px; background: #e9edf3 center/cover no-repeat; transition: transform .2s ease, box-shadow .2s ease; }
.imv-gallery__item:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(16,24,40,.14); }
.imv-gallery__item--wide { grid-column: span 2; }

/* CTA cuối */
.imv-cta { position: relative; display: flex; align-items: center; gap: 20px; background: #eef4ff; border-radius: var(--imv-radius); padding: 24px 28px; overflow: hidden; }
.imv-cta__text { flex: 1; }
.imv-cta__text strong { display: block; font-size: 18px; font-weight: 800; color: var(--imv-text); margin-bottom: 5px; }
.imv-cta__text span { font-size: 13.5px; color: var(--imv-muted); }
.imv-cta__btn { background: #0062e7 !important; color: #fff !important; font-weight: 700; font-size: 13.5px; padding: 11px 22px; border-radius: 9px; white-space: nowrap; }
.imv-cta__btn:hover { background: #0255af !important; color: #fff !important; }
.imv-cta__ic { font-size: 34px; line-height: 1; }

/* ---- Sidebar cards ---- */
.imv-side-card { background: #f7f9fc; }
.imv-side-title { margin: 0 0 16px; font-size: 16px; font-weight: 800; color: var(--imv-text); }

.imv-qlinks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.imv-qlinks a { display: flex; align-items: center; gap: 12px; font-size: 13.5px; font-weight: 700; color: var(--imv-text); }
.imv-qlinks a:hover { color: var(--imv-blue); }
.imv-qlinks__dot { width: 14px; height: 14px; border-radius: 4px; flex-shrink: 0; }

.imv-numbers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.imv-numbers li { display: flex; align-items: center; gap: 14px; }
.imv-numbers__ic { display: inline-flex; flex-shrink: 0; }
.imv-numbers strong { display: block; font-size: 22px; font-weight: 800; line-height: 1.15; color: var(--imv-text); }
.imv-numbers span { font-size: 12.5px; color: var(--imv-muted); }

.imv-acts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.imv-acts li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid #e8ecf2; }
.imv-acts li:last-child { border-bottom: none; padding-bottom: 0; }
.imv-acts li:first-child { padding-top: 0; }
.imv-acts__date { width: 46px; flex-shrink: 0; background: #fff; border-radius: 10px; padding: 7px 0; text-align: center; box-shadow: 0 1px 4px rgba(16,24,40,.07); }
.imv-acts__date i { display: block; font-style: normal; font-size: 10.5px; font-weight: 800; color: var(--imv-blue); letter-spacing: .4px; }
.imv-acts__date b { display: block; font-size: 17px; font-weight: 800; color: var(--imv-text); line-height: 1.2; }
.imv-acts__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.imv-acts__title { font-size: 13.5px; font-weight: 800; color: var(--imv-text); }
.imv-acts__title:hover { color: var(--imv-blue); }
.imv-acts__row { font-size: 12px; color: var(--imv-muted); }

.imv-say__mark { display: block; font-size: 30px; line-height: 1; color: var(--imv-blue); font-weight: 800; margin-bottom: 6px; }
.imv-say__quote { margin: 0 0 18px; font-size: 14px; line-height: 1.6; color: #475467; }
.imv-say__person { display: flex; align-items: center; gap: 12px; }
.imv-say__ava { width: 42px; height: 42px; border-radius: 50%; background: #dfe5ee; flex-shrink: 0; }
.imv-say__person strong { display: block; font-size: 13.5px; font-weight: 800; color: var(--imv-text); }
.imv-say__person span { font-size: 12px; color: var(--imv-muted); }
.imv-say__dots { display: flex; gap: 6px; margin-top: 16px; }
.imv-say__dots i { width: 7px; height: 7px; border-radius: 50%; background: #d3dae5; }
.imv-say__dots i.is-active { width: 18px; border-radius: 4px; background: var(--imv-blue); }

.imv-join__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.imv-join__head strong { font-size: 16px; font-weight: 800; color: var(--imv-text); }
.imv-join__ic { font-size: 22px; }
.imv-join p { margin: 0 0 16px; font-size: 12.5px; line-height: 1.55; color: var(--imv-muted); }
.imv-join__btn { display: inline-block; border: 1.5px solid #0062e7; color: #0062e7 !important; font-weight: 700; font-size: 13px; padding: 9px 20px; border-radius: 9px; transition: background .15s ease, color .15s ease; }
.imv-join__btn:hover { background: #0062e7; color: #fff !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .imv-life-layout { grid-template-columns: 1fr; }
  .imv-values { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .imv-values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .imv-gallery { grid-template-columns: 1fr 1fr; }
  .imv-gallery__item--wide { grid-column: span 2; }
  .imv-hero__body { padding: 28px 22px; }
  .imv-hero__title { font-size: 28px; }
  .imv-pagehead__inner { flex-direction: column; align-items: flex-start; }
  .imv-cta { flex-wrap: wrap; }
}

@media (max-width: 1180px) {
  /* Welcome full-width trên; Featured full-width; Birthdays+Members | Quick Access 2 cột dưới */
  .imv-toprow {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "welcome  welcome"
      "featured featured"
      "side     qa";
  }
}
@media (max-width: 1080px) {
  .imv-layout { grid-template-columns: 1fr; }
  .imv-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .imv-carousel > * { flex-basis: calc(33.333% - 11px); }
}
@media (max-width: 720px) {
  .imv-toprow {
    grid-template-columns: 1fr;
    grid-template-areas: "welcome" "featured" "side" "qa";
  }
}
@media (max-width: 1024px) {
  .imv-header__user-name { display: none; }
}
@media (max-width: 860px) {
  .imv-header__search { display: none; }
  .imv-grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .imv-container { padding: 0 14px 80px; }
  .imv-header__inner { margin-left: 14px; margin-right: 14px; flex-wrap: wrap; }
  .imv-header__nav { order: 3; width: 100%; }
  .imv-grid-2, .imv-grid-4 { grid-template-columns: 1fr; }
  .imv-featured__title { font-size: 24px; }
  .imv-carousel > * { flex-basis: 78%; }
  /* Mobile bottom nav */
  .imv-mobile-nav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 500;
    background: #fff; border-top: 1px solid var(--imv-line);
    box-shadow: 0 -2px 12px rgba(0,0,0,.06);
  }
  .imv-mobile-nav__item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 0; font-size: 10.5px; font-weight: 600; color: var(--imv-muted); }
  .imv-mobile-nav__item.active { color: var(--imv-blue); }
  .imv-mobile-nav__item svg { width: 22px; height: 22px; }
}

/* Modal (View all people) */
.imv-modal { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all .25s ease; }
.imv-modal.is-active { opacity: 1; visibility: visible; }
.imv-modal__overlay { position: absolute; inset: 0; background: rgba(15,23,42,.6); backdrop-filter: blur(3px); }
.imv-modal__content { position: relative; width: 90%; max-width: 560px; max-height: 84vh; overflow-y: auto; background: #fff; border-radius: 18px; padding: 26px; z-index: 2; }
.imv-modal__close { position: absolute; top: 16px; right: 18px; width: 34px; height: 34px; border-radius: 50%; border: none; background: #f1f5f9; font-size: 22px; cursor: pointer; color: #64748b; }
.imv-modal__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px,1fr)); gap: 14px; margin-top: 18px; }
.imv-modal__person { text-align: center; }
.imv-modal__person img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; margin-bottom: 6px; }
.imv-modal__person strong { display:block; font-size: 12.5px; }
.imv-modal__person span { font-size: 11px; color: var(--imv-muted); }
