/* ============================================================
   Medi Pharma — Trang chủ website
   Typography: Nunito Sans (load ở base.html)
   ============================================================ */

:root {
  --mp-blue:    #1e88a8;
  --mp-cyan:    #0891b2;
  --mp-green:   #14b8a6;
  --mp-ink:     #0f172a;
  --mp-slate:   #475569;
  --mp-slate-2: #64748b;
  --mp-slate-3: #94a3b8;
  --mp-bg:      #f1f7fb;
  --mp-card:    #ffffff;
  --mp-border:  #e2e8f0;
  --mp-radius:  14px;
}

.home-wrap,
.home-wrap * { font-family: 'Nunito Sans', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.home-wrap { background: var(--mp-bg); padding: 18px 0 60px; }

/* Anti-underline cho mọi link/card trong home — override Bootstrap a:hover */
.home-wrap a,
.home-wrap a:hover,
.home-wrap a:focus,
.home-wrap a:active,
.home-wrap a:visited,
.home-wrap a *,
.home-wrap button,
.home-wrap button:hover { text-decoration: none !important; }

/* Specific override cho từng card type — tăng specificity để chắc chắn thắng */
a.h-service-card, a.h-service-card:hover, a.h-service-card *,
a.h-service-card:hover *,
a.h-shortcut, a.h-shortcut:hover, a.h-shortcut *,
a.h-shortcut:hover *,
a.shop-card, a.shop-card:hover, a.shop-card *,
a.shop-card:hover *,
a.shop-card-main, a.shop-card-main:hover, a.shop-card-main *,
a.shop-card-main:hover *,
.h-pills a, .h-pills a:hover, .h-pills a *,
.h-pills a:hover *,
a.home-news-list-item, a.home-news-list-item:hover, a.home-news-list-item *,
a.home-news-list-item:hover *,
.h-news-featured-title a, .h-news-featured-title a:hover {
  text-decoration: none !important;
}
.home-wrap .eyebrow {
  font-size: .68rem; font-weight: 800; color: var(--mp-cyan);
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px;
}
.home-wrap .h-section-title {
  font-size: 1.6rem; font-weight: 900; color: var(--mp-ink);
  margin: 0 0 10px; line-height: 1.2;
}
.home-wrap .h-section-sub {
  font-size: .88rem; font-weight: 600; color: var(--mp-slate-2);
  margin: 0 auto 22px; max-width: 720px;
}
.home-section { margin-bottom: 28px; scroll-margin-top: 90px; }

/* ── Hero banner ── */
.h-hero {
  position: relative;
  border-radius: var(--mp-radius);
  overflow: hidden;
  background: linear-gradient(135deg, #062c44 0%, #0e6989 45%, #0891b2 80%, #14b8a6 100%);
  color: #fff;
  padding: 38px 36px;
  box-shadow: 0 14px 32px rgba(8, 80, 110, .28);
  margin-bottom: 0;
  /* Đồng nhất chiều cao mọi slide trong carousel — chống nhảy layout khi chuyển slide */
  min-height: 440px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start; /* children chỉ rộng theo nội dung, không stretch full width */
}
/* Carousel — fade thay vì slide để chuyển mượt và giảm cảm giác giật */
.h-hero-carousel.carousel-fade .carousel-item {
  opacity: 0;
  transition: opacity .55s cubic-bezier(.2,.7,.2,1);
}
.h-hero-carousel.carousel-fade .carousel-item.active,
.h-hero-carousel.carousel-fade .carousel-item-next.carousel-item-start,
.h-hero-carousel.carousel-fade .carousel-item-prev.carousel-item-end {
  z-index: 1; opacity: 1;
}
.h-hero-carousel.carousel-fade .active.carousel-item-start,
.h-hero-carousel.carousel-fade .active.carousel-item-end {
  z-index: 0; opacity: 0; transition: opacity 0s .55s;
}
/* Hero content truncation an toàn — tránh slide phình to khi admin paste text dài */
.h-hero-desc {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.h-hero::after {
  content: ""; position: absolute; right: -80px; top: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  background: rgba(255, 255, 255, .07);
}
.h-hero::before {
  content: ""; position: absolute; right: 80px; bottom: -120px;
  width: 240px; height: 240px; border-radius: 50%;
  background: rgba(20, 184, 166, .18);
}
.h-hero.has-image { background-size: cover; background-position: center; }
.h-hero.has-image::before, .h-hero.has-image::after { display: none; }
.h-hero.slide-1 { background: linear-gradient(135deg, #062c44 0%, #0e6989 45%, #0891b2 80%, #14b8a6 100%); }
.h-hero.slide-2 { background: linear-gradient(135deg, #064e3b 0%, #0f766e 45%, #0891b2 100%); }
.h-hero.slide-3 { background: linear-gradient(135deg, #0c1f3d 0%, #1e3a8a 45%, #14b8a6 100%); }
.h-hero.has-image.slide-1 { background-image: linear-gradient(135deg, rgba(6,44,68,.78) 0%, rgba(8,145,178,.62) 100%), var(--hero-img); }
.h-hero.has-image.slide-2 { background-image: linear-gradient(135deg, rgba(6,78,59,.78) 0%, rgba(8,145,178,.6) 100%), var(--hero-img); }
.h-hero.has-image.slide-3 { background-image: linear-gradient(135deg, rgba(12,31,61,.78) 0%, rgba(20,184,166,.55) 100%), var(--hero-img); }
.h-hero.has-image.none    { background-image: var(--hero-img); }
.h-hero-carousel { margin-bottom: 22px; }
.h-hero-carousel .carousel-indicators { margin-bottom: 12px; }
.h-hero-carousel .carousel-indicators [data-bs-target] {
  width: 9px; height: 9px; border-radius: 50%;
  background-color: rgba(255, 255, 255, .85); border: 0;
}
.h-hero-carousel .carousel-control-prev,
.h-hero-carousel .carousel-control-next { width: 44px; opacity: 1; }
.h-hero-carousel .carousel-control-prev-icon,
.h-hero-carousel .carousel-control-next-icon {
  width: 32px; height: 32px; border-radius: 50%;
  background-color: rgba(0, 0, 0, .32); background-size: 46% 46%;
}
.h-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .26);
  color: #ecfeff; font-weight: 700; font-size: .72rem;
  text-transform: uppercase; letter-spacing: .08em;
  padding: 5px 12px; border-radius: 999px;
}
.h-hero-title {
  margin: 14px 0 10px; font-size: 2.4rem; font-weight: 900;
  color: var(--hero-text-color, #fff); line-height: 1.12; max-width: 620px;
}
.h-hero-desc {
  color: var(--hero-text-color, rgba(255, 255, 255, .82));
  font-size: .95rem; font-weight: 600;
  line-height: 1.55; max-width: 620px; margin: 0 0 22px;
  opacity: .92;
}

/* ── Hero font variants (admin chọn trong /settings/) ── */
.h-hero.font-display .h-hero-title,
.h-hero.font-display .h-hero-desc,
.h-hero.font-display .h-hero-eyebrow {
  font-family: "Be Vietnam Pro", "Nunito Sans", system-ui, sans-serif;
}
.h-hero.font-elegant .h-hero-title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900; letter-spacing: -.005em;
}
.h-hero.font-elegant .h-hero-desc,
.h-hero.font-elegant .h-hero-eyebrow {
  font-family: "Nunito Sans", system-ui, sans-serif;
}
.h-hero.font-impact .h-hero-title {
  font-family: "Oswald", "Be Vietnam Pro", system-ui, sans-serif;
  font-weight: 700; letter-spacing: .005em; text-transform: uppercase;
}
.h-hero.font-impact .h-hero-desc,
.h-hero.font-impact .h-hero-eyebrow {
  font-family: "Nunito Sans", system-ui, sans-serif;
}
.h-hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.h-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 999px;
  font-weight: 800; font-size: .85rem; text-decoration: none;
  border: 0; cursor: pointer; transition: transform .14s, box-shadow .14s, filter .14s;
}
.h-btn-primary {
  background: linear-gradient(135deg, #14b8a6 0%, #0891b2 100%);
  color: #fff; box-shadow: 0 8px 18px rgba(8, 145, 178, .35);
}
.h-btn-primary:hover { color: #fff; filter: brightness(1.05); transform: translateY(-1px); }
.h-btn-ghost {
  background: rgba(255, 255, 255, .14); color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .55);
}
.h-btn-ghost:hover { background: rgba(255, 255, 255, .24); color: #fff; }

/* ── Fact strip (gộp trust + stats) ── */
.h-fact {
  display: flex; flex-wrap: wrap; align-items: stretch; justify-content: space-between;
  gap: 0;
  background: var(--mp-card); border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius); padding: 4px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .04);
}
.h-fact-item {
  flex: 1 1 0; min-width: 130px;
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; position: relative;
  text-decoration: none;
}
.h-fact-item + .h-fact-item::before {
  content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 1px;
  background: var(--mp-border);
}
.h-fact-icon {
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 38px; font-size: 15px; color: var(--mp-blue);
  background: linear-gradient(135deg, rgba(30, 136, 168, .14), rgba(20, 184, 166, .14));
}
.h-fact-num {
  font-size: 1.35rem; font-weight: 900; color: var(--mp-ink); line-height: 1.05;
}
.h-fact-lbl {
  font-size: .68rem; font-weight: 800; color: var(--mp-slate-2);
  text-transform: uppercase; letter-spacing: .04em; margin-top: 2px;
}

/* ── Shortcut pills (nhỏ gọn, không card) ── */
.h-pills {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
}
.h-pills a, .h-pills button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px;
  background: var(--mp-card); border: 1px solid var(--mp-border);
  font-size: .82rem; font-weight: 800; color: var(--mp-slate);
  text-decoration: none; cursor: pointer;
  transition: border-color .14s, color .14s, background .14s, transform .14s;
}
.h-pills a:hover, .h-pills button:hover {
  border-color: var(--mp-cyan); color: var(--mp-blue); background: #f6fcfe;
  transform: translateY(-1px);
}
.h-pills i { color: var(--mp-cyan); }

/* ── Reasons list (gộp features + commit, không box) ── */
.h-reasons {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 36px;
  background: var(--mp-card); border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius); padding: 30px 32px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .04);
}
.h-reason {
  display: flex; gap: 14px; align-items: flex-start;
  padding-bottom: 22px;
  border-bottom: 1px dashed var(--mp-border);
}
.h-reason:nth-last-child(-n+3) { border-bottom: 0; padding-bottom: 0; }
.h-reason-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 44px; font-size: 18px; color: #fff;
  background: linear-gradient(135deg, var(--mp-blue), var(--mp-cyan));
}
.h-reason:nth-child(2) .h-reason-icon { background: linear-gradient(135deg, var(--mp-cyan), var(--mp-green)); }
.h-reason:nth-child(3) .h-reason-icon { background: linear-gradient(135deg, var(--mp-green), #34d399); }
.h-reason:nth-child(4) .h-reason-icon { background: linear-gradient(135deg, #6366f1, var(--mp-blue)); }
.h-reason:nth-child(5) .h-reason-icon { background: linear-gradient(135deg, #d946ef, #6366f1); }
.h-reason:nth-child(6) .h-reason-icon { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.h-reason-body { flex: 1; }
.h-reason-num {
  font-size: 1.4rem; font-weight: 900; color: var(--mp-blue); line-height: 1;
  margin-bottom: 4px; letter-spacing: -.01em;
}
.h-reason-num small { font-size: .68rem; font-weight: 800; color: var(--mp-slate-2); margin-left: 4px; }
.h-reason-title {
  font-size: .98rem; font-weight: 800; color: var(--mp-ink);
  margin: 0 0 4px; line-height: 1.3;
}
.h-reason-desc {
  font-size: .8rem; font-weight: 600; color: var(--mp-slate-2);
  line-height: 1.55; margin: 0;
}

/* ── Franchise model (2-col image + diagram) ── */
.h-model {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 26px;
  align-items: stretch;
}
.h-model-img-wrap {
  position: relative; border-radius: var(--mp-radius); overflow: hidden;
  box-shadow: 0 14px 28px rgba(15, 23, 42, .12);
  min-height: 420px;
}
.h-model-img {
  width: 100%; height: 100%; object-fit: cover;
  position: absolute; inset: 0;
}
.h-model-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(6, 44, 68, .14) 0%, rgba(8, 145, 178, .26) 100%);
}
.h-model-badge {
  position: absolute; left: 18px; bottom: 18px;
  padding: 12px 16px; border-radius: 12px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 8px 22px rgba(15, 23, 42, .2);
  display: inline-flex; align-items: center; gap: 12px;
}
.h-model-badge-num {
  font-size: 1.6rem; font-weight: 900; color: var(--mp-blue); line-height: 1;
}
.h-model-badge-lbl {
  font-size: .7rem; font-weight: 800; color: var(--mp-slate);
  text-transform: uppercase; letter-spacing: .04em;
}
.h-model-content {
  display: flex; flex-direction: column; justify-content: center;
  background: var(--mp-card); border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius); padding: 28px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .04);
}
.h-model-pillars { display: grid; gap: 14px; margin-top: 14px; }
.h-model-pillar {
  display: flex; gap: 14px; padding: 12px 14px;
  border-radius: 12px; background: #f6fcfe;
  border-left: 3px solid var(--mp-cyan);
  transition: background .14s, transform .14s;
}
.h-model-pillar:hover { background: #ecf6fa; transform: translateX(2px); }
.h-model-pillar-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 36px; font-size: 14px; color: #fff;
  background: linear-gradient(135deg, var(--mp-blue), var(--mp-cyan));
}
.h-model-pillar-title {
  font-size: .92rem; font-weight: 800; color: var(--mp-ink);
  margin: 0 0 2px;
}
.h-model-pillar-desc {
  font-size: .78rem; font-weight: 600; color: var(--mp-slate-2);
  line-height: 1.5; margin: 0;
}

/* ── FAQ ── */
.h-faq-wrap { max-width: 860px; margin: 0 auto; }
.h-faq-item {
  background: var(--mp-card); border: 1px solid var(--mp-border);
  border-radius: 12px; margin-bottom: 10px; overflow: hidden;
  transition: box-shadow .14s, border-color .14s;
}
.h-faq-item:hover { border-color: rgba(30, 136, 168, .35); box-shadow: 0 6px 16px rgba(8, 145, 178, .08); }
.h-faq-question {
  width: 100%; text-align: left; border: 0; background: transparent;
  padding: 14px 16px; font-size: .92rem; font-weight: 800; color: var(--mp-ink);
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.h-faq-question::after {
  content: "\f078"; font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
  font-weight: 900; color: var(--mp-cyan); font-size: .8rem;
  transition: transform .18s ease;
}
.h-faq-question[aria-expanded="true"]::after { transform: rotate(180deg); }
.h-faq-answer {
  padding: 0 16px 16px; font-size: .85rem; font-weight: 600;
  color: var(--mp-slate); line-height: 1.65;
}

/* ── Roadmap (Quy trình 5 bước) ── */
.h-roadmap {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px;
  position: relative;
}
.h-roadmap::before {
  content: ""; position: absolute; top: 28px; left: 8%; right: 8%; height: 2px;
  background: repeating-linear-gradient(90deg, rgba(30,136,168,.32) 0 8px, transparent 8px 16px);
  z-index: 0;
}
.h-step {
  background: var(--mp-card); border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius); padding: 18px 16px;
  text-align: center; position: relative; z-index: 1;
  transition: transform .14s, box-shadow .14s, border-color .14s;
}
.h-step:hover {
  transform: translateY(-3px);
  border-color: rgba(30, 136, 168, .35);
  box-shadow: 0 14px 26px rgba(8, 145, 178, .14);
}
.h-step-num {
  width: 56px; height: 56px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 900; color: #fff;
  background: linear-gradient(135deg, var(--mp-blue), var(--mp-cyan));
  margin-bottom: 12px; box-shadow: 0 8px 16px rgba(8, 145, 178, .26);
}
.h-step-title {
  font-size: .98rem; font-weight: 900; color: var(--mp-ink);
  margin: 0 0 6px;
}
.h-step-desc {
  font-size: .78rem; font-weight: 600; color: var(--mp-slate-2);
  line-height: 1.55; margin: 0;
}

/* ── Video trigger (thumbnail có nút play) ── */
.h-video-trigger {
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
  display: block;
}
.h-video-trigger .h-about-img { transition: filter .25s, transform 1.2s ease; }
.h-video-trigger:hover { box-shadow: 0 18px 36px rgba(15, 23, 42, .2); }
.h-video-trigger:hover .h-about-img { filter: brightness(.92); transform: scale(1.04); }
.h-video-play {
  width: 76px; height: 76px; border-radius: 50%;
  background: rgba(255, 255, 255, .96);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--mp-blue); font-size: 26px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .32), 0 0 0 0 rgba(8, 145, 178, .55);
  animation: videoPulse 2s ease-out infinite;
  transition: transform .25s ease, color .25s ease, background .25s ease;
}
.h-video-play i { margin-left: 4px; }  /* căn quang học cho icon play */
.h-video-trigger:hover .h-video-play {
  transform: scale(1.1);
  color: var(--mp-cyan);
  background: #fff;
}
@keyframes videoPulse {
  0%   { box-shadow: 0 14px 30px rgba(0,0,0,.32), 0 0 0 0 rgba(8, 145, 178, .55); }
  100% { box-shadow: 0 14px 30px rgba(0,0,0,.32), 0 0 0 22px rgba(8, 145, 178, 0); }
}

/* ── Modal video giới thiệu ── */
.intro-video-modal .modal-content {
  border: 0; border-radius: 16px; overflow: hidden;
  background: #0f172a; color: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}
.intro-video-modal .modal-header {
  background: linear-gradient(135deg, #0f172a 0%, #0e2840 100%);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  padding: 14px 20px;
}
.intro-video-modal .modal-title {
  color: #fff; font-weight: 800; font-size: .95rem;
  display: inline-flex; align-items: center;
}
.intro-video-modal .modal-title i { color: #14b8a6; }
.intro-video-modal .btn-close {
  filter: invert(1) brightness(2); opacity: .8;
}
.intro-video-modal .btn-close:hover { opacity: 1; }
.intro-video-modal .modal-body { background: #000; }
.intro-video-modal iframe { width: 100%; height: 100%; border: 0; display: block; background: #000; }
.intro-video-fallback { background: #1e293b; color: #cbd5e1; }
.intro-video-fallback .text-muted { color: #94a3b8 !important; }

/* ── About / Research split ── */
.h-about {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 26px;
  align-items: center;
  background: var(--mp-card); border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius); padding: 28px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .04);
}
.h-about-img {
  border-radius: 12px; width: 100%; height: 320px; object-fit: cover;
}
.h-about-title {
  font-size: 1.55rem; font-weight: 900; color: var(--mp-ink);
  line-height: 1.22; margin: 8px 0 12px;
}
.h-about-desc {
  font-size: .88rem; font-weight: 600; color: var(--mp-slate-2);
  line-height: 1.65; margin: 0 0 18px;
}
.h-about-stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
  margin: 16px 0;
}
.h-about-stat {
  border-left: 3px solid var(--mp-cyan);
  padding: 6px 12px; background: #f8fcfe; border-radius: 0 8px 8px 0;
}
.h-about-stat-num {
  font-size: 1.4rem; font-weight: 900; color: var(--mp-blue);
  line-height: 1.1;
}
.h-about-stat-lbl {
  font-size: .72rem; font-weight: 700; color: var(--mp-slate-2);
  text-transform: uppercase; letter-spacing: .04em; margin-top: 2px;
}
.h-about-sign {
  display: flex; align-items: center; gap: 12px; margin-top: 16px;
  padding-top: 14px; border-top: 1px dashed var(--mp-border);
}
.h-about-sign-name { font-weight: 800; color: var(--mp-ink); font-size: .9rem; line-height: 1.2; }
.h-about-sign-role { font-size: .7rem; font-weight: 700; color: var(--mp-slate-2); text-transform: uppercase; letter-spacing: .04em; }

/* ── CTA strip ── */
.h-cta {
  background: linear-gradient(135deg, #0891b2 0%, #14b8a6 100%);
  border-radius: var(--mp-radius); padding: 28px;
  color: #fff; text-align: center;
  box-shadow: 0 10px 24px rgba(8, 145, 178, .26);
}
.h-cta-title { font-size: 1.55rem; font-weight: 900; margin: 0 0 8px; line-height: 1.25; }
.h-cta-desc { font-size: .9rem; font-weight: 600; opacity: .92; margin: 0 0 16px; max-width: 720px; margin-left: auto; margin-right: auto; }
.h-cta-btn {
  background: #fff; color: var(--mp-blue);
  box-shadow: 0 8px 16px rgba(0, 0, 0, .14);
}
.h-cta-btn:hover { color: var(--mp-cyan); filter: brightness(1.02); }

/* ── Services / Categories cards ── */
.h-services { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.h-service-card {
  background: var(--mp-card); border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius); padding: 22px;
  transition: transform .15s, box-shadow .15s, border-color .15s;
  text-decoration: none; color: inherit; display: block;
}
.h-service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(8, 145, 178, .14);
  border-color: rgba(30, 136, 168, .35);
}
.h-service-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(30, 136, 168, .12), rgba(20, 184, 166, .18));
  color: var(--mp-blue); font-size: 24px; margin-bottom: 14px;
}
.h-service-title {
  font-size: 1.02rem; font-weight: 800; color: var(--mp-ink);
  margin: 0 0 6px;
}
.h-service-desc {
  font-size: .82rem; font-weight: 600; color: var(--mp-slate-2);
  line-height: 1.55; margin: 0 0 12px;
}
.h-service-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .76rem; font-weight: 800; color: var(--mp-cyan);
  text-transform: uppercase; letter-spacing: .04em;
}

/* ── Pricing plans (modern redesign) ── */
.h-pricing {
  display: flex; flex-wrap: wrap; gap: 22px; justify-content: center;
  align-items: stretch;
}
.h-plan {
  flex: 1 1 280px; max-width: 380px;
  background: var(--mp-card);
  border: 1.5px solid var(--mp-border);
  border-radius: 20px; padding: 36px 26px 28px;
  position: relative;
  display: flex; flex-direction: column;
  transition: transform .25s cubic-bezier(.2,.7,.2,1),
              box-shadow .25s cubic-bezier(.2,.7,.2,1),
              border-color .25s;
  isolation: isolate;
}
.h-plan::before {
  content: ""; position: absolute; inset: 0 0 auto 0;
  height: 4px; border-radius: 20px 20px 0 0;
  background: linear-gradient(90deg, var(--mp-blue), var(--mp-cyan));
  opacity: 0; transition: opacity .25s;
}
.h-plan:hover {
  border-color: rgba(8, 145, 178, .35);
  box-shadow: 0 22px 44px rgba(8, 145, 178, .14);
  transform: translateY(-6px);
}
.h-plan:hover::before { opacity: 1; }

/* Featured plan — chỉ subtle border accent + top stripe + glow, không nền nặng */
.h-plan.is-featured {
  border: 1.5px solid transparent;
  background:
    linear-gradient(180deg, #f5fcfd 0%, #fff 28%) padding-box,
    linear-gradient(135deg, var(--mp-blue), var(--mp-cyan), var(--mp-green)) border-box;
  box-shadow: 0 22px 44px rgba(8, 145, 178, .2);
  transform: scale(1.04);
}
.h-plan.is-featured::before {
  opacity: 1; height: 5px;
  background: linear-gradient(90deg, var(--mp-blue), var(--mp-cyan), var(--mp-green));
}
.h-plan.is-featured:hover {
  transform: scale(1.04) translateY(-6px);
  box-shadow: 0 26px 52px rgba(8, 145, 178, .26);
}

/* Tag "Đề xuất" */
.h-plan-tag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  padding: 6px 16px; border-radius: 999px;
  font-size: .7rem; font-weight: 800; color: #fff;
  text-transform: uppercase; letter-spacing: .08em;
  background: linear-gradient(135deg, var(--mp-blue), var(--mp-cyan));
  box-shadow: 0 8px 18px rgba(8, 145, 178, .35);
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.h-plan-tag i { font-size: .72rem; color: #fbbf24; }

/* Icon ở trên cùng */
.h-plan-icon {
  width: 60px; height: 60px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(30, 136, 168, .1), rgba(20, 184, 166, .14));
  color: var(--mp-blue);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 24px; margin: 0 auto 14px;
  transition: transform .3s cubic-bezier(.25,1.5,.5,1);
}
.h-plan:hover .h-plan-icon { transform: rotate(-6deg) scale(1.06); }
.h-plan.is-featured .h-plan-icon {
  background: linear-gradient(135deg, var(--mp-blue), var(--mp-cyan));
  color: #fff;
  box-shadow: 0 10px 22px rgba(8, 145, 178, .32);
}

/* Plan name (eyebrow) */
.h-plan-name {
  font-size: .68rem; font-weight: 800; color: var(--mp-cyan);
  text-transform: uppercase; letter-spacing: .12em;
  margin: 0 0 6px; text-align: center;
}

/* Plan title */
.h-plan-title {
  font-size: 1.4rem; font-weight: 900; color: var(--mp-ink);
  margin: 0 0 18px; text-align: center; line-height: 1.2;
}

/* Price block — divider top/bottom */
.h-plan-price-block {
  text-align: center; padding: 18px 0; margin-bottom: 20px;
  border-top: 1px dashed var(--mp-border);
  border-bottom: 1px dashed var(--mp-border);
}
.h-plan-price {
  font-size: 2.4rem; font-weight: 900; line-height: 1;
  background: linear-gradient(135deg, var(--mp-blue), var(--mp-cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; letter-spacing: -.015em;
  display: inline-block;
}
.h-plan.is-featured .h-plan-price {
  font-size: 2.7rem;
  background: linear-gradient(135deg, var(--mp-blue), var(--mp-cyan), var(--mp-green));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.h-plan-price small {
  font-size: .85rem; font-weight: 700; color: var(--mp-slate-2);
  -webkit-text-fill-color: var(--mp-slate-2);
  margin-left: 4px; vertical-align: middle;
}
.h-plan-period {
  font-size: .72rem; font-weight: 700; color: var(--mp-slate-2);
  text-transform: uppercase; letter-spacing: .04em; margin-top: 10px;
  display: flex; align-items: center; justify-content: center;
  gap: 8px; flex-wrap: wrap;
}
.h-plan-period span { display: inline-flex; align-items: center; gap: 4px; }
.h-plan-period i { color: var(--mp-cyan); font-size: .68rem; }

/* Features list */
.h-plan-features {
  list-style: none; padding: 0; margin: 0 0 22px;
  text-align: left; flex-grow: 1;
}
.h-plan-features li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .85rem; font-weight: 600; color: var(--mp-slate);
  padding: 8px 0; line-height: 1.45;
  transition: color .14s, transform .14s;
}
.h-plan-features li:hover {
  color: var(--mp-ink); transform: translateX(2px);
}
.h-plan-features li > i {
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(20, 184, 166, .15);
  color: var(--mp-green);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 9px; flex-shrink: 0; margin-top: 3px;
}
.h-plan.is-featured .h-plan-features li > i {
  background: linear-gradient(135deg, var(--mp-cyan), var(--mp-green));
  color: #fff;
}

/* CTA — 2 styles: outline & solid (featured) */
.h-plan-cta {
  width: 100%; padding: 13px 22px;
  border-radius: 999px;
  font-weight: 800; font-size: .88rem;
  text-align: center; cursor: pointer;
  border: 1.5px solid var(--mp-border);
  background: #fff; color: var(--mp-blue);
  transition: all .2s ease;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.h-plan-cta:hover {
  border-color: var(--mp-cyan);
  background: #f0fbfd; color: var(--mp-blue);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(8, 145, 178, .14);
}
.h-plan-cta i { transition: transform .2s; }
.h-plan-cta:hover i { transform: translateX(3px); }
.h-plan.is-featured .h-plan-cta {
  background: linear-gradient(135deg, var(--mp-blue), var(--mp-cyan));
  color: #fff; border-color: transparent;
  box-shadow: 0 10px 22px rgba(8, 145, 178, .35);
}
.h-plan.is-featured .h-plan-cta:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(8, 145, 178, .45);
}

/* ── Appointment / Contact ── */
.h-contact {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  background: var(--mp-card); border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius); padding: 26px;
}
.h-contact-phone {
  font-size: 1.8rem; font-weight: 900; color: var(--mp-blue);
  letter-spacing: -.01em; margin: 8px 0;
}
.h-contact-line {
  display: flex; gap: 12px; padding: 10px 0;
  border-bottom: 1px dashed var(--mp-border); font-size: .85rem;
}
.h-contact-line:last-child { border-bottom: 0; }
.h-contact-line i {
  width: 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(30, 136, 168, .12); color: var(--mp-blue);
  flex: 0 0 32px;
}
.h-contact-line-label { font-size: .68rem; font-weight: 800; color: var(--mp-slate-2); text-transform: uppercase; letter-spacing: .04em; }
.h-contact-line-value { font-weight: 700; color: var(--mp-ink); }

/* ── Testimonials ── */
.h-testimonials .carousel-inner { padding: 4px; }
.h-testi-card {
  background: var(--mp-card); border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius); padding: 28px 26px;
  text-align: center; position: relative;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .05);
}
.h-testi-quote {
  font-size: 2.2rem; color: var(--mp-cyan); opacity: .8;
  line-height: 1; margin-bottom: 8px;
}
.h-testi-rating {
  color: #f59e0b; font-size: .9rem; letter-spacing: 2px; margin-bottom: 10px;
}
.h-testi-text {
  font-size: .95rem; font-weight: 600; color: var(--mp-slate);
  line-height: 1.7; max-width: 720px; margin: 0 auto 18px;
}
.h-testi-avatar {
  width: 56px; height: 56px; border-radius: 50%; object-fit: cover;
  border: 3px solid #fff; box-shadow: 0 4px 12px rgba(8, 145, 178, .26);
  margin: 0 auto 8px;
}
.h-testi-name { font-size: .95rem; font-weight: 800; color: var(--mp-ink); margin: 0; }
.h-testi-role { font-size: .72rem; font-weight: 700; color: var(--mp-slate-2); text-transform: uppercase; letter-spacing: .04em; margin-top: 2px; }
.h-testimonials .carousel-control-prev,
.h-testimonials .carousel-control-next { width: 36px; opacity: .55; }
.h-testimonials .carousel-control-prev-icon,
.h-testimonials .carousel-control-next-icon {
  background-color: var(--mp-blue); border-radius: 50%;
  width: 28px; height: 28px; background-size: 50% 50%;
}

/* ── Section heading shared (giữ legacy) ── */
.home-section-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 10px; margin-bottom: 14px; padding-bottom: 8px;
  border-bottom: 1px dashed rgba(30, 136, 168, .28);
}
.home-section-title { margin: 0; font-size: 1.32rem; font-weight: 900; color: var(--mp-ink); }
.home-section-link {
  border-radius: 999px; border: 1px solid rgba(30, 136, 168, .32);
  color: #0f6d88; background: #fff; font-weight: 700; padding: 6px 12px;
}
.home-section-link:hover { background: #f2fbfd; color: #0c637c; border-color: rgba(30, 136, 168, .52); }

/* ── News split (kế thừa) ── */
.home-news-split { margin-bottom: 0; }
.home-news-list-panel {
  border: 1px solid var(--mp-border); border-radius: var(--mp-radius);
  background: #fff; box-shadow: 0 8px 18px rgba(15, 23, 42, .05); overflow: hidden;
}
.home-news-list-item {
  display: flex; gap: 10px; padding: 12px;
  text-decoration: none; border-bottom: 1px solid #eef2f7;
  transition: background .14s;
}
.home-news-list-item:last-child { border-bottom: 0; }
.home-news-list-item:hover { background: #f6fcfe; }
.home-news-list-thumb { width: 96px; height: 72px; object-fit: cover; border-radius: 10px; flex: 0 0 96px; }
.home-news-list-title { margin: 0 0 4px; color: var(--mp-ink); font-weight: 800; font-size: .86rem; line-height: 1.35; }
.home-news-list-meta { color: var(--mp-slate-2); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.home-news-featured-card {
  border: 1px solid var(--mp-border); border-radius: var(--mp-radius);
  background: #fff; box-shadow: 0 10px 22px rgba(15, 23, 42, .08);
  overflow: hidden; height: 100%;
}
.home-news-carousel .carousel-item { min-height: 100%; }
.home-news-featured-img { width: 100%; height: 320px; object-fit: cover; }
.home-news-featured-body { padding: 16px 20px 20px; }
.home-news-featured-title { margin: 0 0 8px; color: var(--mp-ink); font-size: 1.35rem; font-weight: 900; line-height: 1.25; }
.home-news-featured-title a { color: inherit; text-decoration: none; }
.home-news-featured-title a:hover { color: #0f6d88; }
.home-news-featured-summary { margin: 0; color: var(--mp-slate); font-size: .88rem; font-weight: 600; line-height: 1.6; }
.home-news-carousel .carousel-control-prev,
.home-news-carousel .carousel-control-next { width: 44px; opacity: 1; }
.home-news-carousel .carousel-control-prev-icon,
.home-news-carousel .carousel-control-next-icon {
  width: 32px; height: 32px; border-radius: 50%;
  background-color: rgba(15, 23, 42, .42); background-size: 46% 46%;
}
.home-news-carousel .carousel-indicators { margin-bottom: 8px; }
.home-news-carousel .carousel-indicators [data-bs-target] {
  width: 9px; height: 9px; border-radius: 50%;
  background-color: rgba(255, 255, 255, .85); border: 0;
}
.home-muted { color: var(--mp-slate-2); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }

/* ── Featured products (kế thừa) ── */
.home-card {
  border: 1px solid var(--mp-border); border-radius: var(--mp-radius);
  overflow: hidden; background: #fff; height: 100%;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .05);
  transition: transform .15s, box-shadow .15s;
}
.home-card:hover { transform: translateY(-3px); box-shadow: 0 14px 26px rgba(8, 145, 178, .15); }
.home-product-img { width: 100%; height: 180px; object-fit: contain; background: #fff; }
.home-product-name { font-weight: 800; color: var(--mp-ink); margin-bottom: 6px; font-size: .92rem; line-height: 1.35; min-height: 2.7em; }
.home-product-spec { font-size: .76rem; font-weight: 600; color: var(--mp-slate-2); min-height: 1.2em; }
.home-product-price { font-size: 1.2rem; font-weight: 900; color: #0f6d88; }

/* ── Sticky mobile CTA ── */
.h-mobile-cta {
  display: none;
  position: fixed; left: 12px; right: 12px; bottom: 12px;
  background: linear-gradient(135deg, #0891b2 0%, #14b8a6 100%);
  border-radius: 999px; padding: 10px 14px;
  box-shadow: 0 14px 28px rgba(8, 145, 178, .42);
  z-index: 1040;
  align-items: center; justify-content: space-between; gap: 10px;
  color: #fff;
}
.h-mobile-cta .label {
  font-weight: 800; font-size: .82rem; text-shadow: 0 1px 2px rgba(0,0,0,.2);
}
.h-mobile-cta button, .h-mobile-cta a {
  background: #fff; color: var(--mp-blue);
  font-weight: 800; font-size: .8rem;
  border: 0; border-radius: 999px; padding: 8px 14px;
  text-decoration: none; white-space: nowrap;
}

/* ============================================================
   Modal "Tư vấn nhượng quyền" — redesign 2024
   Compact, sectioned, đồng bộ font Nunito Sans với toàn site
   ============================================================ */
.consult-status { display: none; }

.franchise-modal *,
.franchise-modal *::before,
.franchise-modal *::after {
  font-family: 'Nunito Sans', system-ui, -apple-system, sans-serif;
}

.franchise-modal .modal-dialog { max-width: 720px; }
.franchise-modal .modal-content {
  border: 0; border-radius: 16px; overflow: hidden; background: #fff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .22);
}

/* Header */
.franchise-modal .modal-header {
  border-bottom: 1px solid #eef2f7;
  padding: 16px 20px;
  background: linear-gradient(135deg, #f0fbfd 0%, #ecfeff 100%);
  align-items: center;
}
.franchise-modal-title-wrap { display: flex; align-items: center; gap: 12px; }
.franchise-modal .modal-title {
  color: #0f172a; font-weight: 900; font-size: 1.08rem; line-height: 1.2;
  margin: 0;
}
.franchise-modal-sub {
  font-size: .68rem; font-weight: 700; color: #14b8a6;
  text-transform: uppercase; letter-spacing: .06em; margin: 2px 0 0;
}
.franchise-title-icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1e88a8 0%, #0891b2 50%, #14b8a6 100%);
  color: #fff; font-size: 16px; flex-shrink: 0;
  box-shadow: 0 8px 18px rgba(8, 145, 178, .3);
}
.franchise-modal .btn-close {
  opacity: .55; transition: opacity .14s, transform .14s;
}
.franchise-modal .btn-close:hover { opacity: 1; transform: rotate(90deg); }

/* Body */
.franchise-modal .modal-body {
  padding: 18px 20px 12px; background: #fff;
  max-height: calc(100vh - 220px); overflow-y: auto;
}

/* Intro pill */
.franchise-modal-intro {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 16px; padding: 10px 14px;
  background: linear-gradient(135deg, rgba(8, 145, 178, .06), rgba(20, 184, 166, .06));
  border: 1px solid rgba(8, 145, 178, .18);
  border-left: 3px solid #0891b2;
  border-radius: 10px;
  font-size: .82rem; font-weight: 600; color: #475569; line-height: 1.5;
}
.franchise-modal-intro i {
  color: #0891b2; font-size: .92rem; margin-top: 2px; flex-shrink: 0;
}

/* Form sections */
.franchise-form-section {
  background: #fafcfe;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
}
.franchise-form-section:last-child { margin-bottom: 0; }
.franchise-form-section-title {
  font-size: .7rem; font-weight: 800; color: #0e6989;
  text-transform: uppercase; letter-spacing: .06em;
  margin: 0 0 12px;
  display: flex; align-items: center; gap: 7px;
}
.franchise-form-section-title i { color: #0891b2; font-size: .82rem; }

/* Labels */
.franchise-modal .form-label {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .04em;
  color: #64748b; font-weight: 800; margin-bottom: .35rem;
}
.franchise-modal .text-danger { color: #ef4444 !important; }

/* Inputs */
.franchise-modal .form-control,
.franchise-modal .form-select {
  border-radius: 10px;
  border: 1.5px solid #e2e8f0;
  padding: .54rem .8rem;
  font-size: .88rem; font-weight: 600;
  color: #0f172a; background: #fff;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
  height: auto; min-height: 40px;
}
.franchise-modal .form-control::placeholder { color: #94a3b8; font-weight: 500; }
.franchise-modal .form-control:hover,
.franchise-modal .form-select:hover { border-color: rgba(8, 145, 178, .42); }
.franchise-modal .form-control:focus,
.franchise-modal .form-select:focus {
  border-color: #0891b2;
  box-shadow: 0 0 0 3px rgba(8, 145, 178, .14);
  background: #fff;
}
.franchise-modal textarea.form-control { min-height: 76px; resize: vertical; }
.franchise-modal input[type="datetime-local"] { color-scheme: light; }

/* Input with icon prefix */
.franchise-input-wrap { position: relative; }
.franchise-input-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: #94a3b8; font-size: .82rem; pointer-events: none; z-index: 1;
  transition: color .15s;
}
.franchise-input-with-icon { padding-left: 36px !important; }
.franchise-input-wrap:focus-within .franchise-input-icon { color: #0891b2; }

/* Footer */
.franchise-modal .modal-footer {
  border-top: 1px solid #eef2f7;
  padding: 12px 20px;
  background: #fafcfe;
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap;
}
.franchise-modal-trust {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .72rem; font-weight: 700; color: #64748b;
}
.franchise-modal-trust i { color: #14b8a6; font-size: .82rem; }
.franchise-modal-actions { display: inline-flex; gap: 8px; align-items: center; }

/* Buttons */
.franchise-btn-secondary {
  border-radius: 999px;
  border: 1.5px solid #e2e8f0;
  color: #475569; font-weight: 700; font-size: .82rem;
  padding: .48rem 1.15rem; background: #fff;
  transition: all .14s;
}
.franchise-btn-secondary:hover {
  border-color: #cbd5e1; color: #0f172a; background: #f8fafc;
}
.franchise-btn-primary {
  border: 0; border-radius: 999px;
  color: #fff; font-weight: 800; font-size: .85rem;
  padding: .56rem 1.4rem;
  background: linear-gradient(135deg, #0891b2 0%, #14b8a6 100%);
  box-shadow: 0 8px 18px rgba(8, 145, 178, .4);
  transition: filter .14s, transform .14s, box-shadow .14s;
  display: inline-flex; align-items: center;
}
.franchise-btn-primary:hover {
  filter: brightness(1.06); transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(8, 145, 178, .5); color: #fff;
}
.franchise-btn-primary:disabled { opacity: .65; cursor: not-allowed; transform: none; }

/* Status alert */
.franchise-modal .consult-status.alert {
  border-radius: 10px; padding: 10px 14px;
  font-size: .82rem; font-weight: 600; margin-bottom: 12px;
  border: 1px solid transparent;
}
.franchise-modal .consult-status.alert-success {
  background: #f0fdf4; color: #15803d; border-color: #86efac;
}
.franchise-modal .consult-status.alert-danger {
  background: #fef2f2; color: #b91c1c; border-color: #fecaca;
}

/* Mobile */
@media (max-width: 576px) {
  .franchise-modal .modal-dialog { margin: 8px; }
  .franchise-modal .modal-header { padding: 14px 16px; }
  .franchise-modal .modal-body { padding: 14px 16px; }
  .franchise-modal .modal-footer { padding: 12px 16px; flex-direction: column; align-items: stretch; }
  .franchise-form-section { padding: 12px 14px; }
  .franchise-modal-trust { display: none; }
  .franchise-modal-actions { width: 100%; justify-content: flex-end; }
}

/* ── Select2 styling cho franchise modal — đồng bộ với input ── */
.franchise-modal .select2-container--default .select2-selection--single {
  height: 40px !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: .54rem .8rem !important;
  display: flex; align-items: center;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.franchise-modal .select2-container--default .select2-selection--single:hover {
  border-color: rgba(8, 145, 178, .42) !important;
}
.franchise-modal .select2-container--default.select2-container--focus .select2-selection--single,
.franchise-modal .select2-container--default.select2-container--open .select2-selection--single {
  border-color: #0891b2 !important;
  box-shadow: 0 0 0 3px rgba(8, 145, 178, .14);
}
.franchise-modal .select2-container--default .select2-selection__rendered {
  color: #0f172a !important;
  font-size: 14px; font-weight: 600;
  line-height: 1.4 !important;
  padding-left: 0 !important; padding-right: 24px !important;
}
.franchise-modal .select2-container--default .select2-selection__placeholder {
  color: #94a3b8 !important; font-weight: 500;
}
.franchise-modal .select2-container--default .select2-selection__arrow {
  height: 100% !important; top: 0 !important; right: 6px !important;
}
.franchise-modal .select2-container--default .select2-selection__arrow b {
  border-color: #64748b transparent transparent transparent !important;
}

/* Dropdown */
#franchiseConsultationModal .select2-dropdown {
  border: 1px solid rgba(30, 136, 168, .25);
  border-radius: 12px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, .14);
  overflow: hidden;
  font-family: 'Nunito Sans', system-ui, sans-serif;
  z-index: 1080;  /* Trên modal Bootstrap (1060) */
}
#franchiseConsultationModal .select2-search--dropdown { padding: 10px 12px 8px; }
#franchiseConsultationModal .select2-search--dropdown .select2-search__field {
  height: 38px; padding: 0 12px 0 36px;
  border: 1.5px solid #dbe5ef; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: #0f172a;
  background: #f8fafc url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><path d='m21 21-4.35-4.35'/></svg>") no-repeat 12px center;
  outline: none;
  transition: border-color .14s, box-shadow .14s, background-color .14s;
}
#franchiseConsultationModal .select2-search--dropdown .select2-search__field:focus {
  border-color: #1e88a8;
  box-shadow: 0 0 0 3px rgba(30, 136, 168, .12);
  background-color: #fff;
}
#franchiseConsultationModal .select2-results__options {
  padding: 4px;
  max-height: 280px;
}
#franchiseConsultationModal .select2-results__option {
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px; font-weight: 600; color: #0f172a;
  margin: 1px 0;
  transition: background .14s, color .14s;
}
#franchiseConsultationModal .select2-results__option--highlighted[aria-selected],
#franchiseConsultationModal .select2-results__option--highlighted {
  background: linear-gradient(135deg, rgba(8, 145, 178, .1), rgba(20, 184, 166, .1)) !important;
  color: #0e6989 !important;
  font-weight: 700;
}
#franchiseConsultationModal .select2-results__option[aria-selected="true"] {
  background: linear-gradient(135deg, #1e88a8, #0891b2) !important;
  color: #fff !important;
  font-weight: 800;
}
#franchiseConsultationModal .select2-results__message {
  padding: 14px 12px;
  color: #94a3b8; font-size: 13px; text-align: center;
}

/* ============================================================
   Animations & Micro-interactions
   ============================================================ */

/* Scroll reveal — element fade up khi vào viewport */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal.delay-1 { transition-delay: .08s; }
.reveal.delay-2 { transition-delay: .16s; }
.reveal.delay-3 { transition-delay: .24s; }
.reveal.delay-4 { transition-delay: .32s; }
.reveal.delay-5 { transition-delay: .4s; }
.reveal.delay-6 { transition-delay: .48s; }

/* Hero — Ken Burns slow zoom + animated gradient */
.h-hero { animation: heroFadeIn .9s cubic-bezier(.2,.7,.2,1); }
.h-hero.has-image::after { display: block; content: ""; position: absolute; inset: 0; pointer-events: none; }
.h-hero-title, .h-hero-desc, .h-hero-cta, .h-hero-eyebrow {
  animation: heroContentUp .8s cubic-bezier(.2,.7,.2,1) backwards;
}
.h-hero-eyebrow { animation-delay: .05s; }
.h-hero-title   { animation-delay: .15s; }
.h-hero-desc    { animation-delay: .25s; }
.h-hero-cta     { animation-delay: .35s; }
@keyframes heroFadeIn {
  from { opacity: 0; transform: scale(.985); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes heroContentUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hero shapes — floating animation */
.h-hero::before { animation: floatY 9s ease-in-out infinite; }
.h-hero::after  { animation: floatY 11s ease-in-out infinite reverse; }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* Live pulse dot — emphasis "đang hoạt động" */
.h-live-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: #10b981; margin-right: 8px; vertical-align: middle;
  position: relative;
}
.h-live-dot::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: #10b981; opacity: .55;
  animation: pulseRing 1.6s ease-out infinite;
}
@keyframes pulseRing {
  0%   { transform: scale(1);   opacity: .6; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* Verified tick — small bouncing check on commit numbers */
.h-verified {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%;
  background: #10b981; color: #fff;
  font-size: 9px; margin-left: 6px;
  animation: tickPop .5s cubic-bezier(.25,1.5,.5,1) backwards;
}
@keyframes tickPop {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.18); }
  100% { transform: scale(1); opacity: 1; }
}

/* Fact strip — số đếm animation */
.h-fact-num { transition: color .25s; }
.h-fact-item:hover .h-fact-num { color: var(--mp-blue); }
.h-fact-item:hover .h-fact-icon { transform: scale(1.08) rotate(-4deg); }
.h-fact-icon { transition: transform .25s cubic-bezier(.25,1.5,.5,1); }

/* Reasons — number bouncing on hover */
.h-reason-num { transition: transform .25s cubic-bezier(.25,1.5,.5,1); display: inline-block; }
.h-reason:hover .h-reason-num { transform: translateY(-3px); }
.h-reason:hover .h-reason-icon { animation: iconWiggle .5s ease; }
@keyframes iconWiggle {
  0%,100% { transform: rotate(0); }
  25%     { transform: rotate(-6deg); }
  75%     { transform: rotate(6deg); }
}

/* Roadmap — step number gradient pulse on hover */
.h-step-num { transition: transform .3s cubic-bezier(.25,1.5,.5,1), box-shadow .3s; }
.h-step:hover .h-step-num {
  transform: scale(1.1);
  box-shadow: 0 12px 24px rgba(8, 145, 178, .42);
}

/* Pricing — featured plan subtle glow aura */
.h-plan.is-featured::after {
  content: ""; position: absolute; inset: -8px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--mp-blue), var(--mp-cyan), var(--mp-green));
  background-size: 300% 300%;
  z-index: -2; opacity: .18; filter: blur(20px);
  animation: featuredGlow 6s ease-in-out infinite;
}
@keyframes featuredGlow {
  0%,100% { background-position: 0% 50%; opacity: .15; }
  50%     { background-position: 100% 50%; opacity: .28; }
}

/* Pills — sweep effect */
.h-pills a, .h-pills button { position: relative; overflow: hidden; }
.h-pills a::before, .h-pills button::before {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(8,145,178,.16), transparent);
  transition: left .55s ease;
  pointer-events: none;
}
.h-pills a:hover::before, .h-pills button:hover::before { left: 130%; }

/* CTA — shine sweep */
.h-cta { position: relative; overflow: hidden; }
.h-cta::after {
  content: ""; position: absolute; top: -50%; left: -25%;
  width: 50%; height: 200%;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.18) 50%, transparent 70%);
  transform: translateX(-100%) rotate(8deg);
  animation: ctaShine 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes ctaShine {
  0%, 60%, 100% { transform: translateX(-100%) rotate(8deg); }
  72%           { transform: translateX(280%) rotate(8deg); }
}

/* Mô hình nhượng quyền — image slow zoom & badge float */
.h-model-img { transition: transform 1.5s cubic-bezier(.2,.7,.2,1); }
.h-model-img-wrap:hover .h-model-img { transform: scale(1.04); }
.h-model-badge {
  animation: badgePop .9s cubic-bezier(.25,1.5,.5,1) .4s backwards,
             badgeFloat 4s ease-in-out 1.3s infinite;
}
@keyframes badgePop {
  from { opacity: 0; transform: translateY(20px) scale(.85); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes badgeFloat {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-6px); }
}

/* Mô hình pillars — staggered slide in */
.h-model-pillar { transition: background .14s, transform .25s, box-shadow .25s; }
.h-model-pillar:hover {
  transform: translateX(4px);
  box-shadow: 0 6px 16px rgba(8, 145, 178, .12);
}
.h-model-pillar:hover .h-model-pillar-icon { animation: iconPulse .6s ease; }
@keyframes iconPulse {
  0%,100% { transform: scale(1); }
  50%     { transform: scale(1.12); }
}

/* Service cards — icon rotate on hover */
.h-service-card .h-service-icon { transition: transform .35s cubic-bezier(.25,1.5,.5,1); }
.h-service-card:hover .h-service-icon { transform: rotate(-6deg) scale(1.06); }
.h-service-link i { transition: transform .25s; }
.h-service-card:hover .h-service-link i { transform: translateX(4px); }

/* Testimonial — quote icon pulsing */
.h-testi-quote i { animation: quotePulse 3s ease-in-out infinite; display: inline-block; }
@keyframes quotePulse {
  0%,100% { transform: scale(1); opacity: .8; }
  50%     { transform: scale(1.1); opacity: 1; }
}

/* Testimonial — star shimmer */
.h-testi-rating i {
  display: inline-block;
  animation: starTwinkle 2.4s ease-in-out infinite;
}
.h-testi-rating i:nth-child(2) { animation-delay: .12s; }
.h-testi-rating i:nth-child(3) { animation-delay: .24s; }
.h-testi-rating i:nth-child(4) { animation-delay: .36s; }
.h-testi-rating i:nth-child(5) { animation-delay: .48s; }
@keyframes starTwinkle {
  0%,100% { transform: scale(1); filter: drop-shadow(0 0 0 transparent); }
  50%     { transform: scale(1.12); filter: drop-shadow(0 0 4px rgba(245,158,11,.55)); }
}

/* FAQ — question icon spin on hover */
.h-faq-question i { transition: transform .3s; }
.h-faq-question:hover i { transform: rotate(15deg); }

/* Sticky mobile CTA — pulse on idle */
.h-mobile-cta { animation: ctaPulse 2.4s ease-in-out infinite; }
@keyframes ctaPulse {
  0%,100% { box-shadow: 0 14px 28px rgba(8, 145, 178, .42); }
  50%     { box-shadow: 0 14px 28px rgba(8, 145, 178, .42), 0 0 0 8px rgba(8, 145, 178, .12); }
}

/* Carousel indicator — active scale */
.carousel-indicators .active { transform: scale(1.3); transition: transform .3s; }

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* Reduce motion respect — accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ── Responsive ── */
@media (max-width: 1200px) {
  .h-services  { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-roadmap   { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .h-roadmap::before { display: none; }
  .h-reasons   { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-reasons .h-reason:nth-last-child(-n+3) { border-bottom: 1px dashed var(--mp-border); padding-bottom: 22px; }
  .h-reasons .h-reason:nth-last-child(-n+2) { border-bottom: 0; padding-bottom: 0; }
}
@media (max-width: 992px) {
  .h-hero { padding: 28px 24px; min-height: 380px; }
  .h-hero-title { font-size: 2rem; }
  .h-about { grid-template-columns: 1fr; }
  .h-model { grid-template-columns: 1fr; }
  .h-model-img-wrap { min-height: 280px; }
  .h-services { grid-template-columns: 1fr; }
  .h-contact { grid-template-columns: 1fr; }
  .h-plan.is-featured { transform: none; }
  .h-plan.is-featured:hover { transform: translateY(-6px); }
  .h-fact-item { flex-basis: 33%; }
  .h-fact-item:nth-child(3)::before { display: none; }
  .h-fact-item:nth-child(4) { border-top: 1px solid var(--mp-border); margin-top: 4px; padding-top: 16px; }
}
@media (max-width: 768px) {
  .h-roadmap   { grid-template-columns: 1fr; }
  .h-reasons   { grid-template-columns: 1fr; padding: 22px; }
  .h-reasons .h-reason { border-bottom: 1px dashed var(--mp-border); padding-bottom: 18px; }
  .h-reasons .h-reason:last-child { border-bottom: 0; padding-bottom: 0; }
  .h-hero { min-height: 320px; padding: 24px 20px; }
  .h-hero-title { font-size: 1.6rem; }
  .home-news-featured-img { height: 220px; }
  .home-news-featured-title { font-size: 1.05rem; }
  .h-fact { padding: 8px; }
  .h-fact-item { flex-basis: 50%; min-width: 0; }
  .h-fact-item::before { display: none !important; }
  .h-mobile-cta { display: flex; }
  .home-wrap { padding-bottom: 90px; }
}
